Skip to content

Commit

Permalink
✨ Many many layout touchups and also finally a loading animation! (#477)
Browse files Browse the repository at this point in the history
* move pages and add basic layout

* Added hero layout

* login/welcome with video

* Language-change now refreshes page. (I hate it)

* added title to events

* home

* Login

* redirect when logged in

* Fetch more button!

* SPINNER!

* fixes

* codacy
  • Loading branch information
HerrLevin authored Jul 27, 2021
1 parent c3c6499 commit 9477892
Show file tree
Hide file tree
Showing 37 changed files with 2,339 additions and 1,728 deletions.
51 changes: 51 additions & 0 deletions public/images/icons/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/vid2.mp4
Binary file not shown.
86 changes: 86 additions & 0 deletions resources/components/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<template>
<router-view></router-view>
</template>

<script>
import LayoutBasic from "./layouts/Basic";
export default {
name: "App",
data() {
return {
notificationsCount: 1,
};
},
metaInfo() {
return {
title: "Träwelling",
titleTemplate: "%s - Träwelling",//ToDo get name from .env
htmlAttrs: {
lang: this.i18n.getLocale()
},
meta: [
{name: "charset", "content": "utf-8"},
{name: "viewport", content: "width=device-width, initial-scale=1"},
{name: "apple-mobile-web-app-capable", content: "yes"},
{name: "apple-mobile-web-app-status-bar-style", content: "#c72730"},
{name: "mobile-web-app-capable", content: "yes"},
{name: "theme-color", content: "#c72730"},
{name: "name", content: "Träwelling"}, //ToDo get name from .env
{name: "copyright", content: "Träwelling Team"},
{name: "description", content: this.i18n.get("_.about.block1"), vmid: "description"},
{
name: "keywords",
content: "Träwelling, Twitter, Deutsche, Bahn, Travel, Check-In, Zug, Bus, Tram, Mastodon"
},
{name: "audience", conent: "Travellers"},
{name: "DC.Rights", content: "Träwelling Team"},
{name: "DC.Description", content: this.i18n.get("_.about.block1"), vmid: "DC.Description"},
{name: "DC.Language", content: this.i18n.getLocale()},
{property: "og:title", content: "Träwelling", vmid: "og:title"}, //ToDo get name from .env
{property: "og:site_name", content: "Träwelling"}, //ToDo get name from .env
{property: "og:type", content: "website"},
{name: "robots", content: "index,follow", vmid: "robots"}
]
};
},
components: {
LayoutBasic
},
mounted() {
this.$auth.load().then(() => {
if (this.$auth.check()) {
this.$auth.fetch()
.then((res) => {
this.$auth.user(res.data.data);
if (this.$auth.user().language) {
this.setLang(this.$auth.user().language);
}
});
}
});
this.fetchNotificationsCount();
},
watch: {
'$route'() {
$("#navbarCollapse").collapse("hide");
}
},
methods: {
showNotifications() {
this.$refs.notifModal.show();
},
fetchNotificationsCount() {
axios
.get("/notifications/count")
.then((response) => {
this.notificationsCount = response.data.data;
})
.catch((error) => {
console.error(error);
});
}
}
};
</script>
105 changes: 0 additions & 105 deletions resources/components/Dashboard.vue

This file was deleted.

Loading

0 comments on commit 9477892

Please sign in to comment.