From 276b822fa57c36a2f5592150af7a1f5dbde50720 Mon Sep 17 00:00:00 2001 From: Paolo Arena Date: Thu, 10 Oct 2019 15:52:55 +0200 Subject: [PATCH] - fixed strange things... --- cfg_locale | 1 - src/App.scss | 259 ++++++++++++++-- src/App.ts | 16 +- src/App.vue | 5 + src/components/CImgText/CImgText.ts | 1 + src/components/CImgText/CImgText.vue | 1 + src/components/Footer/Footer.vue | 4 +- .../FormNewsletter/FormNewsletter.vue | 2 +- src/components/Header/Header.scss | 9 + src/components/Header/Header.ts | 18 +- src/components/Header/Header.vue | 6 +- src/db/db_data.js | 6 + src/db/i18n_website.js | 40 ++- src/db/static_data.ts | 233 +++++++++++++- src/layouts/menuone/menuOne.ts | 15 + src/layouts/menuone/menuOne.vue | 10 +- src/model/Calendar.ts | 15 + src/model/GlobalStore.ts | 24 ++ src/model/UserStore.ts | 4 + src/model/index.ts | 3 + src/model/signup-option.ts | 2 + src/root/home/home.scss | 203 +++++++----- src/root/home/home.ts | 6 +- src/root/home/home.vue | 2 + src/router/index.ts | 3 +- src/router/route-config.ts | 292 +----------------- src/statics/i18n.js | 89 +++++- src/store/Modules/ApiTables.ts | 5 +- src/store/Modules/GlobalStore.ts | 11 +- src/store/Modules/Projects.ts | 20 +- .../Modules/Store/calendar/CalendarStore.ts | 142 +++++++-- src/store/Modules/Todos.ts | 8 +- src/store/Modules/UserStore.ts | 93 ++++-- src/store/Modules/costanti.ts | 4 + src/store/Modules/index.ts | 1 + src/store/Modules/tools.ts | 135 +++++++- src/store/Modules/toolsext.ts | 2 +- src/views/login/signin/signin.ts | 50 ++- src/views/login/signup/signup-validate.ts | 6 + src/views/login/signup/signup.ts | 7 +- src/views/login/signup/signup.vue | 32 ++ src/views/projects/proj-list/proj-list.ts | 6 +- src/views/projects/proj-list/proj-list.vue | 2 +- tslint.json | 72 ----- 44 files changed, 1271 insertions(+), 594 deletions(-) delete mode 120000 cfg_locale delete mode 100644 tslint.json diff --git a/cfg_locale b/cfg_locale deleted file mode 120000 index 73cc88f..0000000 --- a/cfg_locale +++ /dev/null @@ -1 +0,0 @@ -cfg_freeplanet.app/ \ No newline at end of file diff --git a/src/App.scss b/src/App.scss index 1e94840..11310ea 100644 --- a/src/App.scss +++ b/src/App.scss @@ -1,3 +1,44 @@ +body { + font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + color: #a7a7a7; + line-height: 1.5; + //font-size: 1rem; +} + +html { + font-size: 100%; // default font size (browser 16) -> (10 62.5%) +} + +p { + font-size: 125%; // default font size (browser 16) -> (10 62.5%) + margin: 0 0 8px; +} + +$grayshadow: #555; + +$graytext: #555; + +$textcol: blue; +$textcol_scuro: darkblue; +$heightBtn: 100%; + +.flex-item { + // background-color: #d5e2eb; + display: flex; + padding: 2px; + margin: 2px; + margin-left: 3px; + margin-right: 3px; + color: #000; + font-size: 1rem; + height: $heightBtn; + line-height: $heightBtn; + vertical-align: middle; + //flex: 0 0 100%; +} + .fade-enter-active, .fade-leave-active { transition: opacity .2s; } @@ -40,7 +81,8 @@ } } -.my-notif-class { + +.my-notif-class{ font-weight: bold; } @@ -53,15 +95,14 @@ .lowperc { color: red; } - .medperc { color: blue; } - .highperc { color: green; } + .hide-if-small { @media (max-width: 600px) { display: none; @@ -74,24 +115,200 @@ } } -.tothebottomfixed { - left: 0; - right: 0; - position: fixed; - z-index: 9999; - box-sizing: border-box; - overflow: hidden; - margin: 0 auto; - bottom: 10px; +.links, .links a { + text-shadow: 1px 1px 1px #555 !important; + // font-weight: bold; + color: cornflowerblue !important; +} +.links:hover { + color: white !important; } -.tothetop { - left: 0; - right: 0; - position: fixed; - z-index: 9999; - box-sizing: border-box; - overflow: hidden; - margin: 0 auto; - top: 20px; +.text-subtitle1 { + font-size: 1.35rem; + font-weight: 400; + line-height: 1.75rem; + text-shadow: .25 .25rem .5rem $grayshadow; + letter-spacing: .00937em; + &.big { + font-size: 1.5rem; + } +} + +.text-subtitle2 { + font-size: 1.15rem; + font-weight: 400; + line-height: 1.75rem; + letter-spacing: .00937em; + text-shadow: .25rem .25rem .5rem $grayshadow; +} + +.text-subtitle3 { + font-size: 1rem; + font-weight: 400; + line-height: 1.75rem; + letter-spacing: .00937em; +} + + +@media (max-width: 718px) { + // PER VERSIONE MOBILE + + p { + font-size: 100%; // default font size (browser 16) -> (10 62.5%) + font-family: "Abyssinica SIL", serif; + text-justify: auto; + margin: 0 0 4px; + } + + .text-subtitle1 { + font-size: 1.25rem; + } + .text-subtitle2 { + font-size: 1rem; + } + .text-subtitle3 { + font-size: 0.75rem; + } + + .cltexth3 { + font-size: 1.25rem; + } + + .text-big{ + font-size: 1.25rem; + } + +} + +.my-card { + width: 100%; + max-width: 350px; + min-width: 300px; + padding: 1rem 1rem; + + box-shadow: none; +} + +.text-trans { + opacity: 0.9; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; + filter: alpha(opacity=90); +} + +.text-spacetrans { + padding: 0 !important; + background: rgba(0,0,0,0.3) !important; + border-radius: 30px !important; +} + +.text-shadow { + text-shadow: .15rem .15rem .15rem $grayshadow; +} + +.citazione{ + font-size: 0.75rem; + font-family: "Lucida Calligraphy", serif; +} + +.cltexth3, .cltexth2, .cltexth4 { + font-size: 1.25rem; + font-weight: 400; + line-height: 1.75rem; + letter-spacing: .01em; + text-align: center !important; +} + +.cltexth4 { + font-size: 1rem; +} + +.cltexth2 { + font-size: 1.5rem; +} + +.boldhigh, .boldop, .text-big{ + font-weight: 500; + text-shadow: .05rem .05rem .05rem $grayshadow; +} +.boldop{ + color: darkblue; +} + +.text-big{ + font-size: 1.5rem; +} + + + +.center_to_image{ + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + width: 100%; + text-align: center; +} + + +.center_img { + display: block; + margin-left: auto; + margin-right: auto; +} + +.padding_cell { + padding: 0.75rem 0.5rem; +} + +@media (max-width: 3000px) { + .q-parallax__media > img { + max-height: 550px !important; + min-width:inherit !important; + min-height: inherit !important; + } +} + +@media (max-width: 1000px) { + .q-parallax__media > img { + max-height: 500px !important; + min-width:inherit !important; + min-height: inherit !important; + } +} + +@media (max-width: 800px) { + .q-parallax__media > img { + max-height: 450px !important; + min-width:inherit !important; + min-height: inherit !important; + } +} + + +@media (max-width: 718px) { + .q-parallax__media > img { + max-height: 450px !important; + min-height: inherit !important; + min-width:100% !important; + } +} + +// preloading images: +@media screen { + div#preloader { + position: absolute; + left: -9999px; + top: -9999px; + } + div#preloader img { + display: block; + } +} +@media print { + div#preloader, + div#preloader img { + visibility: hidden; + display: none; + } } diff --git a/src/App.ts b/src/App.ts index 6602178..479254e 100644 --- a/src/App.ts +++ b/src/App.ts @@ -7,10 +7,14 @@ import { Header } from './components/Header' import globalroutines from './globalroutines/index' import { GlobalStore } from './store/Modules' +import { toolsext } from '@src/store/Modules/toolsext' +import { BannerCookies, CPreloadImages } from '@components' +import { static_data } from '@src/db/static_data' @Component({ components: { - appHeader: Header + appHeader: Header, + BannerCookies, CPreloadImages }, router }) @@ -47,7 +51,7 @@ export default class App extends Vue { // console.log('window.location.href', window.location.href) let chiamaautologin = true - this.listaRoutingNoLogin.forEach(mystr => { + this.listaRoutingNoLogin.forEach((mystr) => { if (window.location.href.includes(mystr)) { chiamaautologin = false } @@ -59,9 +63,9 @@ export default class App extends Vue { .then((loadstorage) => { if (loadstorage) { - if (UserStore.state.lang !== '') { + if (toolsext.getLocale() !== '') { // console.log('SETLOCALE :', this.$i18n.locale) - this.$i18n.locale = UserStore.state.lang // Set Lang + this.$i18n.locale = toolsext.getLocale() // Set Lang } else { UserStore.mutations.setlang(this.$i18n.locale) } @@ -81,5 +85,7 @@ export default class App extends Vue { } - + get static_data() { + return static_data + } } diff --git a/src/App.vue b/src/App.vue index d0403c1..68ecb38 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,6 +5,10 @@ + + + + @@ -12,6 +16,7 @@ +