-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
102 lines (88 loc) · 1.72 KB
/
app.js
File metadata and controls
102 lines (88 loc) · 1.72 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import React from "react";
import styled from "styled-components";
const Container = styled.div`
background-color: #fff;
padding: 20px;
`;
const Header = styled.header`
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px;
background-color: #fff;
border-bottom: 1px solid #ebebeb;
`;
const Logo = styled.div`
img {
height: 40px;
}
`;
const Nav = styled.nav`
ul {
display: flex;
list-style: none;
}
`;
const NavList = styled.ul`
display: flex;
list-style: none;
`;
const NavItem = styled.li`
margin-left: 10px;
`;
const NavLink = styled.a`
color: #000;
text-decoration: none;
&:hover {
color: #000;
text-decoration: underline;
}
`;
const Main = styled.main`
padding: 20px;
`;
const Section = styled.section`
margin-bottom: 20px;
h1 {
font-size: 24px;
margin-bottom: 10px;
}
`;
const Footer = styled.footer`
padding: 10px;
background-color: #f2f2f2;
text-align: center;
`;
function App() {
return (
<Container>
<Header>
<Logo>
<img src="path_to_logo_image" alt="Logo" />
</Logo>
<Nav>
<NavList>
<NavItem>
<NavLink href="#">Link 1</NavLink>
</NavItem>
<NavItem>
<NavLink href="#">Link 2</NavLink>
</NavItem>
<NavItem>
<NavLink href="#">Link 3</NavLink>
</NavItem>
</NavList>
</Nav>
</Header>
<Main>
<Section>
<h1>Section Title</h1>
{/* Section content */}
</Section>
{/* Add more sections */}
</Main>
<Footer>{/* Footer content */}</Footer>
</Container>
);
}
export default App;