feat: add LanguageButton component
This commit is contained in:
parent
b3a288e281
commit
20c7a512ed
1 changed files with 22 additions and 0 deletions
22
src/components/LanguageButton.vue
Normal file
22
src/components/LanguageButton.vue
Normal file
|
@ -0,0 +1,22 @@
|
|||
<template>
|
||||
<div class="lang-button">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss">
|
||||
.lang-button {
|
||||
position: fixed;
|
||||
inset: 1rem 1rem auto auto;
|
||||
display: block;
|
||||
max-height: 2.5rem;
|
||||
min-width: 3.5rem;
|
||||
z-index: 9001;
|
||||
color: var(--color-text);
|
||||
cursor: pointer;
|
||||
|
||||
svg {
|
||||
fill: var(--color-text);
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue