-
Notifications
You must be signed in to change notification settings - Fork 5
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
5 changed files
with
40 additions
and
7 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,25 @@ | ||
import Subtitle from './Subtitle'; | ||
import LocationSelect from './LocationSelect'; | ||
import { Location } from '../types/sparkeats'; | ||
|
||
type HomeHeaderProps = { | ||
locations: Location[]; | ||
}; | ||
|
||
function HomeHeader({ locations }: HomeHeaderProps) { | ||
return ( | ||
<div className="home-header"> | ||
<Subtitle /> | ||
|
||
<LocationSelect locations={locations} /> | ||
|
||
<div className="home-header__button"> | ||
<a className="button__header-primary" href="/places/new"> | ||
Add a Review | ||
</a> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default HomeHeader; |
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,12 @@ | ||
.home-header { | ||
margin: 4rem auto 5rem auto; | ||
width: 80%; | ||
|
||
&__button { | ||
margin-top: 2rem; | ||
|
||
@media (min-width: 64rem) { | ||
width: 33%; | ||
} | ||
} | ||
} |
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