Skip to content

Commit f6d38a8

Browse files
committed
Updated colors and compilation version title
1 parent 35fe1ef commit f6d38a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ def read_text(path):
99

1010

1111
def compile_assets(html, css, js):
12-
compilation_time = datetime.datetime.now().astimezone(pytz.timezone('Europe/Warsaw')).strftime("%Y-%m-%d %H:%M")
13-
img_background = f'background: url("data:image/jpeg;base64,{base64.b64encode(open("background.jpg", "rb").read()).decode()}");'
12+
compilation_time = datetime.datetime.now().astimezone(pytz.timezone('Europe/Warsaw')).strftime("%Y-%m-%d_%H:%M")
13+
img_background = f' background: url("data:image/jpeg;base64,{base64.b64encode(open("background.jpg", "rb").read()).decode()}");'
1414
css = css.replace(f" background: url('background.jpg');", img_background)
15-
html = html.replace(f'<span id="tool-version"></span>', f'<span id="tool-version">compilation <strong>{compilation_time}</strong></span>')
15+
html = html.replace(f'<span id="tool-version"></span>', f'<span id="tool-version"> <strong>v.{compilation_time}</strong></span>')
1616
html = html.replace(f'<link rel="stylesheet" href="style.css">', f'')
1717
html = html.replace(f'</head>', f'<style>\n{css}\n</style>\n</head>')
1818
html = html.replace(f'<script src="app.js"></script>', f'')

style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ a {
324324
}
325325

326326
a:hover {
327-
color: var(--color-primary-hover);
327+
color: var(--hacker-secondary);
328328
}
329329

330330
code,

0 commit comments

Comments
 (0)