Skip to content

Commit 8f9feb8

Browse files
committed
add icon to header
1 parent 8d11302 commit 8f9feb8

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

src/App.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.App {
22
text-align: center;
3-
width: 360px;
3+
width: 372px;
44
}

src/components/Console.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const MainContainer = styled.div`
135135
`;
136136

137137
const Title = styled.div`
138-
font-size: 18px;
138+
font-size: 16px;
139139
text-align: left;
140140
margin: 12px 10px;
141141
`;

src/components/Header.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
11
import React from 'react';
22
import styled from 'styled-components';
3+
import Icon from '../images/icon.png';
34

45
type Props = Record<string, never>;
56

67
export const Header: React.FC<Props> = () => {
78
return (
89
<Main>
10+
<Image src={Icon} />
911
<Title>Scrapbox List Marker</Title>
1012
</Main>
1113
);
1214
};
1315

1416
const Main = styled.div`
17+
padding: 7px;
1518
height: 54px;
1619
display: flex;
1720
align-items: center;
18-
justify-content: center;
19-
background-color: #01b52ebd;
21+
justify-content: left;
22+
background-color: rgba(0, 180, 40, 0.6);
2023
box-shadow: 0px 2px 3px 0px #9e9e9e;
2124
position: relative;
2225
`;
2326

27+
const Image = styled.img`
28+
padding: 0px 12px;
29+
height: 36px;
30+
width: 36px;
31+
`;
32+
2433
const Title = styled.p`
25-
font-size: 22px;
34+
font-size: 20px;
2635
color: #fff;
2736
font-weight: bold;
2837
font-family: 'Noto Serif JP', 游ゴシック体, 'Yu Gothic', YuGothic,

src/images/icon.png

17.7 KB
Loading

0 commit comments

Comments
 (0)