First Committ
This commit is contained in:
1
src/components/testpao/index.ts
Executable file
1
src/components/testpao/index.ts
Executable file
@@ -0,0 +1 @@
|
||||
export { default as TestPao } from './testpao.vue'
|
||||
39
src/components/testpao/testpao.scss
Executable file
39
src/components/testpao/testpao.scss
Executable file
@@ -0,0 +1,39 @@
|
||||
|
||||
.svgclass {
|
||||
color: white;
|
||||
transform: translateY(0px);
|
||||
|
||||
}
|
||||
|
||||
|
||||
.svgclass_animate {
|
||||
transform: translateY(-70px);
|
||||
color: red;
|
||||
}
|
||||
|
||||
#sun {
|
||||
animation: gravity 5s infinite;
|
||||
|
||||
}
|
||||
|
||||
#logoimg {
|
||||
height: 50px;
|
||||
width: auto;
|
||||
@media screen and (max-width: 600px) {
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes gravity {
|
||||
0% {
|
||||
transform: rotateY(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotateY(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
#smile {
|
||||
opacity: 0.1 !important;
|
||||
fill: red;
|
||||
}
|
||||
|
||||
41
src/components/testpao/testpao.ts
Executable file
41
src/components/testpao/testpao.ts
Executable file
@@ -0,0 +1,41 @@
|
||||
import {
|
||||
defineComponent,
|
||||
} from 'vue'
|
||||
import { tools } from '@src/store/Modules/tools'
|
||||
import { static_data } from '@src/db/static_data'
|
||||
|
||||
import { useQuasar } from 'quasar'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { FormNewsletter } from '../FormNewsletter'
|
||||
import { MixinBase } from '../../mixins/mixin-base'
|
||||
import { Logo } from '../logo'
|
||||
import { useI18n } from '@src/boot/i18n'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'TestPao',
|
||||
mixins: [MixinBase],
|
||||
components: { Logo, FormNewsletter },
|
||||
props: {
|
||||
mystyle: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
|
||||
setup() {
|
||||
function logoimg() {
|
||||
return `${tools.getimglogo()}`
|
||||
}
|
||||
|
||||
function logoalt() {
|
||||
const { t } = useI18n();
|
||||
return t('ws.sitename')
|
||||
}
|
||||
|
||||
return {
|
||||
logoimg,
|
||||
logoalt,
|
||||
}
|
||||
},
|
||||
})
|
||||
11
src/components/testpao/testpao.vue
Executable file
11
src/components/testpao/testpao.vue
Executable file
@@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<div id="logo">
|
||||
<img id="logoimg" :alt="logoalt()" :src=logoimg() :style="mystyle">
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" src="./testpao.ts">
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './testpao.scss';
|
||||
</style>
|
||||
Reference in New Issue
Block a user