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

Add footer #4

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
54 changes: 54 additions & 0 deletions src/components/Footer.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<template>
<footer class="footer">
<div class="footer-content">
<div class="footer-top">
<span class="footer-copy">Copyright © 2016-2024 VATUSA - United States Division, VATSIM. All rights reserved.</span>
<span class="footer-disclaimer">Any and all content on this website are for use with the Virtual Air Traffic Simulation Network (VATSIM) and may not be used for real-world navigation or aviation purposes and doing so could be a violation of federal law.</span>
</div>
<hr>
<div class="footer-bottom">
<a href="https://github.com/VATUSA/MyVATUSA" target="_blank" rel="noopener noreferrer">GitHub</a>
<span class="footer-divider">|</span>
<a href="https://example.com/privacy-policy" target="_blank" rel="noopener noreferrer">Privacy Policy</a>
</div>
</div>
</footer>
</template>

<script>
export default {
name: 'Footer'
}
</script>

<style scoped>
.footer {
background-color: #f3f3f3;
color: #333;
text-align: center;
padding: 0.5rem 0;
margin-top: auto;
}

.footer-content {
display: flex;
flex-direction: column;
align-items: center;
}

.footer-top, .footer-bottom {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}

.footer-copy, .footer-disclaimer, .footer-bottom a, .footer-divider {
margin: 0 0.5rem;
font-size: 0.85rem;
}

.footer-bottom {
margin-top: 1rem;
}
</style>
33 changes: 23 additions & 10 deletions src/components/Page.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
<template>
<div class="p-12">
<h1 class="text-usa-blue text-3xl font-bold">{{ props.title }}</h1>
<div class="flex divide-x divide-gray-300 mt-10">
<div class="w-full space-y-6">
<slot>
<div class="m-5">
<p>Failed to render page. If you are viewing this page please open a ticket.</p>
</div>
</slot>
<div class="page-container">
<div class="content-container">
<div class="p-12">
<h1 class="text-usa-blue text-3xl font-bold">{{ props.title }}</h1>
<div class="flex divide-x divide-gray-300 mt-10">
<div class="w-full space-y-6">
<slot>
<div class="m-5">
<p>Failed to render page. If you are viewing this page please open a ticket.</p>
</div>
</slot>
</div>
</div>
</div>
<hr class="flex divide-x divide-gray-500 mt-10">
</div>
<Footer />
</div>
</template>

<script setup lang="ts">
const props = defineProps({
title: { type: String, required: true },
});

import Footer from "@/components/Footer.vue";
</script>

<style scoped></style>
<style scoped>
.page-container {
display: flex;
flex-direction: column;
}
</style>