-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflexbox1.html
More file actions
114 lines (109 loc) · 2.86 KB
/
Copy pathflexbox1.html
File metadata and controls
114 lines (109 loc) · 2.86 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
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive Navbar</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #f8f8f8;
padding: 10px 20px;
}
.logo {
height: 100%;
width: auto;
}
.nav-links {
display: flex;
gap: 20px;
}
.nav-links a, .view-ar {
text-decoration: none;
color: #333;
padding: 5px 10px;
border-radius: 5px;
transition: background-color 0.3s;
}
.nav-links a:hover, .view-ar:hover {
text-decoration: underline;
}
.view-ar {
background-color: #007bff;
color: white;
}
.view-ar:hover {
background-color: #0056b3;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
}
.container {
padding: 0px;
}
.flex-container {
display: flex;
flex-wrap: wrap;
background-color: DodgerBlue;
gap: 20px;
padding: 20px;
}
.flex-container > div {
background-color: #f1f1f1;
flex-basis: calc(50% - 10px);
text-align: center;
line-height: calc(100vh - 120px);
font-size: 30px;
}
@media (max-width: 600px) {
.flex-container > div {
flex-basis: 100%;
}
}
@media (min-width: 1200px) {
.flex-container > div {
flex-basis: calc(33.33% - 13.33px);
line-height: calc(80vh - 120px);
}
}
</style>
</head>
<body>
<nav class="navbar">
<div class="logo">
<img src="https://github.com/error420notfound/webHTML/raw/main/s%20logo.svg">
</div>
<div class="nav-links">
<a href="#features">Spatial Computing</a>
<a href="#discover">Read</a>
<a href="#gallery">About Me</a>
<a href="#gallery">contact</a>
</div>
<a href="#ar" class="view-ar">View in AR</a>
</nav>
<div class="container">
<h1></h1>
<div class="flex-container">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
</div>
</div>
</body>
</html>