Skip to content

Commit

Permalink
style: toolbar fade in
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Dec 1, 2023
1 parent cc4bc66 commit e27d0ef
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/home/display-github-user-information.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ export function displayGitHubUserInformation(gitHubUser: GitHubUser) {
authenticated.appendChild(div);
toolbar.appendChild(authenticated);
toolbar.setAttribute("data-authenticated", "true");
toolbar.classList.add("ready");
}
5 changes: 4 additions & 1 deletion src/home/github-login-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@ export function renderGitHubLoginButton() {
button.id = "github-login-button";
button.textContent = "Login with GitHub";
button.addEventListener("click", gitHubLoginButton);
document.getElementById("toolbar")?.appendChild(button);
const toolbar = document.getElementById("toolbar");
if (!toolbar) throw new Error("toolbar not found");
toolbar.appendChild(button);
toolbar.classList.add("ready");
}
14 changes: 13 additions & 1 deletion static/style/style.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
:root {
--grid-background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAABYWlDQ1BrQ0dDb2xvclNwYWNlRGlzcGxheVAzAAAokWNgYFJJLCjIYWFgYMjNKykKcndSiIiMUmB/yMAOhLwMYgwKicnFBY4BAT5AJQwwGhV8u8bACKIv64LMOiU1tUm1XsDXYqbw1YuvRJsw1aMArpTU4mQg/QeIU5MLikoYGBhTgGzl8pICELsDyBYpAjoKyJ4DYqdD2BtA7CQI+whYTUiQM5B9A8hWSM5IBJrB+API1klCEk9HYkPtBQFul8zigpzESoUAYwKuJQOUpFaUgGjn/ILKosz0jBIFR2AopSp45iXr6SgYGRiaMzCAwhyi+nMgOCwZxc4gxJrvMzDY7v////9uhJjXfgaGjUCdXDsRYhoWDAyC3AwMJ3YWJBYlgoWYgZgpLY2B4dNyBgbeSAYG4QtAPdHFacZGYHlGHicGBtZ7//9/VmNgYJ/MwPB3wv//vxf9//93MVDzHQaGA3kAFSFl7jXH0fsAAAA4ZVhJZk1NACoAAAAIAAGHaQAEAAAAAQAAABoAAAAAAAKgAgAEAAAAAQAAABigAwAEAAAAAQAAABgAAAAAwf1XlwAAACNJREFUSA3t0IEAAAAMBKFHm7/UTaQQWnXDgAEDBgwYMGDgAXaJAz4RVVHYAAAAAElFTkSuQmCC");
}

html,
body {
background-color: #06061aff;
margin: 0;
padding: 0;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAABYWlDQ1BrQ0dDb2xvclNwYWNlRGlzcGxheVAzAAAokWNgYFJJLCjIYWFgYMjNKykKcndSiIiMUmB/yMAOhLwMYgwKicnFBY4BAT5AJQwwGhV8u8bACKIv64LMOiU1tUm1XsDXYqbw1YuvRJsw1aMArpTU4mQg/QeIU5MLikoYGBhTgGzl8pICELsDyBYpAjoKyJ4DYqdD2BtA7CQI+whYTUiQM5B9A8hWSM5IBJrB+API1klCEk9HYkPtBQFul8zigpzESoUAYwKuJQOUpFaUgGjn/ILKosz0jBIFR2AopSp45iXr6SgYGRiaMzCAwhyi+nMgOCwZxc4gxJrvMzDY7v////9uhJjXfgaGjUCdXDsRYhoWDAyC3AwMJ3YWJBYlgoWYgZgpLY2B4dNyBgbeSAYG4QtAPdHFacZGYHlGHicGBtZ7//9/VmNgYJ/MwPB3wv//vxf9//93MVDzHQaGA3kAFSFl7jXH0fsAAAA4ZVhJZk1NACoAAAAIAAGHaQAEAAAAAQAAABoAAAAAAAKgAgAEAAAAAQAAABigAwAEAAAAAQAAABgAAAAAwf1XlwAAACNJREFUSA3t0IEAAAAMBKFHm7/UTaQQWnXDgAEDBgwYMGDgAXaJAz4RVVHYAAAAAElFTkSuQmCC");
background-image: var(--grid-background-image);
}
* {
font-family: "Proxima Nova", "Ubiquity Nova", sans-serif;
Expand Down Expand Up @@ -234,6 +238,7 @@ button:active {
/* text-align: center; */
/* align-items: stretch; */
justify-content: center;
-webkit-backdrop-filter: blur(4px);
}
#toolbar > * {
/* justify-content: center; */
Expand Down Expand Up @@ -268,4 +273,11 @@ button:active {
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
opacity: 0;
transition: 1s opacity ease-in-out;
background-image: var(--grid-background-image);
}

#toolbar.ready {
opacity: 1;
}

0 comments on commit e27d0ef

Please sign in to comment.