Skip to content

Commit

Permalink
Merge pull request #68 from timelyportfolio/develop-kent
Browse files Browse the repository at this point in the history
add youtube videos and fix no scroll on about, survey
  • Loading branch information
themightychris authored Aug 25, 2021
2 parents f704d4b + d72f5f4 commit d857ea4
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 8 deletions.
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 d857ea4

Please sign in to comment.