-
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.
Browse files
Browse the repository at this point in the history
Style/#7 style unify
- Loading branch information
Showing
6 changed files
with
194 additions
and
45 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.
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 |
---|---|---|
@@ -1,59 +1,126 @@ | ||
// styles/Navigation.styles.ts | ||
import styled from "@emotion/styled"; | ||
import Link from "next/link"; | ||
|
||
export const NavContainer = styled.nav` | ||
display: flex; | ||
align-items: center; | ||
padding: 16px; | ||
background-color: #333; | ||
padding: 20px; | ||
color: white; | ||
border-bottom: 1px solid rgba(90, 101, 119, 0.15); | ||
background-color: #ffffff; | ||
position: sticky; | ||
top: 0; | ||
width: 100%; | ||
z-index: 1000; | ||
justify-content: space-between; | ||
@media (max-width: 768px) { | ||
padding: 10px; | ||
} | ||
`; | ||
|
||
export const Logo = styled.h1` | ||
margin: 0; | ||
export const HamburgerButton = styled.button` | ||
background: none; | ||
border: none; | ||
font-size: 24px; | ||
cursor: pointer; | ||
display: none; | ||
@media (max-width: 768px) { | ||
display: block; | ||
} | ||
`; | ||
|
||
export const Logo = styled(Link)` | ||
text-decoration: none; | ||
font-size: 1.5rem; | ||
color: white; | ||
margin-right: 16px; | ||
margin-right: 20px; | ||
color: #000000; | ||
font-weight: 700; | ||
flex-grow: 1; | ||
@media (max-width: 768px) { | ||
margin-left: 16px; | ||
} | ||
`; | ||
|
||
export const NavItems = styled.ul` | ||
display: flex; | ||
list-style: none; | ||
margin-left: 16px; | ||
flex: 1; | ||
font-size: 16px; | ||
@media (max-width: 768px) { | ||
display: none; | ||
} | ||
`; | ||
|
||
export const StyledNavLink = styled(Link)` | ||
margin-right: 15px; | ||
cursor: pointer; | ||
color: #ddd; | ||
color: #000000; | ||
text-decoration: none; | ||
&:hover { | ||
color: #fff; | ||
color: #555; | ||
} | ||
`; | ||
|
||
export const NavItem = styled.li` | ||
margin-right: 32px; | ||
export const LoginText = styled.span` | ||
cursor: pointer; | ||
color: #ddd; | ||
color: #000000; | ||
margin-right: 15px; | ||
font-size: 16px; | ||
&:hover { | ||
color: #fff; | ||
color: #555; | ||
} | ||
@media (max-width: 768px) { | ||
margin-left: auto; | ||
} | ||
`; | ||
|
||
export const LoginButton = styled.button` | ||
background-color: #555; | ||
export const SignUpButton = styled.button` | ||
background-color: #000000; | ||
color: white; | ||
padding: 8px 16px; | ||
padding: 12px 20px; | ||
border: none; | ||
border-radius: 4px; | ||
border-radius: 10px; | ||
cursor: pointer; | ||
font-size: 16px; | ||
margin-left: 16px; | ||
&:hover { | ||
background-color: #777; | ||
background-color: #333; | ||
} | ||
@media (max-width: 768px) { | ||
display: none; | ||
} | ||
`; | ||
|
||
export const DrawerMenu = styled.div` | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 250px; | ||
height: 100%; | ||
background-color: #ffffff; | ||
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); | ||
z-index: 1100; | ||
display: flex; | ||
flex-direction: column; | ||
padding: 20px; | ||
`; | ||
|
||
export const Overlay = styled.div` | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background: rgba(0, 0, 0, 0.5); | ||
z-index: 1099; | ||
`; |
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 |
---|---|---|
@@ -1,23 +1,32 @@ | ||
// styles/styles.ts | ||
import styled from "@emotion/styled"; | ||
|
||
export const GridContainer = styled.div` | ||
display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | ||
gap: 16px; | ||
padding: 20px; | ||
max-width: 1800px; | ||
margin: 0 auto; | ||
width: 100%; | ||
place-items: center; | ||
@media (min-width: 1200px) { | ||
// 1920px 이상일 때 5열 | ||
@media (min-width: 1920px) { | ||
grid-template-columns: repeat(5, 1fr); | ||
} | ||
@media (max-width: 1200px) and (min-width: 768px) { | ||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | ||
// 1200px 이상 1920px 미만일 때 4열 | ||
@media (min-width: 1200px) and (max-width: 1919px) { | ||
grid-template-columns: repeat(4, 1fr); | ||
} | ||
@media (max-width: 768px) { | ||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | ||
// 768px 이상 1200px 미만일 때 3열 | ||
@media (min-width: 768px) and (max-width: 1299px) { | ||
grid-template-columns: repeat(3, 1fr); | ||
} | ||
@media (max-width: 480px) { | ||
// 480px 이상 768px 미만일 때 2열 | ||
@media (min-width: 480px) and (max-width: 999px) { | ||
grid-template-columns: repeat(2, 1fr); | ||
} | ||
// 480px 미만일 때 1열 | ||
@media (max-width: 699px) { | ||
grid-template-columns: 1fr; | ||
} | ||
`; |