-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml1.html
More file actions
66 lines (55 loc) · 1.71 KB
/
Copy pathhtml1.html
File metadata and controls
66 lines (55 loc) · 1.71 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Heading and SVG Example</title>
<!-- Include the desired font weights in the URL -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:[email protected]&display=swap" rel="stylesheet">
<style>
body {
font-family: Space Grotesk, sans-serif;
font-weight: 700;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
transition: color 0.7s; /* Smooth transition for color changes */
}
.left-content {
width: 70%;
}
.right-content {
width: 30%;
text-align: center;
}
svg {
max-width: 100%;
height: auto;
}
@media (prefers-color-scheme: dark) {
body {
background-color: rgba(0, 0, 0, 0); /* Dark mode background color with 0% opacity */
}
h2, p, svg {
color: white; /* Dark mode text color */
}
</style>
</head>
<body>
<div class="left-content">
<h2>Heading on the Left</h2>
<p>This is the body text on the left side.</p>
</div>
<div class="right-content">
<!-- Replace the following SVG code with your own -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10" />
<line x1="15" y1="9" x2="9" y2="15" />
<line x1="9" y1="9" x2="15" y2="15" />
</svg>
</div>
</body>
</html>