Skip to content

Commit 3446f32

Browse files
committed
big changes
1 parent 3bc8d32 commit 3446f32

28 files changed

+425
-440
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

LICENSE.txt

Whitespace-only changes.

assets/index.css

Lines changed: 138 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
1+
:root {
2+
--bg: #24303c;
3+
--dark: #0000001a;
4+
--duration: .25s;
5+
--header: #12181e;
6+
--key: #ffffff0d;
7+
--sub: #bdbfc2;
8+
--text: #f7f8fa;
9+
--theme: #3aa9f3;
10+
}
11+
112
html {
213
box-sizing: border-box;
314
}
415

16+
::selection {
17+
background: var(--theme);
18+
color: var(--text);
19+
}
20+
521
body {
622
background-color: var(--bg);
723
color: var(--text);
@@ -31,17 +47,6 @@ svg:hover {
3147
box-sizing: inherit;
3248
}
3349

34-
:root {
35-
--bg: #206080;
36-
--dark: #0000000d;
37-
--duration: .25s;
38-
--header: #0c141c;
39-
--key: #ffffff0d;
40-
--sub: #c0c0c0;
41-
--text: #ffffff;
42-
--theme: #00c0ff;
43-
}
44-
4550
.header-icon:hover img {
4651
animation: rotation 2.5s linear infinite;
4752
}
@@ -66,6 +71,7 @@ svg:hover {
6671
.main-hdr {
6772
align-items: center;
6873
background-color: var(--header);
74+
box-shadow: 0 0 1rem 0 rgb(0, 0, 0, .25);
6975
display: flex;
7076
height: 4rem;
7177
justify-content: space-between;
@@ -106,6 +112,7 @@ svg:hover {
106112
content: "";
107113
height: .25rem;
108114
left: 0;
115+
pointer-events: none;
109116
position: absolute;
110117
transition: width var(--duration);
111118
width: 0;
@@ -217,13 +224,13 @@ svg:hover {
217224
text-decoration: none;
218225
}
219226

220-
.content a:hover {
227+
.content p a:hover {
221228
text-decoration: underline;
222229
}
223230

224231
h1,
225232
h2 {
226-
border-bottom: .0625rem solid var(--sub);
233+
border-bottom: .0625rem solid var(--key);
227234
}
228235

229236
h6 {
@@ -278,11 +285,6 @@ tr:nth-child(even) {
278285
background-color: var(--dark);
279286
}
280287

281-
hr {
282-
border: none;
283-
border-bottom: .0625rem solid var(--sub);
284-
}
285-
286288
p:has(> img) {
287289
background-color: var(--dark);
288290
border-radius: .25rem;
@@ -298,7 +300,40 @@ p img {
298300
width: 100%;
299301
}
300302

303+
.scroll-to-top {
304+
--h: var(--theme);
305+
position: fixed;
306+
left: 1rem;
307+
bottom: 1rem;
308+
height: 3rem;
309+
width: 3rem;
310+
}
311+
312+
article {
313+
border-radius: .5rem;
314+
padding: .25rem 1rem;
315+
}
316+
317+
article:hover {
318+
background-color: var(--key);
319+
}
320+
321+
article header {
322+
color: var(--text);
323+
}
324+
325+
article div,
326+
article footer {
327+
color: var(--sub);
328+
margin: 1rem 0;
329+
}
330+
331+
.author {
332+
color: var(--theme);
333+
}
334+
301335
/** https://github.com/highlightjs/highlight.js/blob/main/src/styles/atom-one-dark.css */
336+
/** https://github.com/highlightjs/highlight.js/blob/main/src/styles/atom-one-light.css */
302337

303338
.hljs-comment,
304339
.hljs-quote {
@@ -368,4 +403,89 @@ p img {
368403

369404
.hljs-link {
370405
text-decoration: underline;
406+
}
407+
408+
@media (prefers-color-scheme: light) {
409+
:root {
410+
--bg: #f3f6f8;
411+
--dark: #ffffff55;
412+
--header: #ffffff;
413+
--key: #0000000d;
414+
--sub: #52565c;
415+
--text: #263036;
416+
}
417+
418+
.header-icon img {
419+
filter: invert(1);
420+
}
421+
422+
.hljs-comment,
423+
.hljs-quote {
424+
color: #a0a1a7;
425+
font-style: italic;
426+
}
427+
428+
.hljs-doctag,
429+
.hljs-keyword,
430+
.hljs-formula {
431+
color: #a626a4;
432+
}
433+
434+
.hljs-section,
435+
.hljs-name,
436+
.hljs-selector-tag,
437+
.hljs-deletion,
438+
.hljs-subst {
439+
color: #e45649;
440+
}
441+
442+
.hljs-literal {
443+
color: #0184bb;
444+
}
445+
446+
.hljs-string,
447+
.hljs-regexp,
448+
.hljs-addition,
449+
.hljs-attribute,
450+
.hljs-meta .hljs-string {
451+
color: #50a14f;
452+
}
453+
454+
.hljs-attr,
455+
.hljs-variable,
456+
.hljs-template-variable,
457+
.hljs-type,
458+
.hljs-selector-class,
459+
.hljs-selector-attr,
460+
.hljs-selector-pseudo,
461+
.hljs-number {
462+
color: #986801;
463+
}
464+
465+
.hljs-symbol,
466+
.hljs-bullet,
467+
.hljs-link,
468+
.hljs-meta,
469+
.hljs-selector-id,
470+
.hljs-title {
471+
color: #4078f2;
472+
}
473+
474+
.hljs-built_in,
475+
.hljs-title.class_,
476+
.hljs-class .hljs-title {
477+
color: #c18401;
478+
}
479+
480+
.hljs-emphasis {
481+
font-style: italic;
482+
}
483+
484+
.hljs-strong {
485+
font-weight: bold;
486+
}
487+
488+
.hljs-link {
489+
text-decoration: underline;
490+
}
371491
}

biome.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"linter": {
4+
"enabled": true,
5+
"rules": {
6+
"correctness": {
7+
"useJsxKeyInIterable": "off"
8+
}
9+
}
10+
},
11+
"formatter": {
12+
"indentStyle": "space",
13+
"indentWidth": 4,
14+
"lineWidth": 160
15+
}
16+
}

bun.lockb

13.8 KB
Binary file not shown.

bunfig.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

components/Clickable.jsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export default ({ title, description, date, url }) => (
2+
<a href={url}>
3+
<article>
4+
<header>
5+
<h2>{title}</h2>
6+
</header>
7+
<div>
8+
<p>{description}</p>
9+
</div>
10+
<footer>
11+
<span class="author">apacheli</span>
12+
<span> - {date}</span>
13+
</footer>
14+
</article>
15+
</a>
16+
);

components/Footer.js

Lines changed: 0 additions & 55 deletions
This file was deleted.

components/Footer.jsx

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
const Discord = await import("../icons/discord.svg");
2+
const GitHub = await import("../icons/github.svg");
3+
const Steam = await import("../icons/steam.svg");
4+
const Twitch = await import("../icons/twitch.svg");
5+
const Twitter = await import("../icons/twitter.svg");
6+
const YouTube = await import("../icons/youtube.svg");
7+
8+
const socials = [
9+
{
10+
h: "#5865F2",
11+
href: "/discord",
12+
icon: Discord,
13+
},
14+
{
15+
h: "#808080",
16+
href: "/github",
17+
icon: GitHub,
18+
},
19+
{
20+
h: "#00adef",
21+
href: "/steam",
22+
icon: Steam,
23+
},
24+
{
25+
h: "#8d44f7",
26+
href: "/twitch",
27+
icon: Twitch,
28+
},
29+
{
30+
h: "#24a3f1",
31+
href: "/twitter",
32+
icon: Twitter,
33+
},
34+
{
35+
h: "#ff0000",
36+
href: "/youtube",
37+
icon: YouTube,
38+
},
39+
].map((social) => (
40+
<li>
41+
<a href={social.href} style={`--h: ${social.h}`}>
42+
{social.icon.default}
43+
</a>
44+
</li>
45+
));
46+
47+
const date = new Date();
48+
const year = date.getFullYear();
49+
const month = `${date.getMonth() + 1}`.padStart(2, "0");
50+
const day = `${date.getDate()}`.padStart(2, "0");
51+
52+
export default () => (
53+
<footer class="main-ftr">
54+
<nav>
55+
<ul class="list">{socials}</ul>
56+
</nav>
57+
<span>
58+
Last deployed at <strong>{`${year}-${month}-${day}`}</strong> <a href="https://github.com/apacheli/apacheli.github.io">(Source)</a>
59+
</span>
60+
<span>
61+
Bun <strong>v{process.versions.bun}</strong>
62+
</span>
63+
<span>&copy; 2024-present apacheli</span>
64+
</footer>
65+
);

0 commit comments

Comments
 (0)