1
Fork 0

Add homepage styling and logos.

This commit is contained in:
Bauke 2024-03-06 15:19:01 +01:00
parent 02fc799d6f
commit c3735ae205
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
4 changed files with 116 additions and 1 deletions

View File

@ -1,5 +1,6 @@
---
import BaseLayout, {type Props as BaseProps} from "../layouts/base.astro";
import "../scss/index.scss";
const props: BaseProps = {
frontmatter: {
@ -9,5 +10,31 @@ const props: BaseProps = {
---
<BaseLayout {...props}>
<h1>driftingnebula</h1>
<header class="page-header">
<h1 title="driftingnebula">
<img
class="big"
src="/driftingnebula-shadowed.png"
alt="driftingnebula"
/>
<img
class="small"
src="/driftingnebula-logo-shadowed.png"
alt="driftingnebula"
/>
</h1>
</header>
<main class="page-main">
<div class="project" data-project-name="interlinked">
<header>
<div class="border-wrap">
<a href="/interlinked">
<h2>Interlinked</h2>
<p>Generative art with GIMP, GEGL and ImageMagick.</p>
</a>
</div>
</header>
</div>
</main>
</BaseLayout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

88
source/scss/index.scss Normal file
View File

@ -0,0 +1,88 @@
body {
--spacing-1: 4px;
--spacing-2: 8px;
--spacing-3: 16px;
background-color: black;
color: white;
}
.page-header {
align-items: center;
background: center url("/interlinked/numbered/12.png");
background-size: cover;
display: flex;
justify-content: center;
min-height: 400px;
height: 50vh;
padding: var(--spacing-3);
h1 {
display: flex;
}
img {
height: 10rem;
&.big {
display: unset;
}
&.small {
display: none;
}
@media (width <= 600px) {
&.big {
display: none;
}
&.small {
display: unset;
}
}
}
}
.project {
align-items: center;
background-color: #303030;
display: flex;
min-height: 400px;
height: 50vh;
padding: var(--spacing-3);
&[data-project-name="interlinked"] {
background: center url("/interlinked/numbered/15.png");
background-size: cover;
}
a {
background-color: #220575;
border: 1px solid black;
display: block;
padding: var(--spacing-3);
text-decoration: none;
}
h2,
p {
color: white;
text-shadow: 2px 2px 2px black;
}
.border-wrap {
background: conic-gradient(#ca0600, #7b68c1, #ad8f1e, #ca0600);
border: 1px solid black;
padding: var(--spacing-1);
&:hover {
background: white;
border-color: white;
a {
border-color: white;
}
}
}
}