move theme related data from blog
to theme
This commit is contained in:
parent
2965ca04b0
commit
7b7be55499
68 changed files with 1393 additions and 1251 deletions
|
@ -1,36 +0,0 @@
|
|||
import { useContext } from "react"
|
||||
import styled from "styled-components"
|
||||
import { Link } from "react-router-dom"
|
||||
|
||||
import { StyledLink } from "./Navbar"
|
||||
|
||||
import NavbarData from "../../data/NavbarData"
|
||||
import theming from "../../styles/theming"
|
||||
import { globalContext } from "../../globalContext"
|
||||
|
||||
const StyledNavLinks = styled.div`
|
||||
display: flex;
|
||||
height: 100%;
|
||||
|
||||
@media only screen and (max-width: ${theming.size.screen_size1}) {
|
||||
display: none;
|
||||
}
|
||||
`
|
||||
|
||||
const NavLinks = () => {
|
||||
const { globalState } = useContext(globalContext)
|
||||
|
||||
return (
|
||||
<StyledNavLinks>
|
||||
{NavbarData.map((item, index) => (
|
||||
<Link key={index} to={globalState.locale + item.path}>
|
||||
<StyledLink>
|
||||
{globalState.locale == "en" ? item.title_en : item.title_kr}
|
||||
</StyledLink>
|
||||
</Link>
|
||||
))}
|
||||
</StyledNavLinks>
|
||||
)
|
||||
}
|
||||
|
||||
export default NavLinks
|
Loading…
Add table
Add a link
Reference in a new issue