Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update design #25

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions layouts/_default/page.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@
</div>
</header>
{% block jumbotron %}{% endblock %}
<main class="flex-grow px-6 py-8">
<div class="container mx-auto">
{%- block content ~%}
{# content #}
<div class="prose prose-sm sm:prose lg:prose-lg mx-auto">
{{ page.content }}
</div>
{%- endblock ~%}
<main class="flex-grow">
{%- block content ~%}
<div class="py-6 md:py-10">
{# content #}
<div class="prose prose-sm sm:prose lg:prose-lg mx-auto">
{{ page.content }}
</div>
</div>
{%- endblock ~%}
</main>
<footer class="px-6 py-6 leading-6 text-xs text-left text-gray-500 font-light border-t border-gray-200">
<div class="container mx-auto">
Expand Down
2 changes: 1 addition & 1 deletion layouts/documentation/page.html.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends 'page.html.twig' %}

{% block content %}
<div class="flex flex-row xl:space-x-8">
<div class="container flex flex-row xl:space-x-8 mx-auto py-6 md:py-8">
{# menu #}
<div class="flex-none w-48 hidden lg:block">
{%~ include 'partials/docs-menu.html.twig' ~%}
Expand Down
6 changes: 5 additions & 1 deletion layouts/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@
{% endblock %}

{% block content %}
{# news #}
<div class="bg-black text-white">
test
</div>
{# about blocks #}
<div class="mt-6 md:mt-10">
<div class="container mx-auto py-6 md:py-10">
<div class="space-y-5 md:space-y-0 md:grid md:grid-cols-2 md:gap-x-8 md:gap-y-5">
{%~ for block in page.blocks.about ~%}
{%- if block.visible != false -%}
Expand Down
2 changes: 2 additions & 0 deletions layouts/section/documentation.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% extends 'page.html.twig' %}

{% block content %}
<div class="py-6 md:py-10">
{# content #}
<div class="prose prose-sm sm:prose lg:prose-lg mx-auto">
{%~ include 'partials/search-box.html.twig' ~%}
Expand All @@ -14,4 +15,5 @@
{%- endfor -%}
</dl>
</div>
</div>
{% endblock content %}