Skip to content

Commit

Permalink
☀ projected laravel-site-github from d857ea4
Browse files Browse the repository at this point in the history
Source-holobranch: laravel-site-github
Source-commit: d857ea4
Source: d857ea4
  • Loading branch information
themightychris committed Aug 25, 2021
2 parents 984c4fc + d857ea4 commit 80a3903
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 10 deletions.
2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/app.js.map

Large diffs are not rendered by default.

70 changes: 63 additions & 7 deletions resources/js/Pages/About.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<template>
<v-container>
<v-row justify="center">
<v-row
justify="center"
>
<v-col
cols="12"
md="8"
md="9"
align="center"
>
<!-- eslint-disable-next-line vue/html-self-closing -->
Expand Down Expand Up @@ -34,12 +36,51 @@
<!-- eslint-disable-next-line vue/html-self-closing -->
<img
src="/images/OurPlan_city.png"
style="max-height: 300px; max-width: 100%;"
style="max-height: 300px; max-width: 100%; padding-bottom: 0.75em;"
/>
<v-divider style="padding-bottom:0.75em;" />
<p>
Watch these short videos to learn why land use and equity is so important.
</p>
<h1>...Three Videos Here...</h1>
<v-row style="margin-bottom:1em;">
<v-col
cols="12"
sm="4"
>
<div class="video-container">
<iframe
class="video"
src="https://www.youtube.com/embed/edIIfpSJFbQ"
allowfullscreen
/>
</div>
</v-col>
<v-col
cols="12"
sm="4"
>
<div class="video-container">
<iframe
class="video"
src="https://www.youtube.com/embed/FNoUIxkMbdI"
allowfullscreen
/>
</div>
</v-col>
<v-col
cols="12"
sm="4"
>
<div class="video-container">
<iframe
class="video"
src="https://www.youtube.com/embed/VhFk9UO0Olg"
allowfullscreen
/>
</div>
</v-col>
</v-row>
<v-divider />
</v-col>
</v-row>
<v-row justify="center">
Expand All @@ -48,7 +89,6 @@
md="8"
justify="start"
>
<v-divider />
<h1>About OurPlan</h1>
<p>
OurPlan started as a student project in the Master of Urban Spatial Analytics
Expand All @@ -69,7 +109,7 @@
We are still discovering who can benefit from OurPlan but we foresee potential users
including neighborhood groups, the Planning Commission, City Councilpersons, and bespoke
community engagement endeavors. We’d love to talk to you about how OurPlan can help!
Reach out
Reach out to
<a href="mailto:[email protected]">[email protected]</a>
for more info.
</p>
Expand Down Expand Up @@ -115,7 +155,7 @@
</template>

<script>
import Layout from '../Shared/Layouts/Layout.vue';
import Layout from '../Shared/Layouts/LayoutOverflow.vue';
export default {
name: 'About',
Expand All @@ -128,3 +168,19 @@ export default {
},
};
</script>

<style scoped>
.video-container {
position: relative;
width: 100%;
padding-bottom: 56.25%;
}
.video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
</style>
2 changes: 1 addition & 1 deletion resources/js/Pages/Survey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<script>
import { mapFields } from 'vuex-map-fields';
import Layout from '../Shared/Layouts/Layout.vue';
import Layout from '../Shared/Layouts/LayoutOverflow.vue';
import Surveyintro from './Survey/Surveyintro.vue';
import Location from './Survey/Location.vue';
Expand Down
72 changes: 72 additions & 0 deletions resources/js/Shared/Layouts/LayoutOverflow.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<template>
<v-app>
<v-bottom-navigation
v-model="currentRoute"
app
grow
color="primary"
@change="handleNavChange"
>
<v-btn
v-for="item in navItems"
:key="item.route"
:value="item.route"
:style="item.route === 'about' ? 'display:none;' : ''"
>
<span>{{ item.title }}</span>
<v-icon>{{ item.icon }}</v-icon>
</v-btn>
</v-bottom-navigation>

<v-main
:class="{ isSilk: isSilk }"
>
<slot />
</v-main>
</v-app>
</template>

<script>
import '@inertiajs/inertia';
import { mapFields } from 'vuex-map-fields';
export default {
data() {
return {
currentRoute: route().current(),
navItems: [
{ title: 'Engage!', route: 'engage', icon: 'mdi-flag-checkered' },
{ title: 'Explore', route: 'explore', icon: 'mdi-chart-timeline-variant' },
{ title: 'Survey', route: 'survey', icon: 'mdi-file-question-outline' },
{ title: 'About', route: 'about', icon: 'mdi-information-outline' },
],
};
},
computed: {
...mapFields([
'isSilk',
]),
},
mounted() {
// try to detect silk browser for special styling
const match = /(?:; ([^;)]+) Build\/.*)?\bSilk\/([0-9._-]+)\b(.*\bMobile Safari\b)?/.exec(window.navigator.userAgent);
if (match) {
this.isSilk = true;
}
},
methods: {
handleNavChange() {
this.$inertia.get(route(this.currentRoute), {}, { replace: true });
},
},
};
</script>

<style>
.v-main.isSilk {
max-height: calc(100vh - 112px);
}
</style>

0 comments on commit 80a3903

Please sign in to comment.