Skip to content

Commit

Permalink
Style: 코드 스타일 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
TaePoong719 committed Sep 10, 2023
1 parent d45e01c commit 59069ca
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/Admin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'

const Admin = () => {
return (
<div>Admin</div>
<div>행정 관련 Wiki - Admin 컴포넌트</div>
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Curriculum.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'

const Curriculum = () => {
return (
<div>Curriculum</div>
<div>커리큘럼 관련 Wiki - Curriculum 컴포넌트</div>
)
}

Expand Down
6 changes: 2 additions & 4 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import React from 'react'
import styled from 'styled-components'
import { Link, useLocation } from 'react-router-dom'
import { Link } from 'react-router-dom'
import './Header.css'

const Header = () => {
const pageLink = ["", "Wiki/", "Gallery"]
const pageName = ["Home", "Wiki", "Gallery"]

// const location = useLocation()

return (
<Container>
<ul className="header__link_wrapper">
Expand All @@ -31,7 +29,7 @@ const Container = styled.nav`
right: 0;
width: 100%;
height: 60px;
background-color: #666;
background-color: #999;
font-size: 1rem;
z-index: 10;
`
Expand Down
1 change: 1 addition & 0 deletions src/components/Sidebar.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.sidebar__link_wrapper{
display:flex;
flex-flow: column;
gap: 20px;
}
4 changes: 2 additions & 2 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Sidebar = () => {
// Wiki 사이드바
return (
<Container>
<ul>
<ul className="sidebar__link_wrapper">
{
sideLink.map((link,idx)=>
<li key={sideName[idx]} >
Expand Down Expand Up @@ -45,7 +45,7 @@ const Container = styled.aside`
z-index: 9;
width: 140px;
height: 100%;
background-color: #888;
background-color: #ddd;
`


Expand Down
10 changes: 6 additions & 4 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
html{
font-size:16px;
--main-color: #ED234B;
--main-black: #171717;
}

body {
margin: 0;
}
Expand All @@ -11,10 +17,6 @@ a{
color: black;
}

html{
font-size:16px;
}

@media (max-width: 768px) {
html{
font-size: 14px;
Expand Down

0 comments on commit 59069ca

Please sign in to comment.