Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home page and Footer #28

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat: add footer
  • Loading branch information
mirumodapon committed Oct 18, 2024
commit 35ab6b8bcba371dfb6d179e6053b50e1aec1d374
1 change: 1 addition & 0 deletions .vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ import DefaultTheme from 'vitepress/theme'
<DefaultTheme.Layout>
<Content />
</DefaultTheme.Layout>
<Footer />
</template>
94 changes: 94 additions & 0 deletions components/Footer.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<script setup lang="ts">
import { conference } from '#data/conference.js'
</script>

<template>
<footer id="footer">
<section class="title">
<h1>COSCUP</h1>
<h2>Conference for Open Source Coders, User, and Promoters</h2>
</section>
<section class="contact">
<div>
<p>Attendee Service</p>
<p>attendee@coscup.org</p>
</div>
<div>
<p>Sponsorship</p>
<p>sponsorship@coscup.org</p>
</div>
<div>
<p>Program</p>
<p>program@coscup.org</p>
</div>
<div>
<p>Attendee Service</p>
<p>marketing@coscup.org</p>
</div>
</section>
<section class="history">
<h1>Websites</h1>
<p>
<span
v-for="year in Array.from({ length: conference.year - 2006 }, (_, k) => k + 2006)"
:key="year"
>
{{ year }}
</span>
</p>
</section>
<section class="social">
<h1>Social Media</h1>
</section>
</footer>
</template>

<style scoped>
#footer {
border-top: 1px solid var(--vp-c-gutter);
padding: 32px 64px;
}

#footer section {
margin: 50px 0;
}

#footer h1 {
font-size: 28px;
font-weight: bold;
text-align: center;

margin: 20px;
}

#footer h2 {
font-size: 20px;
text-align: center;

margin: 20px;
}

#footer .contact {
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;

font-size: 18px;
text-align: center;
row-gap: 25px;
}

#footer .history p {
display: flex;
justify-content: center;
flex-wrap: wrap;
row-gap: 25px;
}

#footer .history span {
display: inline-block;
width: 65px;

text-align: center;
}
</style>