-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
184 lines (169 loc) · 6.31 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dominic Davies - Digital Product Designer</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Work+Sans:ital@0;1&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Round:wght@500&display=swap" rel="stylesheet">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<style>
/* Base Styling */
html, body {
padding: 0;
margin: 0;
height: 100vh; /* standard definition (as fallback) */
height: 100dvh; /* dynamic vh will make the trick on iOS */
overflow-x: hidden; /* Prevent horizontal scrolling */
}
body {
font-family: 'Work Sans', sans-serif;
color: #000;
font-size: 18px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
padding: 48px;
box-sizing: border-box;
overflow-y: hidden; /* Prevent vertical scrolling */
position: relative;
}
/* Main Content Styling */
.main-content {
z-index: 2;
}
.main-content p {
margin: 0 0 5px;
}
/* Bottom Links Styling */
.bottom-links {
position: absolute;
bottom: 48px;
left: 48px;
display: flex;
flex-direction: column;
align-items: flex-start;
text-align: right;
z-index: 2;
}
.bottom-links a {
text-decoration: none;
color: #000;
margin-bottom: 5px;
display: flex;
align-items: center;
transition: color 0.3s ease;
}
.bottom-links a:hover {
color: #007BFF;
}
.material-icons-round {
font-size: 17px;
margin-left: 4px;
font-weight: 500;
}
/* Mesh Gradient Background */
.mesh-gradient {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at 20% 20%, rgba(255, 107, 107, 0.6), transparent 40%),
radial-gradient(circle at 80% 30%, rgba(234, 234, 234, 0.3), transparent 40%),
radial-gradient(circle at 50% 80%, rgba(230, 239, 255, 0.3), transparent 40%),
radial-gradient(circle at 30% 60%, rgba(255, 255, 107, 0.3), transparent 40%);
animation: animateGradient 5s infinite alternate ease-in-out;
opacity: 0.5;
z-index: 1;
}
.mesh-gradient::before,
.mesh-gradient::after {
content: "";
position: absolute;
width: 150%; /* Adjust size to fit mobile viewport */
height: 150%;
top: -25%;
left: -25%;
background: radial-gradient(circle at 20% 20%, rgba(255, 107, 107, 0.6), transparent 40%),
radial-gradient(circle at 80% 30%, rgba(234, 234, 234, 0.3), transparent 20%),
radial-gradient(circle at 50% 80%, rgba(230, 239, 255, 0.3), transparent 20%),
radial-gradient(circle at 30% 60%, rgba(255, 255, 107, 0.3), transparent 20%);
animation: animateGradient1 10s infinite alternate ease-in-out;
}
.mesh-gradient::after {
background: radial-gradient(circle at 30% 30%, rgba(255, 226, 226, 0.4), transparent 40%),
radial-gradient(circle at 70% 20%, rgba(221, 221, 221, 0.4), transparent 50%),
radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.4), transparent 40%),
radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.4), transparent 70%);
animation: animateGradient2 12s infinite alternate ease-in-out;
}
/* Gradient Animations */
@keyframes animateGradient1 {
0% { transform: translate(0, 0) scale(1); }
50% { transform: translate(-10%, -10%) scale(1.05); }
100% { transform: translate(10%, 10%) scale(1); }
}
@keyframes animateGradient2 {
0% { transform: translate(0, 0) scale(1); }
50% { transform: translate(10%, -10%) scale(1.05); }
100% { transform: translate(-10%, 10%) scale(1); }
}
/* Responsive Breakpoints */
/* Mobile */
@media (max-width: 767px) {
body {
padding: 32px;
font-size: 22px;
overflow-y: hidden;
}
.bottom-links {
bottom: 24px;
left: 32px;
align-items: flex-start;
}
}
/* iPad/Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
body {
padding: 48px;
font-size: 18px;
}
.bottom-links {
bottom: 48px;
left: 48px;
align-items: flex-start;
}
}
/* Larger Desktops */
@media (min-width: 1560px) {
body {
padding: 72px;
font-size: 18px;
}
.bottom-links {
bottom: 72px;
left: 72px;
}
}
</style>
</head>
<body>
<!-- Animated Mesh Gradient Background -->
<div class="mesh-gradient"></div>
<!-- Main Content -->
<div class="main-content">
<p>Dominic Davies</p>
<p>Digital Product Designer</p>
<p>Apple</p>
</div>
<!-- Bottom Links -->
<div class="bottom-links">
<a href="mailto:[email protected]?subject=Hello,%20Dominic!">Email <span class="material-icons-round">north_east</span></a>
<a href="https://www.linkedin.com/in/dominic-davies-b52a5356/" target="_blank">LinkedIn <span class="material-icons-round">north_east</span></a>
<!-- <a href="path/to/portfolio.pdf" download>Portfolio • 200mb <span class="material-icons-round">south</span></a> -->
</div>
</body>
</html>