Skip to content

Commit

Permalink
Redesign home
Browse files Browse the repository at this point in the history
  • Loading branch information
lserra-iov committed Apr 29, 2024
1 parent 7faadbe commit 4caa6b9
Show file tree
Hide file tree
Showing 16 changed files with 345 additions and 283 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module.exports = {
}],
'vuejs-accessibility/mouse-events-have-key-events': 'off',
'import/extensions': 'off',
'global-require': 'off',
},
overrides: [
{
Expand Down
19 changes: 12 additions & 7 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<template>
<v-app style="z-index: 0 !important; position: relative;" class="d-flex">
<mobile />
<div class="custom-background">
<top/>
<v-row class="d-flex justify-center ma-0">
<v-app class="h-screen">
<mobile v-if="smAndDown" />
<div class="d-flex flex-column h-100" v-else>
<top />
<div class="flex-grow-1">
<router-view @update:showDialog="showTermsDialog" />
</v-row>
</div>
<terms-dialog v-model:showDialog="showTermsAndConditions" />
<footer-rsk @update:showDialog="showTermsDialog" />
<footer-rsk class="flex-grow-0" @update:showDialog="showTermsDialog" />
</div>
</v-app>
</template>

<script lang="ts">
import { computed, ref } from 'vue';
import Top from '@/common/components/layouts/Top.vue';
Expand All @@ -21,6 +22,7 @@ import { EnvironmentAccessorService } from '@/common/services/enviroment-accesso
import * as constants from '@/common/store/constants';
import { useAction } from '@/common/store/helper';
import { vuetifyNonce } from '@/common/plugins/vuetify';
import { useDisplay } from 'vuetify';
export default {
name: 'App',
Expand All @@ -33,6 +35,7 @@ export default {
setup() {
let scriptTag: HTMLScriptElement;
let hotjarScriptTag: HTMLScriptElement;
const { smAndDown } = useDisplay();
const enableTermsAndConditions = useAction('web3Session', constants.SESSION_ADD_TERMS_AND_CONDITIONS_ENABLED);
const showTermsAndConditions = ref(false);
const contentSecurityPolicy = computed((): string => {
Expand Down Expand Up @@ -93,9 +96,11 @@ export default {
appendHotjar();
appendClarity();
appendCSP();
return {
showTermsDialog,
showTermsAndConditions,
smAndDown,
};
},
};
Expand Down
65 changes: 65 additions & 0 deletions src/assets/arrows-in.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions src/assets/arrows-out.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4caa6b9

Please sign in to comment.