Skip to content

Commit

Permalink
Add halo and carbon bg
Browse files Browse the repository at this point in the history
  • Loading branch information
tr4cks committed Aug 6, 2023
1 parent b2f38fc commit 9a7f28c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
</head>
<body>
<main>
{{if .power}}
<div class="halo"></div>
{{end}}
<form method="post" {{if .power}}onsubmit="return confirmForm();"{{end}} class="center">
<div class="power-container">
<button type="submit" class="power-button {{if .power}}power-button--on{{end}} {{if .error}}power-button--error{{end}}">
Expand Down
Binary file added static/carbon-fibre-big.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 20 additions & 1 deletion static/style.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
html {
background-color: #444444;
background-color: rgb(30, 30, 30);
background-image: url("/static/carbon-fibre-big.png");
}

html, body, main {
height: 100%;
}

.halo {
position: fixed;
top: calc(50% - 12px);
left: 50%;
transform: translate(-50%, -50%);
width: 500px;
height: 500px;
background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
z-index: -5;
}

.center {
height: 100%;
display: flex;
Expand Down Expand Up @@ -107,3 +119,10 @@ html, body, main {
box-shadow: inset 0px 1px 0px 0px rgba(250,250,250,0.5),
0px 0px 3px 2px rgba(135,187,83,0.5);
}

@media (min-width: 640px) {
.halo {
width: 900px;
height: 900px;
}
}

0 comments on commit 9a7f28c

Please sign in to comment.