-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: turn the header into a simpson's joke
And animate the "Under construction" sign. We like to have fun here.
- Loading branch information
1 parent
7ddac6d
commit f153653
Showing
5 changed files
with
256 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
html, | ||
body { | ||
height: 100%; | ||
} | ||
|
||
a { | ||
color: var(--link); | ||
} | ||
a:visited { | ||
color: var(--link-visited); | ||
} | ||
|
||
body { | ||
/* https://tailwindcss.com/docs/customizing-colors#default-color-palette */ | ||
--neutral-50: #fafafa; | ||
--neutral-950: #0a0a0a; | ||
--blue-500: #3b82f6; | ||
--blue-600: #2563eb; | ||
--purple-500: #a855f7; | ||
--purple-600: #9333ea; | ||
--red-600: #dc2626; | ||
--red-700: #b91c1c; | ||
--amber-400: #fbbf24; | ||
|
||
font-family: Helvetica, Arial, sans-serif; | ||
|
||
color: var(--primary-text); | ||
background-color: var(--bg-color); | ||
|
||
margin: 0; | ||
|
||
display: grid; | ||
grid-template-columns: auto auto auto; | ||
grid-template-rows: max-content auto max-content; | ||
grid-template-areas: | ||
". header ." | ||
". main ." | ||
". footer ."; | ||
} | ||
|
||
body > header { | ||
text-align: center; | ||
grid-area: header; | ||
} | ||
|
||
body > main { | ||
text-align: center; | ||
grid-area: main; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
} | ||
|
||
body > footer { | ||
text-align: center; | ||
grid-area: footer; | ||
} | ||
|
||
.business-card { | ||
font-family: Georgia, Times, 'Times New Roman', serif; | ||
line-height: 1rem; | ||
text-transform: uppercase; | ||
margin: 1rem; | ||
padding: 0 .25rem; | ||
position: relative; | ||
display: inline-block; | ||
border: solid thin var(--primary-text); | ||
outline: solid thin var(--primary-text); | ||
outline-offset: 1px; | ||
} | ||
|
||
.business-card > h1 { | ||
margin: 1rem 0 1.5rem 0; | ||
font-weight: normal; | ||
padding: 0 2rem .25rem 2rem; | ||
border-bottom: solid thin var(--primary-text); | ||
position: relative; | ||
} | ||
|
||
.business-card > h1::after { | ||
content: 'ESQ.'; | ||
font-size: small; | ||
position: absolute; | ||
display: block; | ||
float: left; | ||
bottom: -1rem; | ||
right: 2rem; | ||
} | ||
|
||
.business-card > p { | ||
margin: 1.5rem 0; | ||
} | ||
|
||
.business-card .punctuation { | ||
font-family: cursive; | ||
font-weight: bold; | ||
font-size: 1.5rem; | ||
color: var(--red-600); | ||
} | ||
|
||
.under-construction { | ||
background-image: repeating-linear-gradient( | ||
-45deg, | ||
var(--neutral-950) 0, | ||
var(--neutral-950) 10px, | ||
var(--amber-400) 10px, | ||
var(--amber-400) 20px | ||
); | ||
background-size: 28px 28px; | ||
padding: 1rem; | ||
color: var(--neutral-950); | ||
|
||
animation-duration: 1s; | ||
animation-name: scrollhatching; | ||
animation-iteration-count: infinite; | ||
animation-timing-function: linear; | ||
} | ||
|
||
@keyframes scrollhatching { | ||
from { | ||
background-position-x: 0px; | ||
} | ||
to { | ||
background-position-x: 28px; | ||
} | ||
} | ||
|
||
.under-construction > .inner { | ||
height: 8rem; | ||
font-size: 2rem; | ||
text-transform: uppercase; | ||
background-color: var(--amber-400); | ||
display: flex; | ||
justify-content: center; | ||
flex-direction: column; | ||
} | ||
|
||
/** Colours **/ | ||
|
||
/** Light **/ | ||
body { | ||
--primary-text: var(--neutral-950); | ||
--bg-color: var(--neutral-50); | ||
--link: var(--blue-600); | ||
--link-visited: var(--purple-600); | ||
} | ||
|
||
/** Dark **/ | ||
@media (prefers-color-scheme: dark) { | ||
body { | ||
--primary-text: var(--neutral-50); | ||
--bg-color: var(--neutral-950); | ||
--link: var(--blue-500); | ||
--link-visited: var(--purple-500); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.