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

Footer #72

Merged
merged 5 commits into from
Sep 15, 2022
Merged
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
1 change: 1 addition & 0 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"/js/app.js": "/js/app.js",
"/css/icon-checkmark-cross.css": "/css/icon-checkmark-cross.css",
"/css/rules.css": "/css/rules.css",
"/css/home.css": "/css/home.css",
"/css/app.css": "/css/app.css"
Expand Down
19 changes: 8 additions & 11 deletions resources/sass/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,15 @@
[x-cloak] { display: none !important; }


main {

// Move the 1st section down for the navbar
section:first-child {
@apply mt-0;
}
// Move the 1st section down for the navbar
section:first-child {
@apply mt-0;
}

// waves
.wave {
@apply w-full absolute pointer-events-none;
@apply -mt-16 h-16 md:h-28 md:-mt-28 lg:h-40 lg:-mt-40;
}
// waves
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙋‍♂️

.wave {
@apply w-full absolute pointer-events-none;
@apply -mt-16 h-16 md:h-28 md:-mt-28 lg:h-40 lg:-mt-40;
}

.page-header {
Expand Down
38 changes: 38 additions & 0 deletions resources/views/components/footer.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@php
$links = [
[
'name' => 'Accueil',
'route' => 'home',
],
[
'name' => 'À propos',
'route' => 'about',
],
[
'name' => 'Contact',
'route' => 'contact',
],
];
@endphp

<x-section class="pb-32" bg="bg-base-200" text="text-light" wave-bg="fill-base-200" wave-id="6">
<div class="flex md:flex-row flex-col">
<div class="md:w-1/2 flex items-center mx-auto pb-4 md:pb-0">
<x-jet-nav-link :href="route('home')" :active="request()->routeIs('home')">
<img id="rc-logo-homepage" src="{{ asset('images/inline_org_color.png') }}">
</x-jet-nav-link>
</div>
<div class="md:w-1/2 flex flex-col">
<p class="pb-4">Une toute nouvelle expérience Minecraft multilingue avec une infrastructure open source de
serveurs
créatif et survie soigneusement conçus.</p>
<div class="flex justify-between">
@foreach ($links as $link)
<x-jet-nav-link :href="route($link['route'])" :active="request()->routeIs($link['route'])">
{{ $link['name'] }}
</x-jet-nav-link>
@endforeach
</div>
</div>
</div>
</x-section>
5 changes: 5 additions & 0 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<x-jet-banner />

<div class="min-h-screen bg-gray-100">

@livewire('navigation-menu')

<!-- Page Heading -->
Expand All @@ -41,8 +42,12 @@
<main>
{{ $slot }}
</main>

<x-footer />

</div>


@stack('modals')
@stack('scripts')

Expand Down
5 changes: 5 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
return view('rules');
})->name('rules');

// about
Route::get('/about', function () {
return view('about');
})->name('about');

Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function () {
return view('dashboard');
})->name('dashboard');
Expand Down