Skip to content

Commit

Permalink
Fix bugs, improve layout on Canada.ca template
Browse files Browse the repository at this point in the history
  • Loading branch information
gordlin committed Jan 21, 2025
1 parent 6c1da78 commit ae00481
Show file tree
Hide file tree
Showing 2 changed files with 414 additions and 354 deletions.
42 changes: 41 additions & 1 deletion src/app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<template>
<div id="app" class="storyramp-app bg-white">
<div
id="app"
class="storyramp-app bg-white"
:class="{
'canada-ca-site': currentPath.includes('index-ca-en.html') || currentPath.includes('index-ca-fr.html')
}"
>
<router-view :key="$route.path"></router-view>
</div>
</template>
Expand All @@ -11,6 +17,8 @@ import { useUserStore } from './stores/userStore';
import { useLockStore } from './stores/lockStore';
export default class App extends Vue {
currentPath = window.location.href;
@Watch('$route', { immediate: true })
onRouteUpdate(to: RouteLocationNormalized): void {
this.$i18n.locale = (to.params.lang as string) ?? 'en';
Expand Down Expand Up @@ -75,4 +83,36 @@ body {
}
}
}
// Making the margins align with the canada.ca template
.canada-ca-site {
width: 1536px;
max-width: 100%;
justify-self: center;
}
@media only screen and (max-width: 1535px) {
.canada-ca-site {
width: 1280px;
}
}
@media only screen and (max-width: 1279px) {
.canada-ca-site {
width: 1024px;
}
}
@media only screen and (max-width: 1024px) {
.canada-ca-site {
width: 768px;
}
}
@media only screen and (max-width: 767px) {
.canada-ca-site {
width: 640px;
}
}
</style>
Loading

0 comments on commit ae00481

Please sign in to comment.