forked from kookmin-sw/cap-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from kookmin-sw/feat/FrontEnd_CamaraPage
Feat/front end camara page
- Loading branch information
Showing
26 changed files
with
300 additions
and
103 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import React from "react"; | ||
import styled, { keyframes } from "styled-components"; | ||
import Logo from "../assets/LogoV2.png"; | ||
|
||
const slideAnimation = keyframes` | ||
0% { | ||
transform: translateX(0); | ||
} | ||
100% { | ||
transform: translateX(-50%); | ||
} | ||
`; | ||
|
||
const LogosContainer = styled.div` | ||
margin-top: 5rem; | ||
width: 100%; | ||
height: 130px; | ||
background-color: black; | ||
display: flex; | ||
align-items: center; | ||
position: relative; | ||
overflow: hidden; | ||
`; | ||
|
||
const ImageBox = styled.div` | ||
display: flex; | ||
background-color: #33b0ff; | ||
width: calc(277px * 20); /* Adjust according to the number of images times 2 */ | ||
animation: ${slideAnimation} 20s linear infinite; /* Double the animation duration */ | ||
`; | ||
|
||
const ImageWrapper = styled.div` | ||
flex-shrink: 0; | ||
width: 277px; | ||
height: 86px; | ||
`; | ||
|
||
const Image = styled.img` | ||
width: 100%; | ||
height: 100%; | ||
`; | ||
|
||
const FlowingLogo = () => { | ||
return ( | ||
<LogosContainer> | ||
<ImageBox> | ||
{Array.from({ length: 20 }).map((_, index) => ( | ||
<ImageWrapper key={index}> | ||
<Image src={Logo} alt={`logo ${(index % 10) + 1}`} /> | ||
</ImageWrapper> | ||
))} | ||
</ImageBox> | ||
</LogosContainer> | ||
); | ||
}; | ||
|
||
export default FlowingLogo; |
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,73 @@ | ||
import React from "react"; | ||
import styled, { keyframes } from "styled-components"; | ||
|
||
const waveAnimation = keyframes` | ||
0% { | ||
margin-left: 0; | ||
} | ||
100% { | ||
margin-left: -1600px; | ||
} | ||
`; | ||
|
||
const swellAnimation = keyframes` | ||
0%, 100% { | ||
transform: translate3d(0,-25px,0); | ||
} | ||
50% { | ||
transform: translate3d(0,5px,0); | ||
} | ||
`; | ||
|
||
// Styled-components | ||
const MainContainer = styled.div` | ||
width: 100%; | ||
height: 50vh; | ||
`; | ||
const Container = styled.div` | ||
position: relative; | ||
height: 100%; | ||
/* width: 100%; */ | ||
background: radial-gradient(ellipse at center, rgba(255, 254, 234, 1) 0%, rgba(255, 254, 234, 1) 35%, #b7e8eb 100%); | ||
overflow: hidden; | ||
`; | ||
|
||
const Ocean = styled.div` | ||
height: 5%; | ||
width: 100%; | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
background: #33b0ff; | ||
`; | ||
|
||
const Wave = styled.div` | ||
background: url("/wave2.svg") repeat-x; | ||
position: absolute; | ||
top: -198px; | ||
width: 6400px; | ||
height: 198px; | ||
animation: ${waveAnimation} 7s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite; | ||
transform: translate3d(0, 0, 0); | ||
&:nth-of-type(2) { | ||
top: -175px; | ||
animation: ${waveAnimation} 7s cubic-bezier(0.36, 0.45, 0.63, 0.53) -0.125s infinite, | ||
${swellAnimation} 7s ease -1.25s infinite; | ||
opacity: 1; | ||
} | ||
`; | ||
|
||
// React component | ||
const WaveAnimation = () => ( | ||
<MainContainer> | ||
<Container> | ||
<Ocean> | ||
<Wave /> | ||
<Wave /> | ||
</Ocean> | ||
</Container> | ||
</MainContainer> | ||
); | ||
|
||
export default WaveAnimation; |
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.