-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jlpereira
committed
Mar 17, 2025
1 parent
163fdbe
commit 6e17b28
Showing
16 changed files
with
108 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
<button | ||
type="button" | ||
:class="[ | ||
'tp-button', | ||
'px-3', | ||
'py-1', | ||
'hover:bg-opacity-80', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
<template> | ||
<div class="border-1 card border-base-muted bg-base-foreground print:shadow-none print:border-0 rounded"> | ||
<div | ||
class="border-1 tp-card border-base-muted bg-base-foreground print:shadow-none print:border-0 rounded" | ||
> | ||
<slot /> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
.card { | ||
box-shadow: rgba(30,41,59,.04) 0 2px 4px 0; | ||
border: 1px solid rgba(98,105,118,.16); | ||
transition: transform .3s ease-out,opacity .3s ease-out,box-shadow .3s ease-out; | ||
.tp-card { | ||
box-shadow: rgba(30, 41, 59, 0.04) 0 2px 4px 0; | ||
border: 1px solid rgba(98, 105, 118, 0.16); | ||
transition: transform 0.3s ease-out, opacity 0.3s ease-out, | ||
box-shadow 0.3s ease-out; | ||
} | ||
</style> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<template> | ||
<div class="p-4 pl-5 pr-5"> | ||
<div class="p-4 pl-5 pr-5 tp-card-content"> | ||
<slot /> | ||
</div> | ||
</template> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<template> | ||
<div class="p-4 pl-5 pr-5 border-b font-medium border-base-muted"> | ||
<div | ||
class="tp-card-header p-4 pl-5 pr-5 border-b font-medium border-base-muted" | ||
> | ||
<slot /> | ||
</div> | ||
</template> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<template> | ||
<div class="tp-footer-citation pt-4 pb-2 break-words"> | ||
{{ project_authors }} | ||
<ClientOnly> | ||
<span v-html="store.nextAuthor" /> | ||
</ClientOnly> | ||
{{ project_citation }}. | ||
<ClientOnly> | ||
<span>Retrieved on {{ currentDate }}</span> | ||
</ClientOnly> | ||
<span v-if="currentUrl"> | ||
at | ||
<a | ||
class="text-secondary-color" | ||
:href="currentUrl" | ||
> | ||
{{ currentUrl }} | ||
</a> | ||
</span> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { computed } from 'vue' | ||
import { useRoute } from 'vue-router' | ||
import { useFooterStore } from '@/store' | ||
const { project_authors, project_citation, project_url, hash_mode } = | ||
__APP_ENV__ | ||
const store = useFooterStore() | ||
const currentDate = new Date().toISOString().split('T')[0] | ||
const route = useRoute() | ||
const currentUrl = computed(() => { | ||
const projectUrl = (project_url || '').replace(/\/$/, '') | ||
if (!projectUrl.length) { | ||
return '' | ||
} | ||
return hash_mode | ||
? projectUrl + '/#' + route.fullPath | ||
: projectUrl + route.fullPath | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<div class="tp-footer-copyright flex items-center text-xs gap-2"> | ||
<component | ||
:is="copyright_image_link ? 'a' : 'span'" | ||
:href="copyright_image_link" | ||
class="min-w-fit" | ||
> | ||
<img | ||
v-if="copyright_image" | ||
:src="copyright_image" | ||
alt="copyright" | ||
/> | ||
</component> | ||
<span>{{ copyright_text }}</span> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
const { copyright_image, copyright_image_link, copyright_text } = __APP_ENV__ | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<template> | ||
<ul class="inline-flex items-center space-x-1 md:space-x-3"> | ||
<ul class="tp-tab-list inline-flex items-center space-x-1 md:space-x-3"> | ||
<slot /> | ||
</ul> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters