-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02e0aa6
commit 26b6058
Showing
20 changed files
with
314 additions
and
138 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
const pizzaData = [ | ||
{ | ||
name: "Focaccia", | ||
ingredients: "Bread with italian olive oil and rosemary", | ||
price: 6, | ||
photoName: "pizzas/focaccia.jpg", | ||
soldOut: false, | ||
}, | ||
{ | ||
name: "Pizza Margherita", | ||
ingredients: "Tomato and mozarella", | ||
price: 10, | ||
photoName: "pizzas/margherita.jpg", | ||
soldOut: false, | ||
}, | ||
{ | ||
name: "Pizza Spinaci", | ||
ingredients: "Tomato, mozarella, spinach, and ricotta cheese", | ||
price: 12, | ||
photoName: "pizzas/spinaci.jpg", | ||
soldOut: false, | ||
}, | ||
{ | ||
name: "Pizza Funghi", | ||
ingredients: "Tomato, mozarella, mushrooms, and onion", | ||
price: 12, | ||
photoName: "pizzas/funghi.jpg", | ||
soldOut: false, | ||
}, | ||
{ | ||
name: "Pizza Salamino", | ||
ingredients: "Tomato, mozarella, and pepperoni", | ||
price: 15, | ||
photoName: "pizzas/salamino.jpg", | ||
soldOut: true, | ||
}, | ||
{ | ||
name: "Pizza Prosciutto", | ||
ingredients: "Tomato, mozarella, ham, aragula, and burrata cheese", | ||
price: 18, | ||
photoName: "pizzas/prosciutto.jpg", | ||
soldOut: false, | ||
}, | ||
]; | ||
|
||
export default pizzaData; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,187 @@ | ||
body { | ||
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;1,300&display=swap'); | ||
|
||
* { | ||
margin: 0; | ||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', | ||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', | ||
sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
html { | ||
font-size: 62.5%; | ||
} | ||
|
||
body { | ||
font-family: 'Roboto Mono', sans-serif; | ||
color: #252525; | ||
font-weight: 400; | ||
background-color: #f7f2e9; | ||
border-bottom: 1.6rem solid #edc84b; | ||
min-height: 100vh; | ||
padding: 3.2rem; | ||
padding-bottom: 6rem; | ||
} | ||
|
||
.container { | ||
max-width: 80rem; | ||
margin: 0 auto; | ||
|
||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 4.8rem; | ||
} | ||
|
||
/* *************** */ | ||
|
||
.header { | ||
align-self: stretch; | ||
} | ||
|
||
.header h1 { | ||
/* Non-accessible color */ | ||
color: #edc84b; | ||
/* color: #af8602; */ | ||
|
||
text-transform: uppercase; | ||
text-align: center; | ||
font-size: 5.2rem; | ||
font-weight: 300; | ||
letter-spacing: 3px; | ||
position: relative; | ||
width: 100%; | ||
display: block; | ||
} | ||
|
||
.header h1::before, | ||
.header h1::after { | ||
display: block; | ||
content: ''; | ||
height: 3px; | ||
width: 4rem; | ||
background-color: #edc84b; | ||
position: absolute; | ||
top: calc(50% - 1px); | ||
} | ||
|
||
.header h1::before { | ||
left: 0; | ||
} | ||
|
||
.header h1::after { | ||
right: 0; | ||
} | ||
|
||
/* *************** */ | ||
|
||
.menu { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 4rem; | ||
} | ||
|
||
.menu h2 { | ||
display: inline-block; | ||
padding: 1rem 0; | ||
border-top: 2px solid currentColor; | ||
border-bottom: 2px solid currentColor; | ||
font-size: 2.4rem; | ||
text-transform: uppercase; | ||
letter-spacing: 3px; | ||
font-weight: 500; | ||
} | ||
|
||
.menu > p { | ||
font-size: 1.5rem; | ||
text-align: center; | ||
line-height: 1.6; | ||
width: 80%; | ||
} | ||
|
||
.pizzas { | ||
list-style: none; | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
gap: 4.8rem; | ||
} | ||
|
||
.pizza { | ||
display: flex; | ||
gap: 3.2rem; | ||
} | ||
|
||
.pizza img { | ||
width: 12rem; | ||
aspect-ratio: 1; | ||
align-self: start; | ||
} | ||
|
||
.pizza div { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 0.8rem; | ||
padding: 0.4rem 0; | ||
} | ||
|
||
.pizza h3 { | ||
font-size: 2rem; | ||
font-weight: 400; | ||
} | ||
|
||
.pizza p { | ||
font-size: 1.4rem; | ||
font-weight: 300; | ||
font-style: italic; | ||
margin-bottom: auto; | ||
} | ||
|
||
.pizza span { | ||
display: block; | ||
font-size: 1.6rem; | ||
} | ||
|
||
.pizza.sold-out { | ||
color: #888; | ||
} | ||
|
||
.pizza.sold-out img { | ||
filter: grayscale(); | ||
opacity: 0.8; | ||
} | ||
|
||
/* *************** */ | ||
|
||
.footer { | ||
font-size: 1.4rem; | ||
} | ||
|
||
.order { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 2.4rem; | ||
} | ||
|
||
code { | ||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', | ||
monospace; | ||
.btn { | ||
color: inherit; | ||
font-family: inherit; | ||
border: none; | ||
font-size: 1.4rem; | ||
font-weight: 500; | ||
background-color: #edc84b; | ||
padding: 1.4rem 3.2rem; | ||
cursor: pointer; | ||
transition: all 0.2s; | ||
} | ||
|
||
.btn:hover { | ||
background-color: #e9bb24; | ||
} | ||
|
||
/* | ||
SPACING SYSTEM (px) | ||
2 / 4 / 8 / 12 / 16 / 24 / 32 / 40 / 48 / 64 / 80 / 96 / 128 | ||
FONT SIZE SYSTEM (px) | ||
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 /52 / 62 / 74 / 86 / 98 | ||
*/ |
Oops, something went wrong.