generated from Seekra/repository-template
Compare commits
6 Commits
7bf44ca720
...
946251799b
| Author | SHA1 | Date | |
|---|---|---|---|
|
946251799b
|
|||
|
0ff1e58221
|
|||
|
0f2d503862
|
|||
|
2f59d62e6a
|
|||
|
9dfefdba1c
|
|||
|
8616af132d
|
@@ -15,6 +15,8 @@ limitations under the License.
|
||||
-->
|
||||
|
||||
<script setup>
|
||||
import LanguageSwitchButton from '@/features/i18n/components/LanguageSwitchButton.vue';
|
||||
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
const { t } = useI18n();
|
||||
@@ -36,12 +38,11 @@ const copyrightPeriod =
|
||||
<RouterLink to="settings" class="link">
|
||||
{{ t('preferences.settings') }}
|
||||
</RouterLink>
|
||||
<LanguageSwitchButton />
|
||||
</div>
|
||||
<div class="footer-segment">
|
||||
<div class="copyright-note">
|
||||
© {{ copyrightPeriod }} Seekra
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</template>
|
||||
|
||||
@@ -51,6 +52,9 @@ const copyrightPeriod =
|
||||
}
|
||||
|
||||
.footer-segment {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 32px;
|
||||
padding: var(--padding-y);
|
||||
background-color: var(--light-bg);
|
||||
border-top: 1px solid var(--border);
|
||||
@@ -59,9 +63,4 @@ const copyrightPeriod =
|
||||
.global-footer a {
|
||||
color: var(--dark);
|
||||
}
|
||||
|
||||
.copyright-note {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
</style>
|
||||
@@ -71,7 +71,15 @@ const open = function () {
|
||||
</span>
|
||||
</button>
|
||||
|
||||
<ul v-if="isOpen" ref="languageDropdown" class="language-dropdown" role="listbox">
|
||||
<ul
|
||||
v-if="isOpen"
|
||||
ref="languageDropdown"
|
||||
class="language-dropdown"
|
||||
role="listbox"
|
||||
:style="{
|
||||
bottom: 'calc(var(--offset) + 2 * var(--trigger-padding-y) + 1em)' // easier to add auto adaption to the available space
|
||||
}"
|
||||
>
|
||||
<li
|
||||
v-for="lang in SUPPORTED_LANGUAGES"
|
||||
:key="lang"
|
||||
@@ -88,6 +96,7 @@ const open = function () {
|
||||
|
||||
<style scoped>
|
||||
.language-switch {
|
||||
--trigger-padding-y: 4px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -98,7 +107,7 @@ const open = function () {
|
||||
background: none;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 4px 10px;
|
||||
padding: var(--trigger-padding-y) 10px;
|
||||
cursor: pointer;
|
||||
color: var(--dark);
|
||||
}
|
||||
@@ -118,9 +127,9 @@ const open = function () {
|
||||
}
|
||||
|
||||
.language-dropdown {
|
||||
--offset: 6px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: calc(100% + 6px);
|
||||
background-color: var(--light-bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
|
||||
@@ -18,7 +18,6 @@ limitations under the License.
|
||||
import { ref, watch } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import ColorSchemeButton from '@/features/colorScheme/components/ColorSchemeButton.vue';
|
||||
import LanguageSwitchButton from '@/features/i18n/components/LanguageSwitchButton.vue';
|
||||
import logo from '@/assets/images/logo.svg';
|
||||
import Searchbar from '@/features/search/components/Searchbar.vue';
|
||||
|
||||
@@ -48,9 +47,6 @@ watch(() => route.query.q, q => {
|
||||
auto-submit
|
||||
/>
|
||||
<ul class="right-links">
|
||||
<li>
|
||||
<LanguageSwitchButton />
|
||||
</li>
|
||||
<li>
|
||||
<ColorSchemeButton />
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user