Skip to content

Commit

Permalink
The world's greatest recipe website. (#15)
Browse files Browse the repository at this point in the history
* initial

* let's go

* linting

* Delete public/favicon.icoZone.Identifier

* let's go!

* hehe

* print

* let's go!

* style: linting, add a few adjustments to header, add dark mode switcher

---------

Co-authored-by: Blake Severson <[email protected]>
  • Loading branch information
gabstafari and IronSinew authored Jun 6, 2024
1 parent 76cd0a6 commit a9d3c38
Show file tree
Hide file tree
Showing 35 changed files with 1,692 additions and 770 deletions.
3 changes: 3 additions & 0 deletions app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Http\Controllers;

use App\Models\Category;
use App\Models\Recipe;
use Illuminate\Http\Request;
use Inertia\Inertia;
Expand All @@ -16,6 +17,8 @@ public function __invoke(Request $request): Response
->orderBy('id', 'desc')
->limit(3)
->get()),

'categories' => fn () => Category::withCount('recipes')->get(),
]);
}
}
Binary file modified bun.lockb
Binary file not shown.
Binary file added public/assets/blog-img1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/blog-img2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions public/assets/category-hero-img.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/hero-left-img.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/hero-middle-img.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/hero-middle-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/hero-right-img.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/home-hero-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/no-category-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/no-label-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/no-recipe-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/pattern.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/recipe-hero-no-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions public/assets/recipebox-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/sub-footer-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon.ico
Binary file not shown.
142 changes: 95 additions & 47 deletions resources/css/app.css
Original file line number Diff line number Diff line change
@@ -1,53 +1,11 @@
@import url("https://fonts.googleapis.com/css2?family=Merienda:[email protected]&display=swap");

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
body {
@apply text-surface-700 dark:text-white/70
}

h1 {
@apply text-4xl text-primary-200;
.primary {
@apply text-primary-400;
}
}
h2 {
@apply text-3xl text-primary-200;
.primary {
@apply text-primary-400;
}
}
h3 {
@apply text-2xl text-primary-200;
.primary {
@apply text-primary-400;
}
}
h4 {
@apply text-xl text-primary-200;
.primary {
@apply text-primary-400;
}
}
h5 {
@apply text-lg text-primary-200;
.primary {
@apply text-primary-400;
}
}
ul {
list-style: inside;
}

ol {
list-style: decimal;
@apply ml-4;
}
}

:root {
:root {
--primary-50: 255 247 237;
--primary-100: 255 237 213;
--primary-200: 254 215 170;
Expand All @@ -70,10 +28,100 @@
--surface-600: 75 85 99;
--surface-700: 55 65 81;
--surface-800: 31 41 55;
--surface-900: 17 24 39;
--surface-900: 45 53 71;
--surface-950: 8 8 8;

--main-dark: 45 53 71;
--main-orange: 228 109 37;
}

.dark {
--main-dark: 255 255 255;
}
}

body {
/* @apply text-surface-700 dark:text-white/70; */
@apply bg-white dark:bg-[#1F1D2B] text-main-dark dark:text-white;
}

h1,
h2,
h3,
h4,
h5,
p,
a {
@apply text-main-dark dark:text-white;
}

h1,
h2,
h3 {
font-family: "Merienda", cursive;
}

h1 {
@apply text-4xl;
font-weight: 900;
}
h2 {
@apply text-2xl sm:text-3xl;
font-weight: 900;
}
h3 {
@apply text-2xl;
}
h4 {
@apply text-xl;
}
h5 {
@apply text-lg;
}
ul {
list-style: inside;
}

ol {
list-style: decimal;
@apply ml-4;
}

[x-cloak] {
display: none;
display: none;
}

.recipe-card {
@apply text-main-dark;
border-radius: 0.25rem;
overflow: hidden;
position: relative;
--tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.angled-recipe-header {
overflow: hidden;
-webkit-clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
@apply 2xl:max-h-[600px];
}

.angled-recipe-header img {
-webkit-clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

.autocomplete-search {
input {
@apply bg-white border border-surface-300;
}
}

#recipe-card-view {
@apply dark:!bg-black/[0.2];
}

button {
@apply !text-main-dark dark:!text-white;
}
Loading

0 comments on commit a9d3c38

Please sign in to comment.