diff --git a/assets/styles/app.css b/assets/styles/app.css
index 68f0494..3b5391f 100644
--- a/assets/styles/app.css
+++ b/assets/styles/app.css
@@ -1,24 +1,36 @@
* {
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 {
color: inherit;
- text-decoration: none;
transition: all ease-out 0.3s;
&:hover {
font-weight: 700;
}
+ &.no-style {
+ text-decoration: none;
+ }
}
/*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; */
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
}
/*fix symfony template style*/
@@ -31,11 +43,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 +57,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 +86,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 e1a3786..b4282ba 100644
--- a/templates/base.html.twig
+++ b/templates/base.html.twig
@@ -16,7 +16,7 @@
{% block header %}
{% endblock %}
diff --git a/templates/registration/register.html.twig b/templates/registration/register.html.twig
index c5283d7..9892166 100644
--- a/templates/registration/register.html.twig
+++ b/templates/registration/register.html.twig
@@ -1,19 +1,86 @@
-{% extends 'base.html.twig' %}
+{% extends 'base.html.twig' %} {% block title %}Register{% endblock %} {% block
+body %}
+
+
+ {{ form_start(registrationForm) }} {% if app.user %}
+
+ You are logged in as {{ app.user.userIdentifier }},
+
Logout
+
+ {% endif %}
-{% block title %}Register{% endblock %}
+ Register
+ {{ form_errors(registrationForm.username) }}
+
+
+ {{ form_errors(registrationForm.plainPassword) }}
+
+
-{% block body %}
- Register
+ {{ form_row(registrationForm.agreeTerms) }}
- {{ form_errors(registrationForm) }}
+
+
+ If you don't have an account:
+ register.
+
- {{ form_start(registrationForm) }}
- {{ form_row(registrationForm.username) }}
- {{ form_row(registrationForm.plainPassword, {
- label: 'Password'
- }) }}
- {{ form_row(registrationForm.agreeTerms) }}
-
-
{{ form_end(registrationForm) }}
+
{% endblock %}
diff --git a/templates/security/login.html.twig b/templates/security/login.html.twig
index dccd5d6..9e19526 100644
--- a/templates/security/login.html.twig
+++ b/templates/security/login.html.twig
@@ -1,42 +1,103 @@
-{% extends 'base.html.twig' %}
-
-{% block title %}Log in!{% endblock %}
-
-{% block body %}
+{% extends 'base.html.twig' %} {% block title %}Log in!{% endblock %} {% block
+body %}
+
+
+
{% endblock %}