Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/commons/HeaderNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
variant="light"
class="mb-3"
>
<BNavbarToggle target="nav-collapse" />
<BNavbarBrand href="#/config"
><img style="width: 35px" :src="imgUrl" />
{{ $t('title') }}</BNavbarBrand
>
<BNavbarToggle target="nav-collapse" />

<BCollapse id="nav-collapse" is-nav>
<ShareButton></ShareButton>

<BNavbarNav class="ms-auto mb-2 mb-lg-0">
<BNavForm class="d-flex" right>
<LanguageSwitch></LanguageSwitch>
Expand Down
25 changes: 5 additions & 20 deletions src/components/commons/ShareButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,12 @@
</script>

<template>
<div class="row justify-content-center p-3">
<div
class="col-12 col-lg-12 col-md-6 d-flex justify-content-center align-items-center"
>
<label for="shareButton" class="mb-0 me-2 fw-bold">{{
$t('shareDiscover')
}}</label>
<button
class="btn btn-outline-secondary"
id="shareButton"
@click="copy"
>
<div v-if="copied">
<i class="bi bi-check2-circle"></i> {{ $t('copied') }}!
</div>
<div v-else>
<i class="bi bi-link-45deg"></i> {{ $t('copy') }}
</div>
</button>
<button class="btn btn-outline-secondary" id="shareButton" @click="copy">
<div v-if="copied">
<i class="bi bi-check2-circle"></i> {{ $t('copied') }}!
</div>
</div>
<div v-else><i class="bi bi-link-45deg"></i> {{ $t('share') }}</div>
</button>
</template>

<style>
Expand Down