Skip to content

Commit cbd9f54

Browse files
committed
initial header positioning
1 parent 2bb1167 commit cbd9f54

File tree

4 files changed

+92
-0
lines changed

4 files changed

+92
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.history

css/index.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
*{
2+
margin: 0;
3+
padding: 0;
4+
box-sizing: border-box;
5+
transition: all 0.3s ease;
6+
}
7+
8+
html{
9+
--background: #19329e;
10+
}
11+
12+
body{
13+
font: inherit;
14+
background: var(--background);
15+
}
16+
17+
header{
18+
background: yellow;
19+
display: flex;
20+
width: 100%;
21+
max-height: 15vh;
22+
padding: 10px;
23+
}
24+
.left{
25+
width: 50%;
26+
display: flex;
27+
align-items: center;
28+
justify-content: flex-start;
29+
gap: 20px;
30+
}
31+
32+
.left img{
33+
width: 70px;
34+
border-radius: 50%;
35+
}
36+
37+
.right{
38+
width: 50%;
39+
display: flex;
40+
gap: 20px;
41+
align-items: center;
42+
justify-content: flex-end;
43+
}
44+
45+
.right ul{
46+
display: contents;
47+
list-style-type: none;
48+
}
49+
50+

imgs/logo.png

80.7 KB
Loading

index.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Sourceware Lab</title>
7+
<link rel="stylesheet" href="css/index.css">
8+
<!-- <script src="https://unpkg.com/@tailwindcss/browser@4"></script> -->
9+
<style>
10+
</style>
11+
</head>
12+
<body>
13+
<header>
14+
<div class="left">
15+
<img src="imgs/logo.png" max-width="100px" alt="">
16+
<p>Sourceware Lab</p>
17+
</div>
18+
<div class="right">
19+
<ul>
20+
<li>About us</li>
21+
<li>Projects</li>
22+
<li>Socials</li>
23+
</ul>
24+
</div>
25+
</header>
26+
27+
<main>
28+
<div id="aboutus">
29+
<h3>Sourceware Lab</h3>
30+
<p>Learn by doing</p>
31+
</div>
32+
<div id="projects">
33+
34+
</div>
35+
<div id="socials">
36+
37+
</div>
38+
</main>
39+
40+
</body>
41+
</html>

0 commit comments

Comments
 (0)