Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev designs - partial #164

Closed
wants to merge 34 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
f1948ce
Developer Site Designs Partial - Card
Rajandeep98 Nov 26, 2024
c29f1ed
icon remove
Rajandeep98 Nov 26, 2024
5e6fa71
test text updated
Rajandeep98 Nov 26, 2024
10b62fd
updated link for rendering
Rajandeep98 Nov 26, 2024
3503d98
removing arrow
Rajandeep98 Nov 26, 2024
d606078
header setup design
Rajandeep98 Nov 27, 2024
93704b4
logo updated
Rajandeep98 Nov 28, 2024
9636d7d
unit tests fixed:
Rajandeep98 Nov 28, 2024
df2180f
header fixes for mobile
Rajandeep98 Nov 28, 2024
80cef39
card icon updated
Rajandeep98 Nov 29, 2024
2b1b610
footer design
Rajandeep98 Nov 29, 2024
b4ffa7a
links updated tests
Rajandeep98 Nov 29, 2024
762d953
Merge branch 'bcgov:main' into dev_designs
Rajandeep98 Dec 6, 2024
49b6522
Merge branch 'bcgov:main' into Header_Devsite
Rajandeep98 Dec 6, 2024
573b1c9
Merge branch 'bcgov:main' into dev_designs
Rajandeep98 Dec 6, 2024
bb282bf
updated ux review
Rajandeep98 Dec 6, 2024
6da22cd
exclude test temporarily for color mode and locale
Rajandeep98 Dec 6, 2024
bf22e77
Merge pull request #166 from Rajandeep98/Header_Devsite
Rajandeep98 Dec 9, 2024
d9d33cc
removing arrow
Rajandeep98 Nov 26, 2024
1737661
card icon updated
Rajandeep98 Nov 29, 2024
b66bea8
Developer Site Designs Partial - Card
Rajandeep98 Nov 26, 2024
7d8e8cc
icon remove
Rajandeep98 Nov 26, 2024
b015adf
footer design
Rajandeep98 Nov 29, 2024
8fc3faa
links updated tests
Rajandeep98 Nov 29, 2024
0b960d2
test text updated
Rajandeep98 Nov 26, 2024
2f0e95f
updated ux review
Rajandeep98 Dec 6, 2024
90679a4
updated link for rendering
Rajandeep98 Nov 26, 2024
43dc26f
removing arrow
Rajandeep98 Nov 26, 2024
9b294f3
removing arrow
Rajandeep98 Nov 26, 2024
43abb7b
card icon updated
Rajandeep98 Nov 29, 2024
98f7511
card icon updated
Rajandeep98 Nov 29, 2024
3a1b312
Merge remote-tracking branch 'origin/dev_designs' into dev_designs
Rajandeep98 Dec 9, 2024
3272959
reset back changes
Rajandeep98 Dec 9, 2024
e6fd840
Merge remote-tracking branch 'origin/dev_designs' into dev_designs
Rajandeep98 Dec 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/site/app/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ provide('footerHeight', footerHeight)
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<SbcFooter ref="footerRef" class="z-50" />
<SbcFooter ref="footerRef" class="z-50 mt-auto" />
</div>
</template>
31 changes: 26 additions & 5 deletions web/site/app/components/Sbc/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,21 @@ const links = [
to: 'https://www2.gov.bc.ca/gov/content/home/disclaimer',
target: '_blank'
},
{
label: 'SbcFooter.releaseNotes',
to: 'https://www.release-notes.bcregistry.gov.bc.ca',
target: '_blank'
},
{
label: 'SbcFooter.privacy',
to: 'https://www2.gov.bc.ca/gov/content/home/privacy',
target: '_blank'
},
{
label: 'Hours of Availability',
to: 'https://www2.gov.bc.ca/gov/content?id=C41D8179671441B2BAA3BDDD3D89C9A9',
target: '_blank'
},
{
label: 'SbcFooter.ally',
to: 'https://www2.gov.bc.ca/gov/content/home/accessibility',
Expand All @@ -30,21 +40,32 @@ const links = [
<template>
<footer
id="sbc-main-footer"
class="border-t-2 border-bcGovColor-navDivider bg-bcGovColor-footer p-2 dark:border-t dark:bg-bcGovColor-darkGray"
class="inset-x-0 bottom-0 border-t-4 border-bcGovColor-navDivider bg-bcGovColor-footer p-2 dark:border-t dark:bg-bcGovColor-darkGray"
>
<div class="mx-auto flex max-w-[1360px] items-center justify-between">
<nav :aria-label="$t('SbcFooter.navLabel')" class="flex flex-col gap-1 sm:flex-row sm:items-center sm:gap-4">
<div class="mx-auto max-w-[1360px] items-center">
<nav
:aria-label="$t('SbcFooter.navLabel')"
class="flex flex-wrap gap-1 sm:flex-row sm:items-center sm:gap-4"
>
<NuxtLink
v-for="link in links"
:key="link.to"
:to="link.to === '/' ? `/${$i18n.locale}` : link.to"
:target="link.target"
class="rounded p-1 text-sm text-white hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-white"
class="rounded-none border-r-[0.25px] border-bcGovBlue-100 p-1 pr-2 text-sm text-white hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-white"
>
{{ $t(link.label) }}
</NuxtLink>
<span
class="ml-auto flex justify-center whitespace-nowrap italic text-bcGovColor-navDivider lg:pl-12"
>
{{ $t("SbcFooter.bcApp") }}
<span class="flex h-6 justify-center"><UButton
icon="i-heroicons-information-circle"
variant="link"
/></span>
</span>
</nav>
<span class="whitespace-nowrap italic text-bcGovColor-navDivider">{{ $t('SbcFooter.bcApp') }}</span>
</div>
</footer>
</template>
46 changes: 24 additions & 22 deletions web/site/app/components/Sbc/Header/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,38 @@ defineExpose({
<header
id="sbc-main-header"
ref="headerRef"
class="border-b-2 border-bcGovColor-navDivider bg-bcGovColor-header p-2 sm:px-4 dark:border-b dark:bg-bcGovColor-darkGray"
class="2xl: left-1 h-16 border-b-4 border-bcGovColor-navDivider bg-bcGovColor-header p-2 sm:px-4 dark:border-b dark:bg-bcGovColor-darkGray"
>
<nav
class="m-auto flex w-full max-w-[1360px] items-center justify-between"
class="m-auto flex w-full max-w-[1312px] items-center justify-between"
:aria-label="$t('SbcHeader.navLabel')"
>
<div class="flex items-center gap-1">
<NuxtLinkLocale
to="/"
tabindex="-1"
aria-hidden="true"
class="mr-2"
>
<SbcLogo />
</NuxtLinkLocale>
<UButton
<div
class="flex h-12 min-h-12 items-center gap-3 py-2.5 sm:gap-5 md:gap-5 lg:gap-7"
>
<div class="h-12">
<NuxtLinkLocale to="/" tabindex="-1" aria-hidden="true" class="mr-2">
<SbcLogo />
</NuxtLinkLocale>
</div>
<div
v-for="link in mainLinks"
:key="link.to"
class="hidden lg:block"
:label="link.label"
:to="link.to"
color="white"
variant="link"
size="lg"
active-class="underline"
/>
class="flex h-11 w-24 cursor-pointer text-left font-sans text-sm font-semibold leading-5 lg:h-7 lg:w-60 lg:text-lg lg:font-bold lg:leading-7"
>
<NuxtLinkLocale :to="link.to">
<span v-if="link.label === 'Service BC Connect'">
<span class="text-white">Service</span><span class="text-bcGovColor-navDivider">BC</span> <span class="text-white">Connect</span>
</span>
<!-- <span v-else class="text-white">
{{ link.label }}
</span> -->
</NuxtLinkLocale>
</div>
</div>
<div class="flex gap-1">
<ColorModeSelect />
<LocaleSelect />
<!-- <ColorModeSelect /> -->
<!-- <LocaleSelect /> -->
<!-- leaving out auth options for now -->
<!-- <UDropdown
v-if="!user"
Expand Down
4 changes: 2 additions & 2 deletions web/site/app/components/Sbc/Logo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
</div>
<div v-else>
<img
class="hidden h-[60px] scale-125 sm:block"
class="hidden h-11 max-w-48 scale-125 sm:block"
src="BCGovLogoLgEn"
:alt="$t('SbcLogo.alt')"
>
<img
class="block h-[64px] scale-150 sm:hidden"
class="block h-11 w-14 scale-150 sm:hidden"
src="BCGovLogoSmEn"
:alt="$t('SbcLogo.alt')"
>
Expand Down
58 changes: 40 additions & 18 deletions web/site/app/components/Sbc/MobileNav.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
defineProps<{
accordianNavItems?: AccordianNavItem[] | undefined
accordianNavItems?: AccordianNavItem[] | undefined;
}>()
// const user = useCurrentUser()
const { currentDir, tocLinks } = useDocPageData()
Expand Down Expand Up @@ -33,27 +33,45 @@ const {
padding: 'p-2'
},
header: {
base: 'border-b-2 border-bcGovColor-navDivider dark:border-b-[1px] dark:bg-bcGovColor-darkGray',
base: 'border-b-4 border-bcGovColor-navDivider dark:border-b-[1px] dark:bg-bcGovColor-darkGray',
background: 'bg-bcGovColor-header dark:bg-bcGovColor-darkGray',
padding: 'p-2'
}
},
}"
>
<template #header>
<div class="m-auto flex w-full items-center justify-between">
<div class="flex items-center gap-1">
<NuxtLinkLocale
to="/"
tabindex="-1"
aria-hidden="true"
class="mr-2"
<div
class="flex h-12 min-h-12 items-center gap-3 py-2.5 sm:gap-5 md:gap-5 lg:gap-7"
>
<div class="flex">
<NuxtLinkLocale
to="/"
tabindex="-1"
aria-hidden="true"
class="mr-2"
>
<SbcLogo />
</NuxtLinkLocale>
</div>
<div
v-for="link in mainLinks"
:key="link.to"
class="flex h-11 w-24 cursor-pointer text-left font-sans text-sm font-semibold leading-5 lg:h-7 lg:w-60 lg:text-lg lg:font-bold lg:leading-7"
>
<SbcLogo />
</NuxtLinkLocale>
<NuxtLinkLocale :to="link.to">
<span v-if="link.label === 'Service BC Connect'">
<span class="text-white">Service</span><span class="text-bcGovColor-navDivider">BC</span> <span class="text-white">Connect</span>
</span>
<!-- <span v-else class="text-white">
{{ link.label }}
</span> -->
</NuxtLinkLocale>
</div>
</div>
<div class="flex gap-1">
<ColorModeSelect />
<LocaleSelect />
<!-- <ColorModeSelect />
<LocaleSelect /> -->
<!-- leave out auth options for now -->
<!-- <UDropdown
v-if="!user"
Expand Down Expand Up @@ -109,13 +127,17 @@ const {
</div>
</template>
<UVerticalNavigation :links="mainLinks" />
<UDivider v-show="tocLinks.length && $route.path.includes('products')" class="my-4" />
<UAccordion v-show="tocLinks.length && $route.path.includes('products')" :items="[{label: 'Table of Contents', defaultOpen: true}]">
<UDivider
v-show="tocLinks.length && $route.path.includes('products')"
class="my-4"
/>
<UAccordion
v-show="tocLinks.length && $route.path.includes('products')"
:items="[{ label: 'Table of Contents', defaultOpen: true }]"
>
<!-- default slot is the accordian button itself, so we use a custom button variant here to match theme -->
<template #default="{ open }">
<UButton
variant="accordian_trigger"
>
<UButton variant="accordian_trigger">
<span class="truncate">Table of Contents</span>

<template #trailing>
Expand Down
2 changes: 1 addition & 1 deletion web/site/app/composables/sbcNav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function useSbcNav () {
// icon: 'i-mdi-account',
// label: t('btn.dashboard'),
// to: localePath('/sbc/dashboard')
// },
// }
{
icon: 'i-mdi-book-open-variant',
label: 'Docs',
Expand Down
13 changes: 9 additions & 4 deletions web/site/app/locales/en-CA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ export default {
goHome: 'Go Home',
goBack: 'Go Back',
downloadSpec: 'Download the specification',
allProducts: 'View all products',
allProducts: 'View Products',
products: 'Products',
dashboard: 'Dashboard',
sbcConnect: 'Service BC Connect',
sbcConnect: 'ServiceBC Connect',
apiDoc: 'API documentation',
createKey: 'Create Key',
revoke: 'Revoke',
Expand All @@ -26,8 +26,8 @@ export default {
},
home: {
title: 'Home',
h1: 'BC Registries API Gateway',
intro: 'Welcome to the BC Registries API Gateway! Access API information for all BC Registries services here.'
h1: 'Service BC Connect Developer Site',
intro: 'Welcome to the Service BC Connect Developer Site! Access API information for all BC Registries services here.'
},
products: {
title: 'All Products',
Expand Down Expand Up @@ -56,8 +56,10 @@ export default {
SbcFooter: {
navLabel: 'Useful Links', // <nav> aria-label
home: 'Home',
releaseNotes: 'Release Notes',
disclaimer: 'Disclaimer',
privacy: 'Privacy',
hours: 'Hours of Availability',
ally: 'Accessibility',
copyright: 'Copyright',
bcApp: 'A BC Online Application'
Expand All @@ -74,6 +76,9 @@ export default {
// aria-label
label: 'Select a Language, current language: English'
},
SbcMainCard: {
learnMore: 'Learn More'
},
SbcProductCard: {
goTo: 'Go to'
},
Expand Down
78 changes: 74 additions & 4 deletions web/site/app/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,27 +1,97 @@
<script setup lang="ts">
const localePath = useLocalePath()
const { t } = useI18n()
useHead({
title: t('page.home.title')
})
const localePath = useLocalePath()

</script>
<template>
<div class="mx-auto flex flex-col items-center space-y-2 text-center">
<div class="mx-auto flex flex-col items-center space-y-7 px-6 py-12 text-center sm:px-8 md:px-12 lg:px-16">
<h1 class="text-3xl font-semibold text-bcGovColor-darkGray dark:text-white">
{{ $t('page.home.h1') }}
</h1>
<p class="text-lg text-bcGovColor-midGray dark:text-white">
{{ $t('page.home.intro') }}
</p>
<div class="flex items-center justify-center gap-4">
<UButton
<!-- <UButton
:label="$t('btn.getStarted')"
:to="localePath('/products/get-started/account-setup')"
/>
<UButton
:label="$t('btn.allProducts')"
:to="localePath('/products')"
/>
/> -->
<UContainer class="flex h-full flex-col items-center justify-center gap-10 overflow-y-auto lg:flex-row">
<UCard
class="flex max-h-[300px] min-h-[350px] w-[325px] flex-col items-center justify-center rounded-none shadow"
:ui="{
background: 'bg-gray-50 dark:bg-gray-800/50',
header: { base: 'font-bold text-lg text-center border-none' },
}"
>
<div class="mb-4 text-center">
<h2 class=" text-xl font-semibold uppercase text-gray-800 dark:text-white">
{{ $t('btn.getStarted') }}
</h2>
</div>
<div class="flex h-16 items-center justify-center">
<div class="mt-4 flex size-16 items-center justify-center rounded-full bg-bcGovColor-nonClickable">
<div class="flex items-center justify-center">
<UIcon name="i-mdi-cursor-default-click" class="ms-auto size-8 shrink-0 text-white " />
</div>
</div>
</div>
<div class="mx-auto mt-4 max-w-5xl text-center">
<p class="text-bcGovColor-midGray dark:text-gray-400">
Start to set up Service BC Connect APIs in your applications.
</p>
</div>
<div class="flex grow items-center justify-center px-4 pb-3.5 text-center sm:p-7">
<NuxtLink
:to="localePath('/products/get-started/account-setup')"
class="flex cursor-pointer flex-wrap items-center font-semibold tracking-wide text-[#1a5a96] underline dark:text-white"
>
{{ $t('SbcMainCard.learnMore') }}
</NuxtLink>
</div>
</UCard>

<UCard
class="flex max-h-[300px] min-h-[350px] w-[325px] flex-col items-center justify-center rounded-none shadow"
:ui="{
background: 'bg-gray-50 dark:bg-gray-800/50',
header: { base: 'font-bold text-lg text-center border-none' },
}"
>
<div class="mb-4 text-center">
<h2 class="text-xl font-semibold uppercase text-gray-800 dark:text-white">
{{ $t('btn.allProducts') }}
</h2>
</div>
<div class="flex h-16 items-center justify-center">
<div class="mt-4 flex size-16 items-center justify-center rounded-full bg-bcGovColor-nonClickable">
<div class="flex items-center justify-center">
<UIcon name="i-mdi-text-box-search" class="ms-auto size-8 shrink-0 text-white " />
</div>
</div>
</div>
<div class="mt-4 text-center">
<p class="text-bcGovColor-midGray dark:text-gray-400">
Learn about and try Service BC Connect products
</p>
</div>
<div class="flex grow items-center justify-center px-4 pb-3.5 text-center sm:p-7">
<NuxtLink
:to="localePath('/products')"
class="flex cursor-pointer flex-wrap items-center font-semibold tracking-wide text-[#1a5a96] underline dark:text-white"
>
{{ $t('SbcMainCard.learnMore') }}
</NuxtLink>
</div>
</UCard>
</UContainer>
</div>
</div>
</template>
Loading
Loading