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 #39 from kookmin-sw/feat/FrontEnd_CamaraPage
Feat/front end camara page
- Loading branch information
Showing
66 changed files
with
3,057 additions
and
128 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,24 @@ | ||
import { BrowserRouter, Route, Routes } from "react-router-dom"; | ||
import App from "./App"; | ||
import Camera from "./pages/Feature/camera"; | ||
import Navbar from "./components/header/navbar"; | ||
import Result from "./pages/Feature/result"; | ||
import About from "./pages/about/about"; | ||
|
||
function Routing() { | ||
return ( | ||
<div> | ||
<BrowserRouter> | ||
<Navbar /> | ||
<Routes> | ||
<Route path="/" element={<App />} /> | ||
<Route path="/camera" element={<Camera />} /> | ||
<Route path="/result" element={<Result />} /> | ||
<Route path="/about" element={<About />} /> | ||
</Routes> | ||
</BrowserRouter> | ||
</div> | ||
); | ||
} | ||
|
||
export default Routing; |
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.
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.
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.
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.
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.
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import React, { useState } from "react"; | ||
import styled from "styled-components"; | ||
import InformationModal from "./informationModal"; | ||
|
||
// React 컴포넌트 | ||
const ClickButton = () => { | ||
const [modalOpen, setModalOpen] = useState(false); | ||
const handleModalOpen = () => { | ||
setModalOpen(true); | ||
}; | ||
const handleModalClose = () => { | ||
setModalOpen(false); | ||
}; | ||
|
||
return ( | ||
<Container> | ||
<Button onClick={handleModalOpen}>Click Me!</Button> | ||
{modalOpen && <InformationModal onClose={handleModalClose} />} | ||
</Container> | ||
); | ||
}; | ||
const Container = styled.div` | ||
z-index: 80; | ||
left: 45%; | ||
top: 80%; | ||
position: absolute; | ||
`; | ||
// Styled Components 정의 | ||
const Button = styled.button` | ||
position: relative; | ||
display: inline-block; | ||
cursor: pointer; | ||
outline: none; | ||
border: 0; | ||
vertical-align: middle; | ||
text-decoration: none; | ||
font-size: inherit; | ||
font-family: inherit; | ||
font-weight: 600; | ||
color: #382b22; | ||
text-transform: uppercase; | ||
padding: 1.25em 2em; | ||
background: white; | ||
border: 2px solid #000000; | ||
border-radius: 0.75em; | ||
transform-style: preserve-3d; | ||
transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), background 150ms cubic-bezier(0, 0, 0.58, 1); | ||
&::before { | ||
position: absolute; | ||
content: ""; | ||
width: 100%; | ||
height: 100%; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
background: #000000; | ||
border-radius: inherit; | ||
box-shadow: 0 0 0 2px #000000, 0 0.625em 0 0 white; | ||
transform: translate3d(0, 0.75em, -1em); | ||
transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1); | ||
} | ||
&:hover { | ||
background: #ffd166; | ||
transform: translate(0, 0.25em); | ||
&::before { | ||
box-shadow: 0 0 0 2px #000000, 0 0.5em 0 0 white; | ||
transform: translate3d(0, 0.5em, -1em); | ||
} | ||
} | ||
&:active { | ||
background: #ffd166; | ||
transform: translate(0em, 0.75em); | ||
&::before { | ||
box-shadow: 0 0 0 2px #b18597, 0 0 #ffe3e2; | ||
transform: translate3d(0, 0, -1em); | ||
} | ||
} | ||
`; | ||
|
||
export default ClickButton; |
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,96 @@ | ||
import React from "react"; | ||
import styled, { keyframes } from "styled-components"; | ||
|
||
import v2 from "../assets/v2.png"; | ||
import v3 from "../assets/v3.png"; | ||
import v4 from "../assets/v4.png"; | ||
import v5 from "../assets/v5.png"; | ||
import v6 from "../assets/v6.png"; | ||
const slideAnimation = keyframes` | ||
0% { | ||
transform: translateX(0); | ||
} | ||
100% { | ||
transform: translateX(-50%); | ||
} | ||
`; | ||
const BlackCircleContainer = styled.div` | ||
width: 400px; | ||
height: 400px; | ||
position: absolute; | ||
border-radius: 100%; | ||
right: 10%; | ||
top: 0; | ||
z-index: 3; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
`; | ||
const BlackCircle = styled.div` | ||
width: 400px; | ||
height: 400px; | ||
position: relative; | ||
overflow: hidden; | ||
border-radius: 100%; | ||
background-color: black; | ||
`; | ||
const ImageBox = styled.div` | ||
width: 582px; | ||
height: 100%; | ||
display: flex; | ||
flex-wrap: nowrap; | ||
justify-content: center; | ||
align-items: center; | ||
animation: ${slideAnimation} 5s linear infinite; | ||
`; | ||
const ImageWrapper = styled.div` | ||
flex-shrink: 0; | ||
width: 97px; | ||
height: 87px; | ||
`; | ||
const Image = styled.img` | ||
width: 100%; | ||
height: 100%; | ||
`; | ||
const Slider = () => { | ||
return ( | ||
<BlackCircleContainer> | ||
<BlackCircle> | ||
<ImageBox> | ||
<ImageWrapper> | ||
<Image src={v2} alt="v2" /> | ||
</ImageWrapper> | ||
<ImageWrapper> | ||
<Image src={v3} alt="v3" /> | ||
</ImageWrapper> | ||
<ImageWrapper> | ||
<Image src={v4} alt="v4" /> | ||
</ImageWrapper> | ||
<ImageWrapper> | ||
<Image src={v5} alt="v5" /> | ||
</ImageWrapper> | ||
<ImageWrapper> | ||
<Image src={v6} alt="v6" /> | ||
</ImageWrapper> | ||
<ImageWrapper> | ||
<Image src={v2} alt="v2" /> | ||
</ImageWrapper> | ||
<ImageWrapper> | ||
<Image src={v3} alt="v3" /> | ||
</ImageWrapper> | ||
<ImageWrapper> | ||
<Image src={v4} alt="v4" /> | ||
</ImageWrapper> | ||
<ImageWrapper> | ||
<Image src={v5} alt="v5" /> | ||
</ImageWrapper> | ||
<ImageWrapper> | ||
<Image src={v6} alt="v6" /> | ||
</ImageWrapper> | ||
</ImageBox> | ||
</BlackCircle> | ||
</BlackCircleContainer> | ||
); | ||
}; | ||
|
||
export default Slider; |
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.