An even more educational version of the Bandolier for Learn JS the Hard Way. https://learnjsthehardway.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
bandolier2/pages/index.html

110 lines
2.2 KiB

{% include "./header.html" %}
<style>
body {
display: flex;
flex-direction: column;
}
section {
min-width: 1080px;
align-self: center;
}
header {
display: grid;
align-items: center;
grid-template-columns: 1fr 1fr;
background: var(--grape-0);
}
.hero {
padding: var(--size-10);
display: grid;
gap: var(--size-5);
}
.hero-message {
display: grid;
grid-template-columns: max-content;
color: var(--gray-9);
line-height: var(--font-lineheight-0);
}
.hero-message > div:last-child {
color: var(--indigo-7);
}
.under-hero {
color: var(--gray-7);
font-size: var(--font-size-4);
margin-block-end: var(--size-3);
}
.button-list {
display: flex;
gap: var(--size-3);
}
button {
background: white;
color: var(--indigo-8);
font-size: var(--font-size-3);
padding-inline: var(--size-8);
padding-block: var(--size-3);
border-radius: var(--radius-2);
box-shadow: var(--shadow-2);
}
button.primary {
background: var(--indigo-8);
text-shadow: 0 1px 0 var(--indigo-9);
color: white;
}
button.primary:hover {
background: var(--indigo-7);
}
.promo-art {
align-self: stretch;
}
.promo-art > img {
block-size: 100%;
object-fit: cover;
}
</style>
<head>
<body>
<header>
<section class="hero">
<h1 class="hero-message">
<div>Hero layout with</div>
<div>Open Props</div>
</h1>
<p class="under-hero">Lorem ipsum dolor sit amet consectetu adipisicing elit. Nemo in doloremque quam, voluptatibus eum voluptatum.</p>
<div class="button-list">
<button class="primary">Get started</button>
<button>Live demo</button>
</div>
</section>
<picture class="promo-art">
<img src="https://doodleipsum.com/700x700/outline?bg=3b5bdb" height="800" width="800" alt="a random doodle">
</picture>
</header>
<section>
<h1>Test!</h1>
<div x-data="{ open: false }">
<button @click="open = !open">Expand</button>
<span x-show="open">
Content...
</span>
</div>
<blockquote>
One day I will learn how to run without falling.
</blockquote>
</section>
{% include "./footer.html" %}