-
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.
Merge remote-tracking branch 'origin/origin/feat/main/#12' into feature/
#17/senior-to-junior-view
- Loading branch information
Showing
32 changed files
with
692 additions
and
20,182 deletions.
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,6 @@ | ||
import React, { ReactNode } from 'react'; | ||
import SideBar from 'src/components/common/sidebar'; | ||
import Header from 'src/components/common/header'; | ||
import * as S from "src/components/common/layout/index.style" | ||
|
||
interface LayoutProps { | ||
children: React.ReactNode; | ||
} | ||
|
||
const Layout: React.FC<LayoutProps> = ({ children }) => { | ||
return ( | ||
<S.LayoutContainer> | ||
<Header /> | ||
<S.MainContent> | ||
<SideBar /> | ||
<S.ContentArea> | ||
{children} | ||
</S.ContentArea> | ||
</S.MainContent> | ||
</S.LayoutContainer> | ||
); | ||
import { ProvidersProps } from "../providers/type"; | ||
const Layout = ({ children }: ProvidersProps) => { | ||
return <>{children}</>; | ||
}; | ||
|
||
export default Layout; | ||
export default Layout; |
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,52 @@ | ||
import React from "react"; | ||
import { useNavigate } from "react-router-dom"; | ||
import styled from "styled-components"; | ||
|
||
const NotFound = () => { | ||
const navigate = useNavigate(); | ||
|
||
const handleGoBack = () => { | ||
navigate("/"); | ||
}; | ||
|
||
return ( | ||
<Container> | ||
<Title>404 - Page Not Found</Title> | ||
<Description>없는 페이지</Description> | ||
<Button onClick={handleGoBack}>홈으로 돌아가</Button> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default NotFound; | ||
|
||
const Container = styled.div` | ||
position: absolute; | ||
z-index: 7; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100vw; | ||
height: 100vh; | ||
text-align: center; | ||
background-color: #fff; | ||
`; | ||
|
||
const Title = styled.h1` | ||
font-size: 4rem; | ||
margin-bottom: 1rem; | ||
`; | ||
|
||
const Description = styled.p` | ||
font-size: 1.5rem; | ||
margin-bottom: 2rem; | ||
`; | ||
|
||
const Button = styled.button` | ||
padding: 1rem 2rem; | ||
font-size: 1rem; | ||
border: none; | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { useLocation } from "react-router-dom"; | ||
import { ProvidersProps } from "../providers/type"; | ||
import SideBar from "../sidebar/index"; | ||
import styled from "styled-components"; | ||
import Header from "../header/index"; | ||
import Layout from "../layout/layout"; | ||
import useExceptionHandling from "src/constants/exceptionHandling/constants" | ||
|
||
const pageTemplate = ({ children }: ProvidersProps) => { | ||
const exceptionHandling = useExceptionHandling(); | ||
return ( | ||
<LayoutContainer> | ||
{exceptionHandling && <Header />} | ||
{exceptionHandling && <SideBar />} | ||
<Layout>{children}</Layout> | ||
</LayoutContainer> | ||
); | ||
}; | ||
export default pageTemplate; | ||
|
||
export const LayoutContainer = styled.div` | ||
height: 100vh; | ||
display: flex; | ||
user-select: none; | ||
background-color: #f7fff3; | ||
`; | ||
|
||
export const MainContent = styled.div` | ||
display: flex; | ||
flex: 1; | ||
`; | ||
|
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,5 @@ | ||
import { ReactNode } from "react"; | ||
|
||
export interface ProvidersProps { | ||
children: React.ReactNode; | ||
} |
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,10 @@ | ||
import React from "react"; | ||
|
||
const Competition=()=>{ | ||
return( | ||
<> | ||
|
||
</> | ||
) | ||
} | ||
export default Competition |
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,88 @@ | ||
import styled, { keyframes, css } from "styled-components"; | ||
|
||
const slideIn = keyframes` | ||
from { | ||
transform: translateX(100%); | ||
} | ||
to { | ||
transform: translateX(0); | ||
} | ||
`; | ||
|
||
export const Layout = styled.div` | ||
width: 620px; | ||
height: 270px; | ||
border-radius: 13px; | ||
background: #fff; | ||
box-shadow: 0px 3px 9px 0px rgba(0, 0, 0, 0.12); | ||
`; | ||
export const Padding = styled.div` | ||
width: 90%; | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
padding: 20px 40px 30px 25px; | ||
`; | ||
export const Head = styled.div` | ||
width: 70px; | ||
height: 30px; | ||
display: flex; | ||
align-items: center; | ||
gap: 12px; | ||
margin-bottom: 20px; | ||
`; | ||
export const HeadImg = styled.img` | ||
width: 30px; | ||
height: 30px; | ||
`; | ||
export const HeadText = styled.p` | ||
font-family: Pretendard; | ||
font-size: 15px; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 26px; | ||
`; | ||
export const BodyHead = styled.div` | ||
width: 200px; | ||
height: 30px; | ||
display: flex; | ||
gap: 30px; | ||
align-items: center; | ||
`; | ||
|
||
interface TypeProps { | ||
isActive: boolean; | ||
} | ||
|
||
export const Type = styled.p<TypeProps>` | ||
color: ${(props) => (props.isActive ? "#0e0e0e" : "#797979")}; | ||
font-family: Pretendard; | ||
font-size: 13px; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 26px; | ||
cursor: pointer; | ||
`; | ||
|
||
export const NotificationItem = styled.div` | ||
display: flex; | ||
justify-content: space-between; | ||
padding: 10px; | ||
margin: 5px 0; | ||
background-color: #f1f1f1; | ||
border-radius: 4px; | ||
`; | ||
|
||
export const NotificationText = styled.span` | ||
color: #333; | ||
`; | ||
|
||
export const ApprovalButton = styled.button` | ||
color: #2e7d32; | ||
background-color: transparent; | ||
border: none; | ||
cursor: pointer; | ||
&:hover { | ||
text-decoration: underline; | ||
} | ||
`; |
Oops, something went wrong.