Compare commits

..

No commits in common. "c154404c6fe2d93dd633cc5431ff4b0c0a517649" and "b044315f0b3f1feed557bb69d5421095c3099527" have entirely different histories.

6 changed files with 24 additions and 114 deletions

View file

@ -1,7 +1,5 @@
@import "tailwindcss"; @import "tailwindcss";
@plugin "../daisyui.mjs" { @plugin "../daisyui.mjs";
themes: aqua --default;
}
html, body { height: 100%; margin: 0; } html, body { height: 100%; margin: 0; }
.map-container { height: calc(100vh - 4rem); width: 100%; } .map-container { height: 100vh; width: 100%; }

View file

@ -1,20 +0,0 @@
{% extends 'base.html.twig' %}
{% block navbar %}{% endblock %}
{% block body %}
<div class="min-h-screen flex">
<div class="hidden lg:flex lg:w-1/2 bg-neutral flex-col items-center justify-center gap-6 p-12">
<span class="text-5xl font-bold text-neutral-content tracking-tight">Rater</span>
<p class="text-neutral-content/70 text-lg text-center max-w-xs">
Rate and discover restaurants near you.
</p>
</div>
<div class="w-full lg:w-1/2 flex items-center justify-center p-8">
<div class="w-full max-w-sm">
{% block form %}{% endblock %}
</div>
</div>
</div>
{% endblock %}

View file

@ -1,49 +1,23 @@
{% extends 'account/auth_layout.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Log in — Rater{% endblock %} {% block body %}
<h1>Log in</h1>
{% block form %}
<h1 class="text-2xl font-bold mb-6">Welcome back</h1>
{% if error %} {% if error %}
<div role="alert" class="alert alert-error mb-4"> <div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
<span>{{ error.messageKey|trans(error.messageData, 'security') }}</span>
</div>
{% endif %} {% endif %}
<form method="post" class="flex flex-col gap-4"> <form method="post">
<fieldset class="fieldset"> <label for="email">Email</label>
<legend class="fieldset-legend">Email</legend> <input type="email" id="email" name="_username" value="{{ last_username }}">
<input
type="email"
id="email"
name="_username"
value="{{ last_username }}"
class="input w-full"
placeholder="you@example.com"
autocomplete="email"
>
</fieldset>
<fieldset class="fieldset"> <label for="password">Password</label>
<legend class="fieldset-legend">Password</legend> <input type="password" id="password" name="_password">
<input
type="password"
id="password"
name="_password"
class="input w-full"
placeholder="••••••••"
autocomplete="current-password"
>
</fieldset>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}"> <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<button type="submit" class="btn btn-primary w-full mt-2">Log in</button> <button type="submit">Log in</button>
</form> </form>
<p class="text-sm text-center mt-6 text-base-content/60"> <p>No account yet? <a href="{{ path('app_register') }}">Register</a></p>
No account yet?
<a href="{{ path('app_register') }}" class="link link-primary">Register</a>
</p>
{% endblock %} {% endblock %}

View file

@ -1,38 +1,10 @@
{% extends 'account/auth_layout.html.twig' %} <html>
<head>
<title>Rater Login</title>
</head>
<body>
body
{{ form(form) }}
</body>
</html>
{% block title %}Register — Rater{% endblock %}
{% block form %}
<h1 class="text-2xl font-bold mb-6">Create an account</h1>
{{ form_start(form, {attr: {class: 'flex flex-col gap-4'}}) }}
<fieldset class="fieldset">
<legend class="fieldset-legend">Email</legend>
{{ form_widget(form.email, {attr: {class: 'input w-full', placeholder: 'you@example.com', autocomplete: 'email'}}) }}
{{ form_errors(form.email) }}
</fieldset>
<fieldset class="fieldset">
<legend class="fieldset-legend">Password</legend>
{{ form_widget(form.password, {attr: {class: 'input w-full', placeholder: '••••••••', autocomplete: 'new-password'}}) }}
{{ form_errors(form.password) }}
</fieldset>
<fieldset class="fieldset">
<legend class="fieldset-legend">Confirm password</legend>
{{ form_widget(form.password_again, {attr: {class: 'input w-full', placeholder: '••••••••', autocomplete: 'new-password'}}) }}
{{ form_errors(form.password_again) }}
</fieldset>
{{ form_widget(form._token) }}
{{ form_widget(form.register, {attr: {class: 'btn btn-primary w-full mt-2'}}) }}
{{ form_end(form) }}
<p class="text-sm text-center mt-6 text-base-content/60">
Already have an account?
<a href="{{ path('app_login') }}" class="link link-primary">Log in</a>
</p>
{% endblock %}

View file

@ -18,22 +18,7 @@
<script src="https://cdn.jsdelivr.net/npm/frankenphp-hot-reload/+esm" type="module"></script> <script src="https://cdn.jsdelivr.net/npm/frankenphp-hot-reload/+esm" type="module"></script>
{% endif %} {% endif %}
</head> </head>
<body class="flex flex-col min-h-screen"> <body>
{% block navbar %}
<nav class="navbar bg-base-100 text-base-content shrink-0">
<div class="flex-1">
<a href="{{ path('app_index_index') }}" class="btn btn-ghost text-xl font-bold">Rater</a>
</div>
<div class="flex-none gap-2">
{% if app.user %}
<span class="text-sm opacity-75 hidden sm:inline">{{ app.user.userIdentifier }}</span>
<a href="{{ path('app_logout') }}" class="btn btn-ghost btn-sm">Log out</a>
{% else %}
<a href="{{ path('app_login') }}" class="btn btn-ghost btn-sm">Log in</a>
{% endif %}
</div>
</nav>
{% endblock %}
{% block body %}{% endblock %} {% block body %}{% endblock %}
</body> </body>
</html> </html>

View file

@ -1,5 +1,6 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block body %} {% block body %}
<h1>Rater</h1>
<div {{ stimulus_controller('map') }} class="map-container"></div> <div {{ stimulus_controller('map') }} class="map-container"></div>
{% endblock %} {% endblock %}