Skip to content

Commit

Permalink
Merge pull request #32 from xatellite/feature/olp-51-add-feedback-button
Browse files Browse the repository at this point in the history
Feature/olp 51 add feedback button
  • Loading branch information
zandemax authored Jul 23, 2023
2 parents 92a2fa4 + 090f5da commit 347eaa3
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 4 deletions.
3 changes: 3 additions & 0 deletions openlineplanner/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import { RouterView } from "vue-router";
import PageHeader from "@/components/PageHeader.vue";
import PageFooter from "@/components/PageFooter.vue";
import "@fontsource/poppins";
import "@fontsource/poppins/400.css";
import "@fontsource/poppins/500.css";
import "@fontsource/poppins/600.css";
import "@fontsource/poppins/700.css";
import { useUIStore } from './stores/ui';
Expand Down
9 changes: 9 additions & 0 deletions openlineplanner/src/components/GithubCorner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,18 @@
id="path6"
/>
</svg>
Check on Github
</a>
</template>
<style lang="scss" scoped>
.github-corner {
display: flex;
align-items: center;
gap: 4px;
color: var(--c-text-inverted--alt);
}
.corner {
fill: #ffffff;
margin-top: 2px;
Expand Down
10 changes: 9 additions & 1 deletion openlineplanner/src/components/PageFooter.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<template>
<div class="footer">
<span>OpenLinePlanner is a product for all!</span>
<span class="footer__left">OpenLinePlanner is a product for all! <GithubCorner /></span>
<span class="footer__center">{{version}} - {{ majorName }}</span>
<span class="footer__right">Launched by @xatellite, Supported by FH St. Pölten</span>
</div>
</template>

<script>
import GithubCorner from './GithubCorner.vue';
export default {
components: { GithubCorner },
setup() {
return {
version: import.meta.env.VITE_VERSION,
Expand Down Expand Up @@ -40,6 +42,12 @@ export default {
text-align: center;
}
&__left {
display: flex;
align-items: center;
gap: $space-sm;
}
&__right {
text-align: right;
}
Expand Down
25 changes: 22 additions & 3 deletions openlineplanner/src/components/PageHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<router-link to="/project" id="nav-project" class="page-header__navigation__item"
>Project</router-link
>
<GithubCorner />
</nav>
<div class="page-header__settings">
<button @click="uiStore.toggleMode" class=" button--transparent">
Expand Down Expand Up @@ -92,7 +91,19 @@ export default {
}
.router-link-active {
border-bottom: 5px solid var(--c-accent-three);
position: relative;
// border-bottom: 5px solid var(--c-accent-three);
&::after {
content: "";
position: absolute;
bottom: -4px;
left: 0;
width: 100%;
height: 5px;
border-radius: 5px;
background-color: var(--c-accent-three);
}
}
.mobile-nav {
Expand All @@ -110,9 +121,10 @@ export default {
&__navigation {
display: flex;
align-items: center;
gap: $space-md;
margin-left: $space-lg;
font-weight: bold;
font-weight: 600;
@media (max-width: 700px), (max-height: 600px) {
display: none;
Expand All @@ -121,12 +133,19 @@ export default {
text-align: center;
padding: $space-sm;
border-bottom: 1px solid var(--c-button-border);
width: 100%;
}
.router-link-active {
display: none;
}
}
&__button {
width: auto;
height: auto;
padding: 4px $space-sm;
}
}
@media (max-width: 700px), (max-height: 600px) {
Expand Down
5 changes: 5 additions & 0 deletions openlineplanner/src/views/ProjectView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
</div>
</div>
<SavesList />
<a href="mailto:hi@xatellite.space?subject=%5BOpenLinePlanner%5D%20Feedback" class="button project__feedback button--accent">Problems? Ideas? Send Feedback!</a>
</div>
<InteractiveMap />
</main>
Expand Down Expand Up @@ -95,5 +96,9 @@ export default {
margin: $space-sm 0;
align-items: center;
}
&__feedback {
width: 100%;
margin-top: $space-ssm;
}
}
</style>

0 comments on commit 347eaa3

Please sign in to comment.