mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Updated profile and form templates
This commit is contained in:
parent
0106b9073e
commit
c0cad33ac4
2 changed files with 93 additions and 13 deletions
|
@ -1,4 +1,40 @@
|
|||
{% extends 'partials/base.html.twig' %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{{ parent() }}
|
||||
{% set styles %}
|
||||
#user-register .buttons {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-content: center;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
#user-register .button {
|
||||
margin: 0 1em;
|
||||
}
|
||||
#user-register .button:first-child {
|
||||
margin: 0;
|
||||
}
|
||||
@media screen and (max-width: 480px) {
|
||||
#user-register .buttons {
|
||||
flex-direction: column;
|
||||
}
|
||||
#user-register .button {
|
||||
width: 100%;
|
||||
margin: 1em 0;
|
||||
}
|
||||
}
|
||||
{% endset %}
|
||||
{% do assets.addInlineCss(styles) %}
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
{% include 'partials/sidebar_right.html.twig' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<article class="post">
|
||||
<header>
|
||||
|
|
44
templates/profile.html.twig
Normal file
44
templates/profile.html.twig
Normal file
|
@ -0,0 +1,44 @@
|
|||
{% extends 'partials/base.html.twig' %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{{ parent() }}
|
||||
{% set styles %}
|
||||
#user-profile .buttons {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-content: center;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
#user-profile .button {
|
||||
margin: 0 1em;
|
||||
}
|
||||
#user-profile .button:first-child {
|
||||
margin: 0;
|
||||
}
|
||||
@media screen and (max-width: 480px) {
|
||||
#user-profile .buttons {
|
||||
flex-direction: column;
|
||||
}
|
||||
#user-profile .button {
|
||||
width: 100%;
|
||||
margin: 1em 0;
|
||||
}
|
||||
}
|
||||
{% endset %}
|
||||
{% do assets.addInlineCss(styles) %}
|
||||
{% endblock %}
|
||||
|
||||
{% do form.setAllData(grav.user.toArray) %}
|
||||
|
||||
{% block menu %}
|
||||
{% include 'partials/sidebar_right.html.twig' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% include 'partials/messages.html.twig' %}
|
||||
{{ page.content|raw }}
|
||||
{% include 'forms/form.html.twig' %}
|
||||
{% endblock %}
|
Loading…
Add table
Reference in a new issue