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
02d9f05
commit 80ed579
Showing
10 changed files
with
132 additions
and
9 deletions.
There are no files selected for viewing
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,13 @@ | ||
import MainNavigation from "./MainNavigation"; | ||
import classes from "./Layout.module.css"; | ||
|
||
function Layout(props) { | ||
return ( | ||
<div> | ||
<MainNavigation /> | ||
<main className={classes.main}>{props.children}</main> | ||
</div> | ||
); | ||
} | ||
|
||
export default Layout; |
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,5 @@ | ||
.main { | ||
margin: 3rem auto; | ||
width: 90%; | ||
max-width: 40rem; | ||
} |
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 Card from "../ui/Card"; | ||
import classes from "./MeetupItem.module.css"; | ||
|
||
function MeetupItem(props) { | ||
return ( | ||
<li className={classes.item}> | ||
<Card> | ||
<div className={classes.image}> | ||
<img src={props.image} alt={props.title} /> | ||
</div> | ||
<div className={classes.content}> | ||
<h3>{props.title}</h3> | ||
<address>{props.address}</address> | ||
<p>{props.description}</p> | ||
</div> | ||
<div className={classes.actions}> | ||
<button>To Favorites</button> | ||
</div> | ||
</Card> | ||
</li> | ||
); | ||
} | ||
|
||
export default MeetupItem; |
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 @@ | ||
.item { | ||
margin: 1rem 0; | ||
} | ||
|
||
.image { | ||
width: 100%; | ||
height: 20rem; | ||
overflow: hidden; | ||
border-top-right-radius: 6px; | ||
border-top-left-radius: 6px; | ||
} | ||
|
||
.image img { | ||
width: 100%; | ||
object-fit: cover; | ||
} | ||
|
||
.content { | ||
text-align: center; | ||
padding: 1rem; | ||
} | ||
|
||
.content h3 { | ||
font-size: 1.25rem; | ||
color: #2c292b; | ||
} | ||
|
||
.actions { | ||
padding: 1.5rem; | ||
text-align: center; | ||
} | ||
|
||
.actions button { | ||
font: inherit; | ||
cursor: pointer; | ||
color: #77002e; | ||
border: 1px solid #77002e; | ||
background-color: transparent; | ||
padding: 0.5rem 1.5rem; | ||
border-radius: 4px; | ||
} | ||
|
||
.actions button:hover, | ||
.actions button:active { | ||
background-color: #ffe2ed; | ||
} |
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,21 @@ | ||
import MeetupItem from "./MeetupItem"; | ||
import classes from "./MeetupList.module.css"; | ||
|
||
function MeetupList(props) { | ||
return ( | ||
<ul className={classes.list}> | ||
{props.meetups.map((meetup) => ( | ||
<MeetupItem | ||
key={meetup.id} | ||
id={meetup.id} | ||
image={meetup.image} | ||
title={meetup.title} | ||
address={meetup.address} | ||
description={meetup.description} | ||
/> | ||
))} | ||
</ul> | ||
); | ||
} | ||
|
||
export default MeetupList; |
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,5 @@ | ||
.list { | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
} |
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,7 @@ | ||
import classes from "./Card.module.css"; | ||
|
||
function Card(props) { | ||
return <div className={classes.card}>{props.children}</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,5 @@ | ||
.card { | ||
background-color: white; | ||
border-radius: 6px; | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); | ||
} |
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