-
Notifications
You must be signed in to change notification settings - Fork 0
/
statustopbar.jsx
62 lines (52 loc) · 1.3 KB
/
statustopbar.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import React from "react";
import { useNavigate } from "react-router-dom";
import styled from "styled-components"
const Wrapper = styled.div`
display: flex;
flex-direction: column;
width: 360px;
height: 84px;
box-sizing: border-box;
margin-bottom: 20px;
`;
const StatusBar = styled.img`
width: 360px;
height : 24px;
`;
const Topbar = styled.div`
height: 60px;
display: flex;
justify-content: space-between;
padding: 0 20px;
align-items: center;
`;
const RightIcon = styled.div`
width : 24px;
height: 24px;
border: 0px;
`;
const Title = styled.p`
font-size: 24px;
color : #fff;
`;
const Button = styled.button`
background-color: #39393B;
width: 24px;
height: 24px;
border: none;
`;
function StatusTopBar(props){
const navigate = useNavigate();
return(
<Wrapper>
<StatusBar src="Android Big Status Bar.png"/>
<Topbar>
{/* 버튼 이미지 보였다 안보였다 하게 할 것 */}
<Button onClick={()=>{navigate('/')} }><img src="./public/back.png"/></Button>
<Title></Title>
<RightIcon/>
</Topbar>
</Wrapper>
)
}
export default StatusTopBar;