-
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
285 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
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,81 @@ | ||
import React, { useState, useEffect } from "react"; | ||
import styled from "styled-components"; | ||
import Codepen from "react-codepen-embed"; | ||
|
||
import { Spinner } from "../../components"; | ||
import { media } from "../../utils"; | ||
|
||
const Container = styled.div` | ||
margin-top: 50px; | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
grid-column-gap: 100px; | ||
grid-row-gap: 100px; | ||
${media.lessThan("tablet")` | ||
grid-template-columns: 1fr 1fr; | ||
grid-column-gap: 50px; | ||
grid-row-gap: 50px; | ||
`} | ||
${media.lessThan("mobile")` | ||
grid-template-columns: 1fr; | ||
grid-row-gap: 50px; | ||
`} | ||
`; | ||
|
||
export const CodePen = () => { | ||
const [isLoading, setIsLoading] = useState(true); | ||
|
||
useEffect(() => { | ||
setTimeout(() => setIsLoading(false), 3000); | ||
}, []); | ||
|
||
return ( | ||
<Container> | ||
{isLoading && <Spinner />} | ||
<Codepen | ||
hash="ZEbKzPj" | ||
user="bntnam" | ||
title="3Circles" | ||
defaultTab="result" | ||
preview="true" | ||
/> | ||
<Codepen | ||
hash="ZEbKzPj" | ||
user="bntnam" | ||
title="3Circles" | ||
defaultTab="result" | ||
preview="true" | ||
/> | ||
<Codepen | ||
hash="ZEbKzPj" | ||
user="bntnam" | ||
title="3Circles" | ||
defaultTab="result" | ||
preview="true" | ||
/> | ||
<Codepen | ||
hash="ZEbKzPj" | ||
user="bntnam" | ||
title="3Circles" | ||
defaultTab="result" | ||
preview="true" | ||
/> | ||
<Codepen | ||
hash="ZEbKzPj" | ||
user="bntnam" | ||
title="3Circles" | ||
defaultTab="result" | ||
preview="true" | ||
/> | ||
<Codepen | ||
hash="ZEbKzPj" | ||
user="bntnam" | ||
title="3Circles" | ||
defaultTab="result" | ||
preview="true" | ||
/> | ||
</Container> | ||
); | ||
}; |
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 @@ | ||
export * from "./CodePen"; |
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 |
---|---|---|
|
@@ -2,34 +2,56 @@ import React from "react"; | |
import styled from "styled-components"; | ||
|
||
import { Subheading, Text } from "../../utils"; | ||
import { Heart } from "../../components"; | ||
import { Heart, CodePen } from "../../components"; | ||
|
||
const Container = styled.div` | ||
background: ${props => props.theme.colors.tolopea}; | ||
height: 800px; | ||
background: ${(props) => props.theme.colors.tolopea}; | ||
padding: 80px 50px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
`; | ||
|
||
const Box = styled.div` | ||
background: ${props => props.theme.colors.blackcurrant}; | ||
background: ${(props) => props.theme.colors.blackcurrant}; | ||
height: 60px; | ||
width: 100vw; | ||
position: relative; | ||
` | ||
`; | ||
|
||
export const Gallery = () => ( | ||
<> | ||
<Box> | ||
<Heart /> | ||
</Box> | ||
<Container> | ||
<Subheading>Welcome to my CSS Galary!</Subheading> | ||
<Text pt={"10px"}>The Galary consists of various CSS images from my <a href="https://codepen.io/bntnam" target="_blank">CodePen</a>.</Text> | ||
<Text pt={"5px"}>If you have any idea or feedback, feel free to get in touch at my <a href="mailto:[email protected]" target="_blank">email</a>. :)</Text> | ||
<Text pt={"5px"}>Now, hope you have fun. Cheers! ♥</Text> | ||
</Container> | ||
</> | ||
); | ||
export const Gallery = () => { | ||
return ( | ||
<> | ||
<Box> | ||
<Heart /> | ||
</Box> | ||
<Container> | ||
<Subheading>Welcome to my CSS Galary!</Subheading> | ||
<Text pt={"10px"}> | ||
The Galary consists of various CSS images from my{" "} | ||
<a | ||
href="https://codepen.io/bntnam" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
CodePen | ||
</a> | ||
. | ||
</Text> | ||
<Text pt={"5px"}> | ||
If you have any idea or feedback, feel free to get in touch at my{" "} | ||
<a | ||
href="mailto:[email protected]" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
</a> | ||
. | ||
</Text> | ||
<Text pt={"5px"}>Now, hope you have fun. Cheers! ♥</Text> | ||
<CodePen /> | ||
</Container> | ||
</> | ||
); | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,42 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
const Loading = styled.div` | ||
position: fixed; | ||
width: 100%; | ||
left: 0; | ||
right: 0; | ||
top: 0; | ||
bottom: 0; | ||
background-color: rgba(0, 0, 0, 0.8); | ||
z-index: 9999; | ||
display: block; | ||
@keyframes spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
:after { | ||
content: ""; | ||
display: block; | ||
position: absolute; | ||
left: 48%; | ||
top: 40%; | ||
width: 40px; | ||
height: 40px; | ||
border-style: solid; | ||
border-color: white; | ||
border-top-color: transparent; | ||
border-width: 4px; | ||
border-radius: 50%; | ||
-webkit-animation: spin 0.8s linear infinite; | ||
animation: spin 0.8s linear infinite; | ||
} | ||
`; | ||
|
||
export const Spinner = () => <Loading />; |
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 @@ | ||
export * from "./Spinner"; |
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export * from "./media"; | ||
export { default as media } from "./media"; | ||
export * from "./style"; | ||
export * from "./theme"; | ||
export * from "./typography"; |
Binary file not shown.
Oops, something went wrong.