Skip to content

Commit

Permalink
Add footer
Browse files Browse the repository at this point in the history
  • Loading branch information
RehanSaeed committed Mar 25, 2022
1 parent 60b368a commit a8dfc1f
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/DotnetNewUI/Frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,20 @@
<nprogress-container />
<ui-navigation />
<router-view />
<ui-footer />
</template>

<script lang="ts">
import { defineComponent } from "vue";
import NprogressContainer from "vue-nprogress/src/NprogressContainer";
import Navigation from "@/components/Navigation.vue"; // @ is an alias to /src
import Footer from "@/components/Footer.vue";
import Navigation from "@/components/Navigation.vue";
export default defineComponent({
name: "App",
components: {
NprogressContainer,
"ui-footer": Footer,
"ui-navigation": Navigation,
},
});
Expand Down
50 changes: 50 additions & 0 deletions Source/DotnetNewUI/Frontend/src/components/Footer.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<template>
<footer class="footer">
<span class="footer__copyright"
>Copyright © {{ new Date().getFullYear() }}
<a href="https://rehansaeed.com">Muhammad Rehan Saeed</a> &
<a href="https://github.com/petroemil">Emil Petro</a></span
>
<span>|</span>
<span class="footer__links"
>Built with <a href="https://dot.net">.NET</a></span
>
<span>|</span>
<span class="footer__links"
>Code on
<a href="https://github.com/ligershark/dotnet-new-ui">GitHub</a></span
>
</footer>
</template>

<script lang="ts">
import { defineComponent } from "vue";
export default defineComponent({
name: "ui-footer",
});
</script>

<style lang="scss">
.footer {
display: flex;
justify-content: center;
gap: 20px;
padding: 20px;
}
.footer a {
color: #fff;
}
.footer a:hover {
background: hsl(283, 69%, 41%);
transform: scale(1.1);
}
@media print {
.footer {
display: none;
}
}
</style>

0 comments on commit a8dfc1f

Please sign in to comment.