-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (106 loc) · 4.17 KB
/
index.html
File metadata and controls
115 lines (106 loc) · 4.17 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<!--<link rel="prefetch" fetchpriority="high" href="scss/rendering.scss" as="style" onload="this.rel='stylesheet'"/>-->
</head>
<body>
<script>
function copyToClipboard(text, ev) {
ev.preventDefault();
navigator.clipboard.writeText(text).then(() => {
}).catch(console.warn.bind(console));
}
</script>
<style>
/* styles.css */
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-block-size: 100dvb;
font-family: Arial, sans-serif;
background-color: #121212;
color: #ffffff;
}
.container {
text-align: center;
max-inline-size: 800px;
padding: 20px;
}
header h1 { font-size: 3rem; margin: 0; }
header h2 { font-size: 1.5rem; margin: 10px 0; color: #ff1040; }
footer { line-height: 1.5; }
.demo {
margin: 20px 0;
display: flex;
place-content: center;
place-items: center;
text-align: center;
block-size: max-content;
}
footer p {
font-size: 0.9rem;
color: #bbbbbb;
}
a { color: #eee; text-decoration: none; }
a:hover { color: #fff; }
a:active { color: #fff; text-decoration: underline; }
.donation {
display: inline grid;
font-size: 0.8em;
block-size: max-content;
inline-size: max-content;
grid-template-rows: minmax(0px, max-content);
grid-template-columns: minmax(0, 80px) minmax(0px, 1fr);
place-content: center;
place-items: center;
text-align: start;
gap: 2em;
}
.donation h3 { font-size: 1em; }
.donation :where(p, span, a) { font-size: 0.9em; };
.donation img { inline-size: 80px; block-size: 80px; }
</style>
<div class="container">
<header>
<h1>Ray Tracer</h1>
<h2>🔦 On CSS only! 🔦</h2>
</header>
<main>
<div class="demo" inert style="pointer-events: none; will-change: transform, contents, scroll-position; transform: translateZ(0px);">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="120" height="120" viewBox="0 0 120 120"
>
<defs>
<rect x="0" y="0" width="1" height="1" id="pixel"/>
</defs>
<g class="pixels"></g>
</svg>
</div>
</main>
<footer>
<p>Works on newest chromium-based browsers. Based on CSS custom properties, used `calc` and other new math functions...</p>
<p><a target="_blank" href="https://chromestatus.com/roadmap">More informations about CSS features support in Chrome.</a></p>
<hr/>
<p>🗄️ <a target="_blank" href="https://github.com/u2re-dev/CSS-ray-tracer">(Github source code)</a> 🗄️</p>
<hr/>
<div class="donation">
<img width="80" src="./qr/ethereum.png" alt="ETH"/>
<div class="column">
<h3>Donation and sponsor</h3>
<p>Also, you may consider about donate for us:</p>
<p>💎 <a href="#0x102E317665bBa4B4D2e2317Bf3c48F83FC13F4ec" onclick="(ev)=>copyToClipboard('0x102E317665bBa4B4D2e2317Bf3c48F83FC13F4ec', ev)">0x102E317665bBa4B4D2e2317Bf3c48F83FC13F4ec</a> 💎</p>
<p>💸 <a href="#TCXePhsrVb63qymT84KP8cEfGWAb7qCKYJ" onclick="(ev)=>copyToClipboard('TCXePhsrVb63qymT84KP8cEfGWAb7qCKYJ', ev)">TCXePhsrVb63qymT84KP8cEfGWAb7qCKYJ</a> 💸</p>
</div>
</div>
</footer>
</div>
<script async defer type="module" src="canvas-gen.ts"></script>
</html>