Skip to content

Commit

Permalink
Merge pull request #64 from bcgov/feature/home-page
Browse files Browse the repository at this point in the history
Home page
  • Loading branch information
jujaga authored Apr 5, 2023
2 parents 687de7f + 21bfeec commit 5af90de
Show file tree
Hide file tree
Showing 6 changed files with 265 additions and 22 deletions.
Binary file added frontend/src/assets/images/home_1.png
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 frontend/src/assets/images/home_2.png
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 frontend/src/assets/images/home_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions frontend/src/assets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,34 @@ td .wrap-block{ width: inherit; }
}
}
}

.drop-shadow {
box-shadow: 0 6px 6px -1px rgb(145, 145, 145);
}

.gov-footer {
background-color: #003366 !important;
border-top: 2px solid #fcba19;
flex-shrink: 0;
min-height: 2.5rem;
min-width: 100%;
padding-bottom: 0;
padding-top: 0;

a {
color: #ffffff;
font-size: 1rem;
text-decoration: none;
&:focus {
outline: none;
}
}

.button > span {
color: #ffffff;
font-size: 1rem;
font-weight: normal;
text-decoration: none;
text-transform: none;
}
}
74 changes: 64 additions & 10 deletions frontend/src/components/layout/Footer.vue
Original file line number Diff line number Diff line change
@@ -1,24 +1,78 @@
<script setup lang="ts">
import { storeToRefs } from 'pinia';
import { Button } from '@/lib/primevue';
import { useConfigStore } from '@/store';
// Store
const { getConfig } = storeToRefs(useConfigStore());
</script>

<template>
<div class="footer-line flex justify-content-between flex-wrap">
<div>This is a footer</div>
<div v-if="getConfig">
<div class="gov-footer flex justify-content-between">
<div>
<Button
id="footer-home"
>
<a
href="https://www.gov.bc.ca/"
target="_blank"
>Home</a>
</Button>
<Button
id="footer-about"
>
<a
href="https://www2.gov.bc.ca/gov/content/about-gov-bc-ca"
target="_blank"
>About gov.bc.ca</a>
</Button>
<Button
id="footer-disclaimer"
>
<a
href="http://gov.bc.ca/disclaimer"
target="_blank"
>Disclaimer</a>
</Button>
<Button
id="footer-privacy"
>
<a
href="http://gov.bc.ca/privacy"
target="_blank"
>Privacy</a>
</Button>
<Button
id="footer-accessibility"
>
<a
href="http://gov.bc.ca/webaccessibility"
target="_blank"
>Accessibility</a>
</Button>
<Button
id="footer-copyright"
>
<a
href="http://gov.bc.ca/copyright"
target="_blank"
>Copyright</a>
</Button>
<Button
id="footer-contact"
>
<a
href="https://www2.gov.bc.ca/gov/content/home/contact-us"
target="_blank"
>Contact Us</a>
</Button>
</div>
<div
v-if="getConfig"
class="flex align-items-center justify-content-center text-white mr-3"
>
v{{ getConfig.version }}-{{ getConfig.gitRev.substring(0, 8) }}
</div>
</div>
</template>

<style>
.footer-line {
padding: 0 1em;
border-top: 1px solid grey;
}
</style>
182 changes: 170 additions & 12 deletions frontend/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
import { Message } from '@/lib/primevue';
import { storeToRefs } from 'pinia';
import { Button } from '@/lib/primevue';
import { useAuthStore, useConfigStore } from '@/store';
import { RouteNames } from '@/utils/constants';
// Store
const { getIsAuthenticated } = storeToRefs(useAuthStore());
Expand All @@ -17,16 +19,172 @@ const { getConfig } = storeToRefs(useConfigStore());
{{ getConfig?.notificationBanner }}
</Message>

<h3 v-if="!getIsAuthenticated">
Please log in to continue.
</h3>
<h3 v-else>
Welcome to BCBox.
</h3>
<div class="flex flex-column mr-8 ml-8">
<div class="flex justify-content-center mb-5">
<h1 class="font-bold">
Store and share files in BCBox
</h1>
</div>
<div class="flex justify-content-center mb-5">
<p class="text-xl text-center">
This website uses the <a href="https://bcgov.github.io/common-service-showcase/services/coms.html">Common Object Management Service</a> so
<a href="https://www2.gov.bc.ca/gov/content/governments/services-for-government/information-management-technology/id-services/idir">IDIR</a> and <a href="https://www.bceid.ca/">BCeID</a>
users can <br /> upload and share files with each other.
</p>
</div>
<div class="flex justify-content-center mb-5">
<router-link
:to="{ name: RouteNames.LIST_BUCKETS }"
class="no-underline"
>
<Button>
{{ getIsAuthenticated ? 'Go to My Buckets' : 'Log in to get started' }}
</Button>
</router-link>
</div>
<div class="flex justify-content-center mb-8">
<img
src="@/assets/images/home_1.png"
class="border-1 drop-shadow"
width="60%"
/>
</div>
<div class="grid mb-8">
<div class="col-6 pr-5">
<div class="flex align-items-left mb-2">
<h1 class="font-bold">
Upload and download objects
</h1>
</div>
<div class="flex align-items-left">
<p class="text-xl">
With BCBox, you can use low-cost object storage for your files, <br />
images and documents.
</p>
</div>
</div>
<div class="col-6 pl-5">
<div class="flex align-items-center">
<img
src="@/assets/images/home_2.png"
class="border-1 drop-shadow"
/>
</div>
</div>
</div>
<div class="grid mb-8">
<div class="col-6 pr-5">
<div class="flex align-items-left mb-2">
<h1 class="font-bold">
Manage access and share
</h1>
</div>
<div class="flex align-items-left">
<p class="text-xl">
You can assign custom permissions to other users through IDIR or BCeID authentication.<br /><br />
You can also choose to share files with public links.
Contact your organization's privacy and security teams to see if this fits your intended use.
Make sure you don't upload personal or private information without the consent of your Ministry
Privacy Officer.
</p>
</div>
</div>
<div class="col-6 pl-5">
<div class="flex">
<img
src="@/assets/images/home_3.png"
class="border-1 drop-shadow"
/>
</div>
</div>
</div>
<div class="flex justify-content-center mb-5">
<h1 class="font-bold">
Versioning, metadata, tagging, syncing with existing buckets and more
</h1>
</div>
<div
class="flex justify-content-center mb-3"
style="height: 32px"
>
<p class="text-xl">
We continue to expand the features of BCBox. Stay tuned for documentation on our wiki.<br /><br />
</p>
</div>
<div class="flex justify-content-center mb-8 text-xl">
<ul>
<li>
Need a bucket? Contact <a href="mailto: [email protected]">NRIDS Optimization</a>
(Natural Resource ministries) or your <br /> ministry's service desk
</li>
<li>
See BCBox on
<a
href="https://github.com/bcgov/bcbox"
target="_blank"
>Github</a>
</li>
<li>
Learn more about the
<a
href="https://bcgov.github.io/common-service-showcase/"
target="_blank"
>Common Services Showcase Team</a>
</li>
<li>
Email the <a href="mailto: [email protected]">Common Services Showcase Team</a>
with questions or feedback
</li>
</ul>
</div>
<div class="flex justify-content-center mb-8">
<router-link
:to="{ name: RouteNames.LIST_BUCKETS }"
class="no-underline"
>
<Button>
{{ getIsAuthenticated ? 'Go to My Buckets' : 'Log in to get started' }}
</Button>
</router-link>
</div>
<div class="flex justify-content-center mb-5">
<h1 class="font-bold">
Terms of Use
</h1>
</div>
<div class="flex justify-content-left mb-5 text-xl">
<ul>
<li>
It is your responsibility to comply with Privacy laws governing the collection,
use and disclosure of personally identifiable information
</li>
<li>
Access to this tool does not inherently grant permission to collect,
use or disclose any personally identifiable information
</li>
<li>
It is your responsibility to obtain consent to collect information as required by law
</li>
<li>
Before uploading and distributing files you are required to discuss your intention with your <a
href="https://www2.gov.bc.ca/gov/content/governments/services-for-government/information-management-technology/privacy/resources/privacy-officers"
target="_blank"
>Ministry Privacy Officer</a> and to complete assessments as required.
If you intend to advise users to access with BCeID, please send an email to the
<a href="mailto: [email protected]">Provincial Identity Information Management Program</a>
indicating your intentions
</li>
<li>
Storage and custodianship of metadata and tags (not the objects themselves in your bucket)
is maintained by Natural Resource Information & Digital Services
</li>
<li>
You will refer to and adhere to <a
href="https://www2.gov.bc.ca/gov/content/data/about-data-management/databc"
target="_blank"
>DataBC</a> requirements for public file sharing
</li>
</ul>
</div>
</div>
</template>

<style lang="scss" scoped>
h1 {
font-weight: bold;
}
</style>

0 comments on commit 5af90de

Please sign in to comment.