File tree 5 files changed +35
-41
lines changed
5 files changed +35
-41
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ svg:hover {
32
32
}
33
33
34
34
: root {
35
- --bg : rgb ( 48 , 96 , 120 ) ;
35
+ --bg : # 206080 ;
36
36
--dark : # 0000000d ;
37
37
--duration : .25s ;
38
- --header : rgb ( 16 , 24 , 32 ) ;
38
+ --header : # 0c141c ;
39
39
--key : # ffffff0d ;
40
40
--sub : # c0c0c0 ;
41
41
--text : # ffffff ;
Original file line number Diff line number Diff line change @@ -2,50 +2,39 @@ import __JSX__, { render } from "../server/render.js";
2
2
3
3
import { SocialIcon } from "./Icon.js" ;
4
4
5
- const socials = [
6
- {
7
- icon : "discord" ,
8
- href : "https://discord.com/users/460612586061430806" ,
9
- h : "#5865F2" ,
10
- } ,
11
- {
12
- icon : "github" ,
13
- href : "https://github.com/apacheli" ,
14
- h : "#808080" ,
15
- } ,
16
- {
17
- icon : "steam" ,
18
- href : "https://steamcommunity.com/id/apacheli/" ,
19
- h : "#00adef" ,
20
- } ,
21
- {
22
- icon : "twitch" ,
23
- href : "https://www.twitch.tv/apachelitv" ,
24
- h : "#8d44f7" ,
25
- } ,
26
- {
27
- icon : "twitter" ,
28
- href : "https://twitter.com/apacheopteryx" ,
29
- h : "#24a3f1" ,
30
- } ,
31
- {
32
- icon : "youtube" ,
33
- href : "https://www.youtube.com/@apacheli" ,
34
- h : "#ff0000" ,
35
- } ,
36
- ]
5
+ const socials = [ {
6
+ name : "discord" ,
7
+ h : "#5865F2" ,
8
+ } , {
9
+ name : "github" ,
10
+ h : "#808080" ,
11
+ } , {
12
+ name : "steam" ,
13
+ h : "#00adef" ,
14
+ } , {
15
+ name : "twitch" ,
16
+ h : "#8d44f7" ,
17
+ } , {
18
+ name : "twitter" ,
19
+ h : "#24a3f1" ,
20
+ } , {
21
+ name : "youtube" ,
22
+ h : "#ff0000" ,
23
+ } ]
37
24
. map ( ( social ) => (
38
25
< li >
39
26
< SocialIcon
40
- icon = { social . icon }
27
+ icon = { social . name }
41
28
h = { social . h }
42
- href = { social . href }
29
+ href = { `/ ${ social . name } ` }
43
30
/>
44
31
</ li >
45
32
) ) ;
46
33
47
34
const date = new Date ( ) ;
48
- const d = `${ date . getFullYear ( ) } -${ date . getMonth ( ) + 1 } -${ date . getDate ( ) } ` ;
35
+ const year = date . getFullYear ( ) ;
36
+ const month = `${ date . getMonth ( ) + 1 } ` . padStart ( 2 , "0" ) ;
37
+ const day = `${ date . getDate ( ) } ` . padStart ( 2 , "0" ) ;
49
38
50
39
export default render (
51
40
< footer class = "main-ftr" >
@@ -55,7 +44,7 @@ export default render(
55
44
</ ul >
56
45
</ nav >
57
46
< span >
58
- Last updated on { `<strong>${ d } </strong> ` }
47
+ Last deployed at { `<strong>${ year } - ${ month } - ${ day } </strong> ` }
59
48
< a href = "https://github.com/apacheli/apacheli.github.io" > (Source)</ a >
60
49
</ span >
61
50
< span >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export const description = "Web and Software Developer"
5
5
6
6
# Hello, I'm apacheli.
7
7
8
- I build really cool stuff .
8
+ Hello, I'm apacheli, a web and software developer .
9
9
10
10
> My website is still currently under development. Expect to see more stuff in
11
11
> the future!
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ const _buildHtml = async (file) => {
47
47
} ;
48
48
49
49
const build = async ( { directories } ) => {
50
- const p = performance . now ( ) ;
50
+ console . time ( "_build_" ) ;
51
51
await Promise . all ( directories . map ( ( dir ) => mkdir ( `dist/${ dir } ` , _fs ) ) ) ;
52
52
await cp ( "assets" , "dist/assets" , _fs ) ;
53
53
const promises = [ ] ;
@@ -58,7 +58,7 @@ const build = async ({ directories }) => {
58
58
promises . push ( _buildHtml ( file ) ) ;
59
59
}
60
60
await Promise . all ( promises ) ;
61
- console . log ( `\x1b[36mDone. Took ${ performance . now ( ) - p } ms.\x1b[39m` ) ;
61
+ console . timeEnd ( "_build_" ) ;
62
62
} ;
63
63
64
64
const normalize = ( file ) => file . replace ( / \\ / g, "/" ) ;
@@ -92,6 +92,7 @@ const _serveHtml = async (file, paths) => {
92
92
} ;
93
93
94
94
async function serve ( ) {
95
+ console . time ( "_serve_" ) ;
95
96
const paths = { } ;
96
97
97
98
const _files = [ ] ;
@@ -110,6 +111,7 @@ async function serve() {
110
111
console . log ( ` ${ k } ` ) ;
111
112
}
112
113
console . log ( "\n=> http://localhost:1337/\n" ) ;
114
+ console . timeEnd ( "_serve_" ) ;
113
115
114
116
return Bun . serve ( {
115
117
fetch : ( request ) => handleRequest ( request , paths ) ,
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ export const render = (element) => {
36
36
? `<code>${ element . children [ 0 ] } </code>`
37
37
: hljs . highlight ( lang , element . children [ 0 ] . slice ( 0 , - 1 ) ) . value ;
38
38
}
39
+ if ( element . type === "img" ) {
40
+ element . attributes . loading = "lazy" ;
41
+ }
39
42
const c = element . children . reduce ( ( a , b ) => a + render ( b ) , "" ) ;
40
43
if ( element . type === null ) {
41
44
return c ;
You can’t perform that action at this time.
0 commit comments