-
Notifications
You must be signed in to change notification settings - Fork 19
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
cd70067
commit cac8384
Showing
13 changed files
with
224 additions
and
64 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,58 @@ | ||
import styled from "@emotion/styled"; | ||
|
||
export const FeaturedSnippetWrapper = styled.div` | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-start; | ||
align-items: center; | ||
/* position: absolute; */ | ||
z-index: 10; | ||
overflow: hidden; | ||
@media (max-width: 768px) { | ||
padding: 20px 15px; | ||
} | ||
@media (max-width: 375px) { | ||
padding: 20px 15px; | ||
} | ||
`; | ||
|
||
export const FeaturedSnippetBadge = styled.div` | ||
background: ${(p: any) => p.theme.colors.brand.primary}; | ||
color: ${(p: any) => p.theme.colors.white.primary}; | ||
padding: 6px 12px 4px 12px; | ||
border-radius: 20px; | ||
font-size: 14px; | ||
font-weight: bold; | ||
`; | ||
|
||
export const FeaturedSnippetTitle = styled.h2` | ||
margin: 0; | ||
font-family: "Rubik Bubbles", sans-serif; | ||
font-size: 42px; | ||
line-height: 44px; | ||
`; | ||
export const FeaturedSnippetSubtitle = styled.h4` | ||
margin: 0; | ||
font-family: "Rubik Bubbles", sans-serif; | ||
font-size: 24px; | ||
line-height: 26px; | ||
`; | ||
export const FeaturedSnippetImageLink = styled.a` | ||
transform: rotate(-2deg); | ||
box-shadow: 5px 10px 22px rgba(0, 0, 0, 1); | ||
padding: 0; | ||
width: 300px; | ||
height: 300px; | ||
margin: 20px 0; | ||
`; | ||
export const FeaturedSnippetImage = styled.img` | ||
width: 100%; | ||
height: 100%; | ||
`; | ||
export const FeaturedSnippetText = styled.p` | ||
margin: 0px auto; | ||
font-family: "Gaegu", cursive; | ||
`; | ||
export const FeaturedSnippetButton = styled.button``; | ||
export const FeaturedSnippetLink = styled.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 |
---|---|---|
@@ -1,9 +1,30 @@ | ||
import React from "react"; | ||
|
||
import { | ||
FeaturedSnippetWrapper, | ||
FeaturedSnippetBadge, | ||
FeaturedSnippetTitle, | ||
FeaturedSnippetSubtitle, | ||
FeaturedSnippetImage, | ||
FeaturedSnippetImageLink, | ||
FeaturedSnippetText, | ||
FeaturedSnippetButton, | ||
FeaturedSnippetLink, | ||
} from "./FeaturedSnippet.styles"; | ||
import { SocialLinks } from ".."; | ||
|
||
export const FeaturedSnippet = () => { | ||
return ( | ||
<div> | ||
<h1>FeaturedSnippet</h1> | ||
</div> | ||
<FeaturedSnippetWrapper> | ||
<FeaturedSnippetBadge>New Release</FeaturedSnippetBadge> | ||
<FeaturedSnippetTitle>"Watermark"</FeaturedSnippetTitle> | ||
<FeaturedSnippetSubtitle>by Sky Chase</FeaturedSnippetSubtitle> | ||
<FeaturedSnippetImageLink href="https://open.spotify.com/album/3FfuBJ7SkThWE5ZsxM8DZx?si=KmWYhLPTTXWQ2kYerZcjtQ" target="_blank"> | ||
<FeaturedSnippetImage src="images/SkyChase-Watermark.jpg" /> | ||
</FeaturedSnippetImageLink> | ||
<FeaturedSnippetText>Now Streaming Everywhere</FeaturedSnippetText> | ||
<SocialLinks networks={["spotify", "soundcloud", "lastfm", "youtube"]} /> | ||
{/* <FeaturedSnippetText>Checkout the latest release!</FeaturedSnippetText> */} | ||
</FeaturedSnippetWrapper> | ||
); | ||
}; |
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
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
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
Oops, something went wrong.