This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
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
117 changed files
with
448 additions
and
98 deletions.
There are no files selected for viewing
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.
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,57 @@ | ||
import { ColumnFlexBox } from '@/components/styled'; | ||
import { AuthField, AuthFieldBackground } from '@/pages/Auth/styled'; | ||
import Box from '@mui/material/Box'; | ||
import { FinalButton } from '@/pages/Post/styled'; | ||
import back from '/back.svg'; | ||
import IconButton from '@mui/material/IconButton'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
function SigninPage() { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<ColumnFlexBox padding='5%' marginTop='10%' > | ||
<IconButton | ||
style={{ position: 'fixed', top: 20, left: 20 }} | ||
onClick={() => { | ||
navigate('/'); | ||
}} | ||
> | ||
<img src={back} style={{ width: '45px', height: '45px' }} /> | ||
</IconButton> | ||
|
||
<Box | ||
sx={{ | ||
width: '100%', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
justifyContent: 'space-between', | ||
}} | ||
> | ||
<div | ||
style={{ | ||
fontFamily: 'WAGURITTF', | ||
fontWeight: 'Bold', | ||
color: '#00AF20', | ||
fontSize: 42, | ||
}} | ||
> | ||
나누리 | ||
</div> | ||
|
||
<AuthFieldBackground> | ||
<AuthField placeholder={'아이디를 입력해주세요'} /> | ||
</AuthFieldBackground> | ||
|
||
<AuthFieldBackground> | ||
<AuthField placeholder={'비밀번호를 입력해주세요'} /> | ||
</AuthFieldBackground> | ||
</Box> | ||
|
||
<FinalButton>로그인</FinalButton> | ||
</ColumnFlexBox> | ||
); | ||
} | ||
|
||
export default SigninPage; |
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,7 @@ | ||
import { ColumnFlexBox } from '@/components/styled'; | ||
|
||
function SignupPage() { | ||
return <ColumnFlexBox></ColumnFlexBox>; | ||
} | ||
|
||
export default SignupPage; |
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,17 @@ | ||
import { styled } from '@mui/material/styles'; | ||
import { InputBase } from '@mui/material'; | ||
import { FieldBackground } from '@/pages/Post/styled'; | ||
|
||
const AuthFieldBackground = styled(FieldBackground)({ | ||
margin: '8px auto', | ||
}); | ||
|
||
const AuthField = styled(InputBase)({ | ||
flexGrow: 1, | ||
padding: '12px', | ||
fontFamily: 'Pretendard', | ||
fontSize: '20px', | ||
fontWeight: '500', | ||
}); | ||
|
||
export { AuthFieldBackground, AuthField }; |
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,35 @@ | ||
import { ColumnFlexBox } from '@/components/styled'; | ||
import { DetailContent, DetailImg, DetailRegion, DetailTitle } from '@/pages/Detail/styled'; | ||
import Box from '@mui/material/Box'; | ||
|
||
function DetailPage() { | ||
return ( | ||
<ColumnFlexBox style={{ alignItems: 'center' }}> | ||
<DetailImg | ||
src={ | ||
new URL( | ||
'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzWaHRKYynnJJvBanWuAVxpma7c3USTWu7WQ&s', | ||
).href | ||
} | ||
alt="DetailImage" | ||
/> | ||
|
||
<Box | ||
display="flex" | ||
justifyContent="space-between" | ||
flexDirection="row" | ||
width="90%" | ||
alignItems="center" | ||
marginTop="12px" | ||
> | ||
<DetailTitle>의성식 성능좋은 상추겉절이</DetailTitle> | ||
|
||
<DetailRegion>경북 의성군</DetailRegion> | ||
</Box> | ||
|
||
<DetailContent>상추겉절이 입니다.</DetailContent> | ||
</ColumnFlexBox> | ||
); | ||
} | ||
|
||
export default DetailPage; |
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,3 @@ | ||
import DetailPage from './DetailPage'; | ||
|
||
export default DetailPage; |
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,34 @@ | ||
import { styled } from '@mui/material/styles'; | ||
import Typography from '@mui/material/Typography'; | ||
|
||
const DetailImg = styled('img')({ | ||
width: '90%', | ||
maxWidth: '500px', | ||
maxHeight: '300px', | ||
borderRadius: '12px', | ||
}); | ||
|
||
const DetailTitle = styled(Typography)({ | ||
fontFamily: 'Pretendard', | ||
fontSize: '24px', | ||
fontWeight: 'bold', | ||
color: '#3C3C3C', | ||
}); | ||
|
||
const DetailRegion = styled(Typography)({ | ||
marginLeft: '20px', | ||
fontFamily: 'Pretendard', | ||
fontSize: '16px', | ||
fontWeight: '500', | ||
color: '#7C7C7C', | ||
}); | ||
|
||
const DetailContent = styled(Typography)({ | ||
marginTop: '12px', | ||
fontFamily: 'Pretendard', | ||
fontSize: '16px', | ||
fontWeight: '500', | ||
width: '90%', | ||
}); | ||
|
||
export { DetailImg, DetailTitle, DetailRegion, DetailContent }; |
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,55 @@ | ||
import { ColumnFlexBox } from '@/components/styled'; | ||
import IconButton from '@mui/material/IconButton'; | ||
import back from '/back.svg'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import Box from '@mui/material/Box'; | ||
import { | ||
ContentField, | ||
FieldBackground, | ||
FieldTitle, | ||
FinalButton, | ||
TitleField, | ||
} from '@/pages/Post/styled'; | ||
|
||
function PostPage() { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<ColumnFlexBox style={{ alignItems: 'center' }}> | ||
<IconButton | ||
style={{ position: 'fixed', top: 20, left: 20 }} | ||
onClick={() => { | ||
navigate('/'); | ||
}} | ||
> | ||
<img src={back} style={{ width: '45px', height: '45px' }} /> | ||
</IconButton> | ||
|
||
<Box | ||
sx={{ | ||
position: 'relative', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
marginTop: '80px', | ||
paddingBottom: '120px', | ||
}} | ||
> | ||
<FieldTitle>제목</FieldTitle> | ||
|
||
<FieldBackground> | ||
<TitleField placeholder="제목을 입력해주세요" /> | ||
</FieldBackground> | ||
|
||
<FieldTitle>내용</FieldTitle> | ||
|
||
<FieldBackground> | ||
<ContentField placeholder="내용을 입력해주세요" multiline={true} minRows={2} /> | ||
</FieldBackground> | ||
|
||
<FinalButton>작성 완료</FinalButton> | ||
</Box> | ||
</ColumnFlexBox> | ||
); | ||
} | ||
|
||
export default PostPage; |
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,3 @@ | ||
import PostPage from '@/pages/Post/PostPage'; | ||
|
||
export default PostPage; |
Oops, something went wrong.