diff --git a/src/components/CCardCarousel/CCardCarousel.scss b/src/components/CCardCarousel/CCardCarousel.scss new file mode 100644 index 0000000..d88f04d --- /dev/null +++ b/src/components/CCardCarousel/CCardCarousel.scss @@ -0,0 +1,12 @@ +.landing__swirl-bg { + background-repeat: no-repeat !important; + background-position: top; + background-size: contain !important; + background-image: url(../../statics/images/landing_first_section.png) !important +} + +.landing__features { + opacity: .9; + font-size: 1rem; + line-height: 1.5; +} diff --git a/src/components/CCardCarousel/CCardCarousel.ts b/src/components/CCardCarousel/CCardCarousel.ts new file mode 100644 index 0000000..5cff49d --- /dev/null +++ b/src/components/CCardCarousel/CCardCarousel.ts @@ -0,0 +1,31 @@ +import Vue from 'vue' +import { Component, Prop, Watch } from 'vue-property-decorator' + +import { tools } from '../../store/Modules/tools' +import { toolsext } from '@src/store/Modules/toolsext' +import { GlobalStore } from '../../store' +import { CCardDiscipline } from '../CCardDiscipline' +import { ICategory } from '../../model' +import MixinBase from '../../mixins/mixin-base' + +@Component({ + name: 'CCardCarousel', + mixins: [MixinBase], + components: { CCardDiscipline } +}) + +export default class CCardCarousel extends Vue { + @Prop({ required: true }) public myarr: [] + + public slidedisc = 0 + + get autoplaydisc() { + return GlobalStore.state.autoplaydisc + } + + set autoplaydisc(value) { + GlobalStore.state.autoplaydisc = value + } + + +} diff --git a/src/components/CCardCarousel/CCardCarousel.vue b/src/components/CCardCarousel/CCardCarousel.vue new file mode 100644 index 0000000..9297d32 --- /dev/null +++ b/src/components/CCardCarousel/CCardCarousel.vue @@ -0,0 +1,91 @@ + + + + + diff --git a/src/components/CCardCarousel/index.ts b/src/components/CCardCarousel/index.ts new file mode 100644 index 0000000..9162173 --- /dev/null +++ b/src/components/CCardCarousel/index.ts @@ -0,0 +1 @@ +export {default as CCardCarousel} from './CCardCarousel.vue' diff --git a/src/components/CMyTeacher/CMyTeacher.scss b/src/components/CMyTeacher/CMyTeacher.scss new file mode 100644 index 0000000..254acd3 --- /dev/null +++ b/src/components/CMyTeacher/CMyTeacher.scss @@ -0,0 +1,92 @@ +$heightBtn: 100%; +$grayshadow: #555; + +.text-subtitle-carica { + font-size: 1rem; + font-weight: 400; + line-height: 1.75rem; + letter-spacing: .00937em; + text-shadow: .1rem .1rem .1rem $grayshadow; +} + +.text-subtitle-certificato { + font-size: 0.75rem; + line-height: 1rem; +} + +@media (max-width: 718px) { + // PER VERSIONE MOBILE + .text-subtitle-carica { + font-size: 1rem; + } +} + +.op { + text-align: center !important; + font-size: 1rem; + font-weight: 400; + line-height: 1.75rem; + letter-spacing: .00937em; + text-shadow: .1rem .1rem .1rem $grayshadow; + + &__cell { + font-size: 1rem; + color: red; + } + + &__email { + font-size: 1rem; + color: #3b5998; + } + + &__email a { + text-decoration: none; + } + + &__facebook a { + font-size: 1rem; + text-decoration: none; + } + + &__storia { + margin-top: 1rem; + margin-bottom: 1rem; + text-align: justify; + } +} + +.myimg { + border-radius: 300px !important; +} + +.q-img { + &__image { + border-radius: 300px !important; + } +} + +.myflex { + display: flex; + flex: 1; +} + +.mybase { + color: black; + font-size: 0.75rem; + font-weight: 400; + line-height: 1.25rem; + letter-spacing: 0.03333em; + + &__teacher { + margin-top: 5px; + + &-content { + color: darkblue; + } + + &-content:hover { + + } + } + +} diff --git a/src/components/CMyTeacher/CMyTeacher.ts b/src/components/CMyTeacher/CMyTeacher.ts new file mode 100644 index 0000000..bbde801 --- /dev/null +++ b/src/components/CMyTeacher/CMyTeacher.ts @@ -0,0 +1,43 @@ +import Vue from 'vue' +import { Component, Prop, Watch } from 'vue-property-decorator' + +import { tools } from '../../store/Modules/tools' +import { GlobalStore, UserStore } from '../../store/Modules' +import { CMyAvatar } from '../CMyAvatar' +import MixinBase from '../../mixins/mixin-base' +import MixinOperator from '../../mixins/mixin-operator' +import MixinUsers from '../../mixins/mixin-users' + + +@Component({ + name: 'CMyTeacher', + mixins: [MixinBase, MixinOperator, MixinUsers], + components: { CMyAvatar } +}) + +export default class CMyTeacher extends MixinOperator { + @Prop({ required: true, default: '' }) public username + + public showuserdetails = false + public autoplaydiscsaved: number + public tab: string = 'one' + + @Watch('showuserdetails') + public changeshowuserdetails() { + if (!this.showuserdetails) { + GlobalStore.state.autoplaydisc = this.autoplaydiscsaved + } + } + + public executeclick(event) { + console.log('executeclick') + this.showuserdetails = true + + this.autoplaydiscsaved = GlobalStore.state.autoplaydisc + GlobalStore.state.autoplaydisc = 0 + } + + get myop() { + return this.getOperatorByUsername(this.username) + } +} diff --git a/src/components/CMyTeacher/CMyTeacher.vue b/src/components/CMyTeacher/CMyTeacher.vue new file mode 100644 index 0000000..ff600e8 --- /dev/null +++ b/src/components/CMyTeacher/CMyTeacher.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/src/components/CMyTeacher/index.ts b/src/components/CMyTeacher/index.ts new file mode 100644 index 0000000..6da701e --- /dev/null +++ b/src/components/CMyTeacher/index.ts @@ -0,0 +1 @@ +export {default as CMyTeacher} from './CMyTeacher.vue'