Skip to content

Commit

Permalink
Feat "Add container"
Browse files Browse the repository at this point in the history
이후 구현해야할 부분 : 이미지 호버링으로 카드이미지 바꾸기, 컨테이너 제목 아래에 있는 의문의 파란색줄, 카드이미지 위에 글쓰기, 서버(결정적)
  • Loading branch information
whkakrkr committed Jun 3, 2021
1 parent 59918ca commit 939f50e
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 19 deletions.
98 changes: 95 additions & 3 deletions frontend/frontend/src/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,53 @@ import React from "react";
import styled from "styled-components";
import axios from "axios";
import {useState, useEffect} from "react";
import active from "./assets/active.png";
import notactive from "./assets/notactive.png";

const Wrapper = styled.div `
display: flex;
flex-direction: row;
justify-content: center;
font-size: 13px;
`

const Context = styled.div `
display: flex;
flex-direction: column;
padding:15px;
`

const Title = styled.div`
border-bottom: 1px;
border-bottom-color: var(--point);
a:link{
color : var(--content);
text-decoration: none;
}
a:visited{
text-decoration: none;
color : var(--content);
}
a:hover {
text-decoration: underline;
}
`

const Card = styled.div`
img{
width:255px;
height:40px;
margin-bottom:10px;
}
`


function Header() {

//const [data, setData] = useState();

//useEffect(async() =>{
Expand All @@ -14,11 +59,58 @@ function Header() {
//}
//},[]);


return (
<div>
useEffect Contaner ~
</div>

<Wrapper>
<Context>
<Title><h2><a href=''>새로운 글</a></h2></Title>
<Card><img src={notactive} style={{height:"77px"}}/></Card>
<Card><img src={notactive} style={{height:"77px"}}/></Card>
<Card><img src={notactive} style={{height:"77px"}}/></Card>
<Card><img src={notactive} style={{height:"77px"}}/></Card>

</Context>

<Context>
<Title><h2><a href=''>추가된 문제</a></h2></Title>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
</Context>

<Context>
<Title><h2><a href=''>추가된 영어문제</a></h2></Title>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
</Context>

<Context>
<Title><h2><a href=''>문제 순위</a></h2></Title>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
<Card><img src={notactive}/></Card>
</Context>

<Context>

</Context>
</Wrapper>
);

}

export default Header;
18 changes: 2 additions & 16 deletions frontend/frontend/src/Footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@
:root {
--bigtext : #FFFFFF;
--text : #BBBBBB;
--content : #585f69;
--point : #0076C0;
}


a:link {
font-size: 13px;
color: var(--text);
text-decoration: none;
}

a:visited {
color: var(--text);
}

a:hover {
color: #1270C0;
text-decoration: underline;
}
8 changes: 8 additions & 0 deletions frontend/frontend/src/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ const Copyright = styled.div`
display: flex;
flex-direction: column;
padding-left:310px;
a:link{
color: var(--text);
text-decoration: none;
}
a:visited{
color: var(--text);
text-decoration: none;
}
a:hover{
color: var(--text);
text-decoration : underline;
Expand Down
Binary file added frontend/frontend/src/assets/active.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/frontend/src/assets/notactive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 939f50e

Please sign in to comment.