-
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
3988dc0
commit 8d30b93
Showing
6 changed files
with
632 additions
and
460 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,38 @@ | ||
import React from 'react'; | ||
import SkullSpaceMemberLogo from './SkullSpaceMemberLogo'; | ||
|
||
const CAD = new Intl.NumberFormat('en-ca', { | ||
style: 'currency', | ||
currency: 'CAD' | ||
}); | ||
|
||
|
||
|
||
export default function BarItem({ name, image, size, price }) { | ||
const textStyle = image ? { flex: 1 } : {}; | ||
|
||
return ( | ||
<div | ||
className="bar-item" | ||
style={{ justifyContent: image ? 'left' : 'center' }} | ||
> | ||
{image ? ( | ||
<div className="bar-item-logo"> | ||
<img src={image} alt="" /> | ||
</div> | ||
) : ( | ||
'' | ||
)} | ||
<div style={textStyle}> | ||
<h4 className="bar-item-title"> | ||
{name} {size ? <i>{size}mL</i> : ''} | ||
</h4> | ||
<span className="bar-item-price"> | ||
{CAD.format(price / 100)} ( | ||
<SkullSpaceMemberLogo /> | ||
{CAD.format(price / 100 / 2)}) | ||
</span> | ||
</div> | ||
</div> | ||
); | ||
} |
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,11 @@ | ||
|
||
|
||
export default function SkullSpaceMemberLogo() { | ||
return ( | ||
<img | ||
className="bar-item-skull" | ||
src="skullspace-round.svg" | ||
alt="SkullSpace member logo" | ||
/> | ||
); | ||
} |
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,22 @@ | ||
[ | ||
{ | ||
"id": 1, | ||
"name": "🍺 Beers" | ||
}, | ||
{ | ||
"id": 2, | ||
"name": "🌊 Seltzers" | ||
}, | ||
{ | ||
"id": 3, | ||
"name": "🥃 Mixed Drinks/Shots" | ||
}, | ||
{ | ||
"id": 4, | ||
"name": "🚫 Non-Alcoholic" | ||
}, | ||
{ | ||
"id": 5, | ||
"name": "Food" | ||
} | ||
] |
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,136 @@ | ||
[ | ||
{ | ||
"id": 1, | ||
"name": "Coors", | ||
"image": "coors.svg", | ||
"size": 355, | ||
"price": 800, | ||
"category": 1 | ||
}, | ||
{ | ||
"id": 2, | ||
"name": "Coors Light", | ||
"image": "coors-light.svg", | ||
"size": 355, | ||
"price": 800, | ||
"category": 1 | ||
}, | ||
{ | ||
"id": 3, | ||
"name": "Pabst Blue Ribbon", | ||
"image": "pbr.svg", | ||
"size": 355, | ||
"price": 800, | ||
"category": 1 | ||
}, | ||
{ | ||
"id": 4, | ||
"name": "Half Pints St. James Pale Ale", | ||
"image": "half-pints.png", | ||
"size": 473, | ||
"price": 1000, | ||
"category": 1 | ||
}, | ||
{ | ||
"id": 5, | ||
"name": "Kilter Juicii", | ||
"image": "kilter.png", | ||
"size": 473, | ||
"price": 1000, | ||
"category": 1 | ||
}, | ||
{ | ||
"id": 6, | ||
"name": "White Claw Black Cherry", | ||
"image": "white-claw-black-cherry.png", | ||
"size": 355, | ||
"price": 900, | ||
"category": 2 | ||
}, | ||
{ | ||
"id": 7, | ||
"name": "White Claw Watermelon", | ||
"image": "white-claw-watermelon.png", | ||
"size": 355, | ||
"price": 900, | ||
"category": 2 | ||
}, | ||
{ | ||
"id": 8, | ||
"name": "White Claw Natural Lime", | ||
"image": "white-claw-lime.png", | ||
"size": 355, | ||
"price": 900, | ||
"category": 2 | ||
}, | ||
{ | ||
"id": 9, | ||
"name": "White Claw Mango", | ||
"image": "white-claw-mango.png", | ||
"size": 355, | ||
"price": 900, | ||
"category": 2 | ||
}, | ||
{ | ||
"id": 10, | ||
"name": "White Claw Ruby Grapefruit", | ||
"image": "white-claw-grapefruit.png", | ||
"size": 355, | ||
"price": 900, | ||
"category": 2 | ||
}, | ||
{ | ||
"id": 11, | ||
"name": "Single", | ||
"size": 40, | ||
"price": 900, | ||
"category": 3 | ||
}, | ||
{ | ||
"id": 12, | ||
"name": "Double", | ||
"size": 80, | ||
"price": 1600, | ||
"category": 3 | ||
}, | ||
{ | ||
"id": 13, | ||
"name": "Soda / Water", | ||
"image": "coke.svg", | ||
"price": 300, | ||
"category": 4 | ||
}, | ||
{ | ||
"id": 14, | ||
"name": "Olé Mocktails", | ||
"image": "ole.png", | ||
"price": 800, | ||
"category": 4 | ||
}, | ||
{ | ||
"id": 15, | ||
"name": "Red Bull", | ||
"image": "redbull.webp", | ||
"price": 600, | ||
"category": 4 | ||
}, | ||
{ | ||
"id": 16, | ||
"name": "Red Bull Zero Sugar", | ||
"image": "redbull-zero.png", | ||
"price": 600, | ||
"category": 4 | ||
}, | ||
{ | ||
"id": 17, | ||
"name": "Pizza", | ||
"price": 300, | ||
"category": 5 | ||
}, | ||
{ | ||
"id": 18, | ||
"name": "Pizza 2 Slice", | ||
"price": 500, | ||
"category": 5 | ||
} | ||
] |