feat: ✨ overhault home page
This commit is contained in:
parent
efa58ec9a8
commit
170c720898
1 changed files with 70 additions and 29 deletions
|
@ -7,11 +7,50 @@
|
||||||
const getAltText = (name) => name.charAt(0).toUpperCase() + name.slice(1) + ' Avatar';
|
const getAltText = (name) => name.charAt(0).toUpperCase() + name.slice(1) + ' Avatar';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const betaNote = document.querySelector('.beta-note');
|
||||||
|
const btn = betaNote.querySelector('.btn');
|
||||||
|
btn.addEventListener('click', (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
betaNote.style = 'display: none';
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<header>
|
<section class="beta-note">
|
||||||
<h1>Welcome!</h1>
|
<p>
|
||||||
<p>Select your character:</p>
|
<strong>🏗️ Work in progress! 🚧</strong> Please note that while most of this site is close to
|
||||||
</header>
|
98% done, it is still being worked on and contents are subject to change.
|
||||||
|
</p>
|
||||||
|
<ref-button class="btn">Okie-dokie!</ref-button>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="intro">
|
||||||
|
<h1>Sebin's Characters</h1>
|
||||||
|
|
||||||
|
<p>Hiya! 👋🏻 Welcome to my character reference page! 😊</p>
|
||||||
|
<p>
|
||||||
|
This is where you can learn all about my characters with detailed descriptions and lore about
|
||||||
|
each one.
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<strong>For Artists</strong> this site provides comprehensive reference material and
|
||||||
|
detailed descriptions for each of my characters to help depict them in the best way
|
||||||
|
possible.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<strong>Everyone else</strong> is free to explore the design and lore of my characters to
|
||||||
|
get to know them better!
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
I put a lot of effort into giving all of them a home and I hope you'll find the information
|
||||||
|
provided enlightening and insightful. Have fun!
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<h2 class="char-select">Select Your Character</h2>
|
||||||
|
|
||||||
<div class="characters">
|
<div class="characters">
|
||||||
<card webc:for="char of characters" :href="`/${char}/`">
|
<card webc:for="char of characters" :href="`/${char}/`">
|
||||||
|
@ -25,53 +64,55 @@
|
||||||
<p @text="getDescription(char)"></p>
|
<p @text="getDescription(char)"></p>
|
||||||
</card>
|
</card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<section class="beta-note">
|
|
||||||
<p class="head">🏗️ Work in progress! 🚧</p>
|
|
||||||
<p>Please note that this site is still being worked on and contents are subject to change.</p>
|
|
||||||
</section>
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
main {
|
main {
|
||||||
max-width: 130ch;
|
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
.intro {
|
||||||
|
max-width: 65ch;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.intro h1 {
|
||||||
|
font-size: clamp(2.125em, 10vw, 4em);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
& h1 {
|
.char-select {
|
||||||
font-size: clamp(3.5em, 5vw, 7em);
|
font-size: clamp(1.75em, 8vw, 3em);
|
||||||
margin-block: clamp(0.25em, 1.75vw, 0.375em);
|
text-align: center;
|
||||||
}
|
|
||||||
|
|
||||||
& p {
|
|
||||||
font-size: clamp(1.25em, 1.5vw, 2.25em);
|
|
||||||
margin-block: clamp(0.25em, 10vw, 1em);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.characters {
|
.characters {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(17.5em, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(17.5em, 1fr));
|
||||||
gap: 1.5em;
|
gap: 1.5em;
|
||||||
|
width: 90vw;
|
||||||
|
max-width: 100ch;
|
||||||
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.beta-note {
|
.beta-note {
|
||||||
max-width: 60ch;
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1em;
|
||||||
|
|
||||||
|
background-color: var(--clr-box-background);
|
||||||
|
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
|
||||||
margin-block: 2em;
|
border: 0.125em solid var(--clr-box-border);
|
||||||
border: 0.125em solid white;
|
border-radius: 1em;
|
||||||
border-radius: 0.75em;
|
padding: 1em;
|
||||||
padding-inline: 1em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.beta-note .head {
|
.beta-note > * {
|
||||||
font-family: var(--font-family-headings);
|
margin-block: 0;
|
||||||
font-size: 1.5em;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue