Split into partials

This commit is contained in:
Oliver Davies 2018-08-09 23:39:58 +01:00
parent d6b21edde9
commit 05a0d0e0ba
8 changed files with 27 additions and 26 deletions

View file

@ -8,28 +8,8 @@
</head>
<body class="text-black bg-grey-lightest font-sans text-sm sm:text-base">
<div id="root">
<div class="bg-grey-darkest text-white antialiased block pt-4 pb-10">
<div class="container mx-auto px-4 relative">
<div class="text-center text-4xl relative">
<img src="/assets/images/logo.png" alt="" class="w-16 sm:w-24 mb-3 sm:mb-4">
<p class="uppercase font-bold tracking-wide mb-2 text-2xl sm:text-4xl">Chris Rees Academy</p>
<p class="uppercase font-bold tracking-wide text-3xl sm:text-5xl">Cardiff</p>
</div>
<mobile-nav></mobile-nav>
</div>
</div>
<div class="bg-red text-white hidden sm:block">
<div class="container mx-auto">
<nav class="sm:flex sm:justify-center text-center">
<a href="/" class="md:text-lg block sm:inline-block w-full sm:w-auto text-white hover:text-green no-underline hover:underline px-8 py-5 {{ page.url == '//' ? 'text-green' }}">Coaches</a>
<a href="/schedule" class="md:text-lg block sm:inline-block w-full sm:w-auto text-white hover:text-green no-underline hover:underline px-8 py-5 {{ page.url == '/schedule' ? 'text-green' }}">Schedule</a>
<a href="/membership" class="md:text-lg block sm:inline-block w-full sm:w-auto text-white hover:text-green no-underline hover:underline px-8 py-5 {{ page.url == '/membership' ? 'text-green' }}">Membership</a>
<a href="/contact" class="md:text-lg block sm:inline-block w-full sm:w-auto text-white hover:text-green no-underline hover:underline px-8 py-5 {{ page.url == '/contact' ? 'text-green' }}">Contact</a>
</nav>
</div>
</div>
{% include 'layout/header' %}
{% include 'layout/main-menu' %}
<div class="container mx-auto px-4">
<div class="leading-normal pt-8 sm:pt-16 pb-16 sm:pb-24">

View file

@ -0,0 +1,11 @@
<div class="bg-grey-darkest text-white antialiased block pt-4 pb-10">
<div class="container mx-auto px-4 relative">
<div class="text-center text-4xl relative">
<img src="/assets/images/logo.png" alt="" class="w-16 sm:w-24 mb-3 sm:mb-4">
<p class="uppercase font-bold tracking-wide mb-2 text-2xl sm:text-4xl">Chris Rees Academy</p>
<p class="uppercase font-bold tracking-wide text-3xl sm:text-5xl">Cardiff</p>
</div>
<mobile-nav></mobile-nav>
</div>
</div>

View file

@ -0,0 +1,10 @@
<div class="bg-red text-white hidden sm:block">
<div class="container mx-auto">
<nav class="sm:flex sm:justify-center text-center">
<a href="/" class="md:text-lg block sm:inline-block w-full sm:w-auto text-white hover:text-green no-underline hover:underline px-8 py-5 {{ page.url == '//' ? 'text-green' }}">Coaches</a>
<a href="/schedule" class="md:text-lg block sm:inline-block w-full sm:w-auto text-white hover:text-green no-underline hover:underline px-8 py-5 {{ page.url == '/schedule' ? 'text-green' }}">Schedule</a>
<a href="/membership" class="md:text-lg block sm:inline-block w-full sm:w-auto text-white hover:text-green no-underline hover:underline px-8 py-5 {{ page.url == '/membership' ? 'text-green' }}">Membership</a>
<a href="/contact" class="md:text-lg block sm:inline-block w-full sm:w-auto text-white hover:text-green no-underline hover:underline px-8 py-5 {{ page.url == '/contact' ? 'text-green' }}">Contact</a>
</nav>
</div>
</div>

View file

@ -27,8 +27,8 @@ location: |
</div>
<div class="mx-4 overflow-hidden">
{% include 'contact/map' %}
{% include 'pages/contact/map' %}
</div>
</div>
{% include 'contact/form' %}
{% include 'pages/contact/form' %}

View file

@ -116,7 +116,7 @@ classes:
<div class="w-full md:w-1/2 px-6 mb-8 md:mb-0">
<h2 class="uppercase text-center mb-2 tracking-wide">Adults</h2>
{% include 'class-list' with {
{% include 'pages/classes/class-list' with {
classes: page.classes,
type: 'adults',
} %}
@ -125,7 +125,7 @@ classes:
<div class="w-full md:w-1/2 px-6">
<h2 class="uppercase text-center mb-2 tracking-wide">Kids</h2>
{% include 'class-list' with {
{% include 'pages/classes/class-list' with {
classes: page.classes,
type: 'kids',
} %}