Skip to content

Commit

Permalink
Initial files
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyrithvik committed Jun 24, 2023
1 parent 02e0aa6 commit 26b6058
Show file tree
Hide file tree
Showing 20 changed files with 314 additions and 138 deletions.
Binary file removed public/favicon.ico
Binary file not shown.
Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
25 changes: 0 additions & 25 deletions public/manifest.json

This file was deleted.

Binary file added public/pizzas/focaccia.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/pizzas/funghi.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/pizzas/margherita.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/pizzas/prosciutto.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/pizzas/salamino.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/pizzas/spinaci.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

38 changes: 0 additions & 38 deletions src/App.css

This file was deleted.

25 changes: 0 additions & 25 deletions src/App.js

This file was deleted.

8 changes: 0 additions & 8 deletions src/App.test.js

This file was deleted.

46 changes: 46 additions & 0 deletions src/data.js
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;
192 changes: 183 additions & 9 deletions src/index.css
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
*/
Loading

0 comments on commit 26b6058

Please sign in to comment.