diff --git a/assets/styles/app.css b/assets/styles/app.css index 68f0494..b027255 100644 --- a/assets/styles/app.css +++ b/assets/styles/app.css @@ -1,10 +1,14 @@ * { margin: 0; padding: 0; - font-family: 'Kulim Park', sans-serif; - --background: hsl(200, 5%, 15%); - --accent: hsl(15, 70%, 98%); + font-family: "Kulim Park", sans-serif; + --dark: hsl(200, 5%, 15%); + --light: hsl(15, 70%, 98%); + --grey: hsl(15, 6%, 92%); --radius: 8px; + --size-max: 20px; + --shadow: 0 0 0 1px var(--dark); + --shadow-hover: 0 0 0 2px var(--dark); } a { @@ -18,7 +22,8 @@ a { /*Main content (between header and footer)*/ body > main { - min-height: calc(100vh - ((2rem + 2*0.75rem) + 6rem)); + min-height: calc(100vh - ((2rem + 2 * 0.75rem) + 6rem)); + height: fit-content; } /*fix symfony template style*/ @@ -31,11 +36,11 @@ header { flex-direction: row; justify-content: space-between; align-items: baseline; - + padding: 0.75rem; - - background-color: var(--background); - color: var(--accent); + + background-color: var(--dark); + color: var(--light); height: 2rem; } @@ -45,23 +50,23 @@ header > form { align-items: center; gap: 8px; padding: 2px 8px; - border: solid 2px var(--accent); + border: solid 2px var(--light); border-radius: var(--radius); - - &>input[type=text]{ + + & > input[type="text"] { border: none; outline: none; background: none; - color: var(--accent); + color: var(--light); } - & label>img { + & label > img { width: 20px; height: 20px; cursor: pointer; padding-top: 1px; - padding-bottom: -1px + padding-bottom: -1px; } - & input[type=submit]{ + & input[type="submit"] { display: none; } } @@ -74,7 +79,7 @@ footer { justify-content: center; align-items: center; background: hsl(200, 5%, 85%); - &>p{ + & > p { font-size: large; } -} \ No newline at end of file +} diff --git a/templates/base.html.twig b/templates/base.html.twig index bf722a5..b8f7a21 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -24,7 +24,7 @@ Search - Connect + Login {% endblock %} diff --git a/templates/security/login.html.twig b/templates/security/login.html.twig index dccd5d6..fb532dd 100644 --- a/templates/security/login.html.twig +++ b/templates/security/login.html.twig @@ -1,42 +1,114 @@ -{% extends 'base.html.twig' %} +{% extends 'base.html.twig' %} {% block title %}Log in!{% endblock %} {% block +body %} + +
{% if error %} -
{{ error.messageKey|trans(error.messageData, 'security') }}
+
+ {{ error.messageKey|trans(error.messageData, 'security') }} +
+ {% endif %} {% if app.user %} +
+ You are logged in as {{ app.user.userIdentifier }}, + Logout +
{% endif %} - {% if app.user %} -
- You are logged in as {{ app.user.userIdentifier }}, Logout -
- {% endif %} - -

Please sign in

+

Please sign in

- + - + - + - {# - Uncomment this section and add a remember_me option below your firewall to activate remember me functionality. - See https://symfony.com/doc/current/security/remember_me.html + {# Uncomment this section and add a remember_me option below your + firewall to activate remember me functionality. See + https://symfony.com/doc/current/security/remember_me.html -
- -
+
+ +
#} - +
+
{% endblock %}