-
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
5 changed files
with
102 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from "react"; | ||
|
||
const AdminLetters = () => { | ||
return <div>Letters</div>; | ||
}; | ||
|
||
export default AdminLetters; |
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,71 @@ | ||
import React from "react"; | ||
import styled, { css } from "styled-components"; | ||
import { AiOutlineMail, AiOutlineUser } from "react-icons/ai"; | ||
|
||
const AdminNavigation = () => { | ||
return ( | ||
<AdminNavigationList> | ||
<AdminNavigationItem> | ||
<LetterIcon /> | ||
</AdminNavigationItem> | ||
<AdminNavigationItem> | ||
<UserIcon /> | ||
</AdminNavigationItem> | ||
</AdminNavigationList> | ||
); | ||
}; | ||
|
||
const AdminNavigationList = styled.ul` | ||
background-color: #f1f3f5; | ||
box-sizing: border-box; | ||
max-width: 7rem; | ||
width: 100%; | ||
height: calc(100vh - 8rem); | ||
margin-bottom: -6rem; | ||
box-shadow: 5px 0px 30px 1px rgba(200, 200, 200, 0.5); | ||
padding-top: 3.5rem; | ||
@media ${({ theme }) => theme.device.mobile} { | ||
height: 100vh; | ||
} | ||
`; | ||
|
||
const NavigationItemStyles = css` | ||
margin: 1.2rem 0rem; | ||
padding: 1.5rem 0rem; | ||
width: 100%; | ||
text-align: center; | ||
cursor: pointer; | ||
&:first-child { | ||
margin-top: 0; | ||
} | ||
&:hover { | ||
border-right: 3px solid #faa2c1; | ||
& > * { | ||
color: #faa2c1; | ||
} | ||
} | ||
`; | ||
|
||
const AdminNavigationItem = styled.li` | ||
${NavigationItemStyles} | ||
`; | ||
|
||
const IconStyles = css` | ||
font-size: 2.3rem; | ||
font-weight: 600; | ||
color: rgba(0, 0, 0, 0.5); | ||
`; | ||
|
||
const LetterIcon = styled(AiOutlineMail)` | ||
${IconStyles} | ||
`; | ||
|
||
const UserIcon = styled(AiOutlineUser)` | ||
${IconStyles} | ||
`; | ||
|
||
export default AdminNavigation; |
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 React from "react"; | ||
|
||
const AdminPageTitle = () => { | ||
return <div>Title</div>; | ||
}; | ||
|
||
export default AdminPageTitle; |
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,15 @@ | ||
import React from "react"; | ||
import { Route } from "react-router"; | ||
import AdminNavigation from "../components/Admin/AdminNavigation"; | ||
|
||
const AdminPage = () => { | ||
return ( | ||
<> | ||
<AdminNavigation /> | ||
<Route path="/admin/letters" /> | ||
<Route path="/admin/users" /> | ||
</> | ||
); | ||
}; | ||
|
||
export default AdminPage; |