-
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
0225df2
commit 29bd927
Showing
13 changed files
with
389 additions
and
333 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
import format from 'date-fns/format'; | ||
import ptBR from 'date-fns/locale/pt-BR'; | ||
import format from "date-fns/format"; | ||
import ptBR from "date-fns/locale/pt-BR"; | ||
import Link from "next/link"; | ||
|
||
import styles from './styles.module.scss' | ||
import styles from "./styles.module.scss"; | ||
|
||
export function Header() { | ||
const currentDate = format(new Date(), 'EEEEEE, d MMMM', { | ||
locale: ptBR, | ||
}); | ||
const currentDate = format(new Date(), "EEEEEE, d MMMM", { | ||
locale: ptBR, | ||
}); | ||
|
||
return ( | ||
<header className={styles.headerContainer}> | ||
<img src="/logo.svg" alt="Podcastr" /> | ||
return ( | ||
<header className={styles.headerContainer}> | ||
<Link href="/"> | ||
<img src="/logo.svg" alt="Podcastr" /> | ||
</Link> | ||
|
||
<p>O melhor para você ouvir, sempre</p> | ||
<p>O melhor para você ouvir, sempre</p> | ||
|
||
<span>{currentDate}</span> | ||
</header> | ||
); | ||
} | ||
<span>{currentDate}</span> | ||
</header> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,22 +1,26 @@ | ||
.headerContainer { | ||
background: var(--white); | ||
height: 6.5rem; | ||
background: var(--white); | ||
height: 6.5rem; | ||
|
||
display: flex; | ||
align-items: center; | ||
display: flex; | ||
align-items: center; | ||
|
||
padding: 2rem 4rem; | ||
padding: 2rem 4rem; | ||
|
||
border-bottom: 1px solid var(--gray-100); | ||
border-bottom: 1px solid var(--gray-100); | ||
|
||
p { | ||
margin-left: 2rem; | ||
padding: 0.25rem 0 0.25rem 2rem; | ||
border-left: 1px solid var(--gray-100); | ||
} | ||
p { | ||
margin-left: 2rem; | ||
padding: 0.25rem 0 0.25rem 2rem; | ||
border-left: 1px solid var(--gray-100); | ||
} | ||
|
||
span { | ||
margin-left: auto; | ||
text-transform: capitalize; | ||
} | ||
} | ||
span { | ||
margin-left: auto; | ||
text-transform: capitalize; | ||
} | ||
|
||
img:hover { | ||
cursor: pointer; | ||
} | ||
} |
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
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
Oops, something went wrong.