-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (95 loc) · 3.26 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>About Iva</title>
<style> /* general style */
html {
/* Adjust base font size using clamp:
- Minimum: 16px (good for small screens)
- Preferred: 2vw (scales with the viewport width)
- Maximum: 22px (prevents the font from becoming too large on wide screens) */
font-size: clamp(16px, 2vw, 22px);
}
body {
margin: 0;
padding: 0;
width: 100vw;
height: 100vh; /* Corrected from 100vw to 100vh for body height */
overflow: hidden;
font-family: "Segoe UI", Arial, sans-serif;
}
@media (max-width: 1200px) {
html {
/* Increase the scaling factor and maximum size for larger screens */
font-size: clamp(18px, 2.8vw, 24px); /* Larger minimum and maximum values */
}
}
@media (max-width: 768px) {
html {
/* Further increase for medium screens, typical for tablets */
font-size: clamp(18px, 3.5vw, 24px); /* Larger preferred size */
}
}
@media (max-width: 480px) {
html {
/* Maximum increase for small screens, typical for mobile devices */
font-size: clamp(18px, 5vw, 24px); /* Significantly larger preferred size for very small screens */
}
}
</style>
<link rel="stylesheet" href="background/background.css">
<link rel="stylesheet" href="background/background-changer.css">
<link rel="stylesheet" href="background/range-slider.css">
<link rel="stylesheet" href="personal-info/personal-info.css">
</head>
<body>
<!-- relating to customizable background animation -->
<div id="scene"></div>
<div id="toolbox">
<div class="tool">
<span>bit colour</span>
<input id="text-color-input" type="color" value="#A5C2A6" />
</div>
<div class="tool">
<span>background</span>
<input id="background-color-input" type="color" value="#D8DAD3" />
</div>
<div class="tool">
<span>render rate (in ms)</span>
<input id="speed-input" type="number" min="0" max="1000" value="50" size="1" />
</div>
<div class="tool">
<span># of columns</span>
<input id="column-count-input" type="number" min="0" max="100" value="50" size="4" />
</div>
<div class="tool">
<span>P(0)</span>
<input id="p0-input" type="range" min="0" max="1" step="0.05" value="0.3" />
</div>
<div class="tool">
<span>P(1)</span>
<input id="p1-input" type="range" min="0" max="1" step="0.05" value="0.3" />
</div>
</div>
<!-- relating to my info + text -->
<div id="info">
<button id="toggleToolbox">☰</button>
<div class="personal-info">
<h2>(,,◕ ⋏ ◕,,)</h2>
<p id="personal-description">
text here
</p>
<div class="personal-links">
<a href="https://www.linkedin.com/in/iva-tutis/" target="_blank">🚀 LinkedIn</a>
<br>
<a href="https://github.com/IvaTutis" target="_blank">🚀 GitHub</a>
</div>
</div>
</div>
<script src="personal-info/inject-text.js"></script>
<script src="background/background-animation.js"></script>
<script src="background/background-animation-interactivity.js"></script>
<script src="background/background-changer.js"></script>
</body>
</html>