Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

JustinByrne/Mealing

99 stars
3 code files
View JustinByrne/Mealing on GitHub

resources/views/layouts/app.blade.php

Open in GitHub
<!doctype html>
<html lang="en">
<head>
//
<script src="{{ asset('js/app.js') }}" defer></script>
//
</head>
//

resources/views/layouts/header.blade.php

Open in GitHub
<header class="lg:fixed">
<div class="w-full bg-green-700 p-3 text-white lg:w-72 lg:h-screen" x-data="{open: false}" @click.away="open = false">
<div class="flex justify-between items-center lg:mb-20 lg:mt-10">
<a href="{{ route('homepage') }}" class="flex text-lg font-bold lg:text-center lg:w-full lg:flex-col">
<i class="fas fa-pizza-slice pr-3 self-center lg:pr-0 lg:text-3xl lg:pb-3"></i>
Mealing
</a>
<div class="text-lg lg:hidden">
<button class="border border-gray-100 px-2 rounded-lg duration-300 ease-in-out transition text-center hover:bg-white hover:text-green-700" @click="open = !open" aria-label="Menu">
<i class="fas fa-bars"></i>
</button>
</div>
</div>
<div class="hidden lg:block mt-3" :class="{'hidden': !open}">
<nav class="flex flex-col space-y-3">
<a
href="{{ route('homepage') }}"
@if (request()->routeIs('homepage*'))
class="w-full p-3 font-bold text-green-700 bg-white rounded-lg space-x-2"
@else
class="w-full p-3 font-bold rounded-lg hover:bg-white hover:text-green-700 space-x-2"
@endif
>
<i class="fas fa-home"></i>
<span>
Home
</span>
</a>
<a
href="{{ route('menus.index') }}"
@if (request()->routeIs('menu*'))
class="w-full p-3 font-bold text-green-700 bg-white rounded-lg space-x-2"
@else
class="w-full p-3 font-bold rounded-lg hover:bg-white hover:text-green-700 space-x-2"
@endif
>
<i class="fas fa-utensils"></i>
<span>
Menus
</span>
</a>
@if (request()->routeIs('recipes*'))
<div class="w-full" x-data="{nav: true}">
<button class="w-full p-3 font-bold rounded-lg bg-white text-green-700 space-x-2 cursor-pointer text-left" @click="nav = !nav">
@else
<div class="w-full" x-data="{nav: false}" @click.away="nav = false">
<button class="w-full p-3 font-bold rounded-lg hover:bg-white hover:text-green-700 space-x-2 cursor-pointer text-left" @click="nav = !nav">
@endif
<i class="fas fa-hamburger"></i>
<span>
Recipes
</span>
<span aria-label="Recipes Menu" class="float-right">
<i
class="fas fa-angle-down text-center cursor-pointer transition transform ease-in-out duration-200"
:class="{ 'rotate-180': nav }"
></i>
</span>
</button>
<div :class="{'hidden': !nav}" class="flex flex-col space-y-2 mt-3">
//

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.