Builds footer, and updates new homepage

This commit is contained in:
Alicia Sykes 2024-06-08 15:23:25 +01:00
parent 8013a0a445
commit 6207157da7
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,53 @@
---
const repo = 'github.com/lissy93/web-check';
const github = `https://github.com/${repo}`;
const licenseText = 'MIT';
const licenseLink = `${github}/blob/master/LICENSE`;
const aboutLink = '/about';
const projectName = 'Web Check';
const authorName = 'Alicia Sykes';
const authorLink = 'https://aliciasykes.com';
const currentYear = new Date().getFullYear();
---
<footer>
<p>
View source at <a href={github}>{repo}</a>
</p>
<p>
<a href={aboutLink}>{projectName}</a>
is licensed under
<a href={licenseLink}>{licenseText}</a>
- © <a href={authorLink}>{authorName}</a>
{currentYear}
</p>
</footer>
<style lang="scss">
@import '@styles/global.scss';
footer {
margin-top: 1rem;
background: var(--primary);
color: var(--background);
padding: 1rem;
display: flex;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
p, a {
margin: 0;
color: var(--background);
font-size: 1rem;
}
a {
text-decoration: underline;
}
@include tablet-portrait-down {
flex-direction: column;
align-items: center;
}
}
</style>

View File

@ -2,6 +2,8 @@
import BaseLayout from '@layouts/Base.astro'; import BaseLayout from '@layouts/Base.astro';
import HeroForm from '@components/homepage/HeroForm.astro'; import HeroForm from '@components/homepage/HeroForm.astro';
import HomeBackground from '@/components/homepage/HomeBackground'; import HomeBackground from '@/components/homepage/HomeBackground';
import AboutSection from '@/components/homepage/AboutSection.astro';
import Footer from '@components/scafold/Footer.astro';
const isBossServer = import.meta.env.BOSS_SERVER === true; const isBossServer = import.meta.env.BOSS_SERVER === true;
@ -20,7 +22,9 @@ if (!isBossServer) {
</Fragment> </Fragment>
<main> <main>
<HeroForm /> <HeroForm />
<AboutSection />
</main> </main>
<Footer />
<HomeBackground client:only="react" /> <HomeBackground client:only="react" />
</BaseLayout> </BaseLayout>