-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHeader.js
More file actions
39 lines (37 loc) · 822 Bytes
/
Header.js
File metadata and controls
39 lines (37 loc) · 822 Bytes
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
import React from "react";
import styled from "styled-components";
export default function Header() {
return (
<PageWrapper>
<div className="headerMain">
<div className="headerTitle">KSU Website Development Club</div>
</div>
</PageWrapper>
);
}
const PageWrapper = styled.header`
position: -webkit-sticky;
position: sticky;
//position: fixed;
top: 0;
//width: 100%;
//padding: 1rem 1.5rem;
background: purple;
border-bottom: 5px solid black;
z-index: 999;
.headerMain {
display: flex;
align-items: center;
justify-content: space-around;
flex-direction: row;
max-width: 1500px;
margin: 5 auto;
}
.headerTitle {
font-size: 1.6em;
font-weight: bold;
color: white;
text-transform: uppercase;
letter-spacing: 0.12rem;
}
`;