-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
152 lines (129 loc) · 3.62 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
<!DOCTYPE html>
<html style="height: 100%; width: 100%;" lang="en">
<head>
<meta charset="UTF-8">
<title>Slide. A website portfolio from Thomas Booker.</title>
</head>
<body style="margin: 0px; font-family: sans-serif, Arial; height: 100%; width: 100%; overflow: hidden;">
<style>
@media screen and (orientation:portrait) {
body {
overflow: auto !important;
}
#grid {
overflow: auto !important;
grid-template-columns: 1fr !important;
}
.item:hover {
transform: scale(1) !important;
box-shadow: 5mm 5mm 5mm var(--shadow-color) !important;
}
.item:active {
transform: scale(0.95) !important;
box-shadow: 2mm 2mm 2mm var(--shadow-color) !important;
transition: all .1s;
}
.item {
grid-column: 1 / 2 !important;
}
#Slide {
grid-row: 1 / 2 !important;
}
#Virus-Breaker {
grid-row: 2 / 3 !important;
}
#Coding-Battles {
grid-row: 3 / 4 !important;
}
#Paper {
grid-row: 4 / 5 !important;
}
#Slide-Calculator {
grid-row: 5 / 6 !important;
}
}
:root {
--hover-transform: 1.1;
--shadow-color: hsla(0, 0%, 0%, 30%);
}
.item {
box-shadow: 5mm 5mm 5mm var(--shadow-color);
background-color: white;
border-radius: 2vw;
padding-bottom: 100%;
height: min-content;
background-image: url("App-backgrounds/Nothing.svg");
background-size: cover;
background-position-x: left;
background-position-y: top;
transition: all .5s;
}
.item:hover {
transform: scale(var(--hover-transform));
box-shadow: 6mm 6mm 6mm var(--shadow-color);
transition: all .5s;
}
.item:active {
transform: scale(0.95);
box-shadow: 2mm 2mm 2mm var(--shadow-color);
transition: all .1s;
}
body {
background-color: #80d5ff;
}
#banner {
position: absolute;
top: 0;
left: 0;
right: 0;
/*height: 1cm;*/
color: white;
background: repeating-linear-gradient(-45deg,
black,
black 40px,
orange 40px,
orange 80px);
}
</style>
<div id="banner">
<h2 style="margin: 1mm; text-align: center;">New Page UNDER CONTRACTION <img style="height: 100%;"
src="./Contraction.svg" /></h2>
</div>
<div id="grid" style="
overflow: hidden;
--gap: 5vw;
height: calc(100% - calc(var(--gap) * 2));
width: calc(100% - calc(var(--gap) * 2));
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: min-content;
gap: var(--gap);
padding: var(--gap);
">
<a class="item" id="Paper" href="/paper-blog" style="background-image: url('App-backgrounds/Paper.svg');"
aria-label="The Paper Game Engine. A 2D game builder"></a>
<a class="item" id="Virus-Breaker" href="/virus-breaker"
style="background-image: url('App-backgrounds/Virus Breaker.svg');"
aria-label="Virus Breaker. Find a world in your body"></a>
<a class="item" id="Coding-Battles" href="/codingbattles"
style="background-image: url('App-backgrounds/Coding Battles.svg');"
aria-label="Coding Battles. Battle with your code"></a>
<a id="Slide-Calculator" href="/slide-calculator-1.0.deb" download class="item"
style="background-image: url('App-backgrounds/Slide Calculator.svg');"
aria-label="Slide Calculator. A basic calculator for your desktop. Linux only(debian)"></a>
<a class="item" id="Slide" aria-label="Slide, A website portfolio from Thomas Booker." style="
grid-column-start: 3;
grid-row-start: 1;
grid-column-end: 5;
grid-row-end: 3;
background-image: url('App-backgrounds/Slide.svg');
"></a>
</div>
<!--<script>
var debug = location.host === "localhost"
if (location.protocol != "https:" && !debug) {
location.protocol = "https:"
}
</script>-->
</body>
</html>