-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
52 lines (46 loc) · 1.22 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>Samuel Hamilton</title>
<style>
body {
background-image: url('./assets/coding-on-the-ranch.png');
background-size: cover;
color: #FF9900;
/* use orange color */
font-family: sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
position: relative;
}
/* add a semi-transparent overlay over the background image */
body::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(255, 255, 255, 0.2);
z-index: -1;
/* use a white color with 50% transparency */
}
h1 {
text-align: center;
font-size: 2em;
background-color: white;
opacity: 0.8;
padding: 0.5em;
border: 4px solid #FF9900;
/* use orange color for border */
border-radius: 1em;
}
</style>
</head>
<body>
<h1>Hi, I'm Sam Hamilton</h1>
</body>
</html>