-
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
Showing
19 changed files
with
300 additions
and
22 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 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
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,14 @@ | ||
import React from 'react'; | ||
import '../App.css'; | ||
|
||
function Body() { | ||
return ( | ||
<div className="App"> | ||
<img src="/body-image.png" alt="images" className="home-img"/> | ||
<h1>Online Experience</h1> | ||
<p>Join unique interactive activities led by one-of-a kind hosts-all without leaving home</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default Body; |
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,31 @@ | ||
import React from 'react'; | ||
import '../App.css'; | ||
|
||
|
||
|
||
|
||
function Card(props) { | ||
// const {coverImg, rating, reviewCount, price, title, openSpots, location} = props; | ||
let badgeText | ||
if (props.list.openSpots === 0) { | ||
badgeText = "SOLD OUT" | ||
} else if (props.list.location === "Online") { | ||
badgeText = "ONLINE" | ||
} | ||
return ( | ||
<div className="card"> | ||
{badgeText && <div className="card--badge">{badgeText}</div>} | ||
<img src={props.list.coverImg} alt="image" className="card--image"/> | ||
<div className="card--stats"> | ||
<img src="/star.png" alt="star" className="card--star"/> | ||
<span>{props.list.stats.rating}</span> | ||
<span className="gray"> ({props.list.stats.reviewCount} .)</span> | ||
<span className="gray"> {props.list.location}</span> | ||
</div> | ||
<p>{props.list.title}</p> | ||
<p><span className="bold">From ${props.list.price}</span> / person</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default Card; |
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,13 @@ | ||
import React from 'react'; | ||
import '../App.css'; | ||
|
||
function Navbar () { | ||
return ( | ||
<div className="App-header"> | ||
<img src="/cool.png" alt="logo" className='App-logo'/> | ||
<h1>Cool</h1> | ||
</div> | ||
); | ||
} | ||
|
||
export default Navbar; |
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,24 @@ | ||
import React from 'react'; | ||
import Card from "./Card"; | ||
import data from "../data" | ||
function Slider() { | ||
const dataCard = data.map(list => { | ||
return ( | ||
<Card | ||
key = {list.id} | ||
list = {list} | ||
/> | ||
) | ||
}) | ||
|
||
return ( | ||
<section> | ||
<div className="slider"> | ||
{dataCard} | ||
</div> | ||
</section> | ||
); | ||
} | ||
|
||
|
||
export default Slider; |
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,119 @@ | ||
export default [ | ||
{ | ||
id: 1, | ||
title: "Life Lessons with Katie Zaferes", | ||
description: "I will share with you what I call \"Positively Impactful Moments of Disappointment.\" Throughout my career, many of my highest moments only came after setbacks and losses. But learning from those difficult moments is what gave me the ability to rise above them and reach my goals.", | ||
price: 136, | ||
coverImg: "/users/image12.png", | ||
stats: { | ||
rating: 5.0, | ||
reviewCount: 6 | ||
}, | ||
location: "Online", | ||
openSpots: 0, | ||
}, | ||
{ | ||
id: 2, | ||
title: "Learn Wedding Photography", | ||
description: "Interested in becoming a wedding photographer? For beginner and experienced photographers alike, join us in learning techniques required to leave the happy couple with memories that'll last a lifetime.", | ||
price: 125, | ||
coverImg: "/users/cycle.jpg", | ||
stats: { | ||
rating: 5.0, | ||
reviewCount: 30 | ||
}, | ||
location: "Online", | ||
openSpots: 27, | ||
}, | ||
{ | ||
id: 3, | ||
title: "Group Mountain Biking", | ||
description: "Experience the beautiful Norwegian landscape and meet new friends all while conquering rugged terrain on your mountain bike. (Bike provided!)", | ||
price: 50, | ||
coverImg: "/users/cycle2.jpg", | ||
stats: { | ||
rating: 4.8, | ||
reviewCount: 2 | ||
}, | ||
location: "Online", | ||
openSpots: 3, | ||
}, | ||
{ | ||
id: 4, | ||
title: "Group Mountain Biking", | ||
description: "Experience the beautiful Norwegian landscape and meet new friends all while conquering rugged terrain on your mountain bike. (Bike provided!)", | ||
price: 50, | ||
coverImg: "/users/cycle2.jpg", | ||
stats: { | ||
rating: 4.8, | ||
reviewCount: 2 | ||
}, | ||
location: "online", | ||
openSpots: 3, | ||
}, | ||
{ | ||
id: 5, | ||
title: "Group Mountain Biking", | ||
description: "Experience the beautiful Norwegian landscape and meet new friends all while conquering rugged terrain on your mountain bike. (Bike provided!)", | ||
price: 50, | ||
coverImg: "/users/cycle2.jpg", | ||
stats: { | ||
rating: 4.8, | ||
reviewCount: 2 | ||
}, | ||
location: "Norway", | ||
openSpots: 3, | ||
}, | ||
{ | ||
id: 6, | ||
title: "Group Mountain Biking", | ||
description: "Experience the beautiful Norwegian landscape and meet new friends all while conquering rugged terrain on your mountain bike. (Bike provided!)", | ||
price: 50, | ||
coverImg: "/users/cycle2.jpg", | ||
stats: { | ||
rating: 4.8, | ||
reviewCount: 2 | ||
}, | ||
location: "Norway", | ||
openSpots: 3, | ||
}, | ||
{ | ||
id: 7, | ||
title: "Group Mountain Biking", | ||
description: "Experience the beautiful Norwegian landscape and meet new friends all while conquering rugged terrain on your mountain bike. (Bike provided!)", | ||
price: 50, | ||
coverImg: "/users/cycle2.jpg", | ||
stats: { | ||
rating: 4.8, | ||
reviewCount: 2 | ||
}, | ||
location: "Norway", | ||
openSpots: 3, | ||
}, | ||
{ | ||
id: 8, | ||
title: "Group Mountain Biking", | ||
description: "Experience the beautiful Norwegian landscape and meet new friends all while conquering rugged terrain on your mountain bike. (Bike provided!)", | ||
price: 50, | ||
coverImg: "/users/cycle2.jpg", | ||
stats: { | ||
rating: 4.8, | ||
reviewCount: 2 | ||
}, | ||
location: "Norway", | ||
openSpots: 3, | ||
}, | ||
{ | ||
id: 9, | ||
title: "Group Mountain Biking", | ||
description: "Experience the beautiful Norwegian landscape and meet new friends all while conquering rugged terrain on your mountain bike. (Bike provided!)", | ||
price: 50, | ||
coverImg: "/users/cycle2.jpg", | ||
stats: { | ||
rating: 4.8, | ||
reviewCount: 2 | ||
}, | ||
location: "Norway", | ||
openSpots: 0, | ||
} | ||
] |
This file was deleted.
Oops, something went wrong.