Skip to content

Commit

Permalink
👾
Browse files Browse the repository at this point in the history
  • Loading branch information
belomaxorka committed Mar 31, 2024
1 parent d3177a3 commit 9fc4bc5
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 0 deletions.
9 changes: 9 additions & 0 deletions assets/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@font-face {
font-family: 'Fira Code Light';
src: url("fonts/FiraCode-Light.ttf") format('truetype');
}

@font-face {
font-family: 'Fira Code Regular';
src: url("fonts/FiraCode-Regular.ttf") format('truetype');
}
Binary file added assets/fonts/FiraCode-Light.ttf
Binary file not shown.
Binary file added assets/fonts/FiraCode-Regular.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions assets/modern-normalize.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions assets/scripts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function pickRandomEmoji() {
// https://gist.github.com/ikr7/c72843556ef3a12014c3
let emojis = ['🟢', '💚', '📗'];
return emojis[Math.floor(Math.random() * emojis.length)];
}
36 changes: 36 additions & 0 deletions assets/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
@import "fonts.css";

:root {
--main-bg-color: #052c00;
--main-font-color: #a5e07e;
--second-bg-color: #367930;
--second-font-color: #388ba6;
}

body {
display: flex;
flex-direction: column;
font-family: "Fira Code Light", serif;
}

header {
width: 100%;
background-color: var(--main-bg-color);
}

header a {
text-decoration: none;
}

header a h1 {
text-align: center;
color: var(--main-font-color);
}

main {
background-color: var(--second-bg-color);
}

footer {

}
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,24 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<link href="assets/modern-normalize.min.css" rel="stylesheet">
<link href="assets/styles.css" rel="stylesheet">
<script type="text/javascript" src="assets/scripts.js"></script>
</head>
<body>
<header>
<a href="#"><h1><span class="placeEmoji"></span>&nbsp;belomaxorka's space!&nbsp;<span class="placeEmoji"></span><br>-_-_-_-_-_-_-_-_-_-_-_-_-_-</h1></a>
</header>
<main>
</main>
<footer>
</footer>
</body>
<script type="text/javascript">
let placeEmoji = document.getElementsByClassName("placeEmoji");
let pickedEmoji = pickRandomEmoji();
for (let i = 0; i < placeEmoji.length; i++) {
placeEmoji[i].innerHTML = pickedEmoji;
}
</script>
</html>

0 comments on commit 9fc4bc5

Please sign in to comment.