mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-04-06 01:25:38 +00:00
56 lines
936 B
Vue
56 lines
936 B
Vue
<template>
|
|
<component
|
|
:is="tag"
|
|
class="ds-logo"
|
|
:class="[inverse && 'ds-logo-inverse']"
|
|
>
|
|
<svg-logo
|
|
v-if="!inverse"
|
|
class="ds-logo-svg"
|
|
/>
|
|
<svg-logo-inverse
|
|
v-else
|
|
class="ds-logo-svg"
|
|
/>
|
|
</component>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
|
|
import svgLogo from '@@/assets/img/Logo-Horizontal.svg'
|
|
import svgLogoInverse from '@@/assets/img/Logo-Horizontal-Dark.svg'
|
|
/**
|
|
* This component displays the brand's logo.
|
|
* @version 1.0.0
|
|
*/
|
|
export default defineComponent({
|
|
name: 'DsLogo',
|
|
|
|
components: {
|
|
svgLogo,
|
|
svgLogoInverse
|
|
},
|
|
|
|
props: {
|
|
/**
|
|
* Inverse the logo
|
|
*/
|
|
inverse: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
/**
|
|
* The html element name used for the logo.
|
|
*/
|
|
tag: {
|
|
type: String,
|
|
default: 'div'
|
|
}
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" src="./style.scss">
|
|
</style>
|