Use the giteex icon for git.djeex.fr links #5
No files matched your search
+1
-1
@@ -25,7 +25,7 @@ export default defineAppConfig({
|
||||
title: 'Other dumb things',
|
||||
links: [
|
||||
{
|
||||
icon: 'i-cib-gitea',
|
||||
icon: 'i-brand-giteex',
|
||||
label: 'git.djeex.fr',
|
||||
to: 'https://git.djeex.fr',
|
||||
target: '_blank',
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg id="Calque_1" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 999 999">
|
||||
<defs>
|
||||
<style>
|
||||
.cls-1 {
|
||||
fill: #fff;
|
||||
}
|
||||
|
||||
.cls-2 {
|
||||
fill: url(#Nouvelle_nuance_de_dégradé_1);
|
||||
}
|
||||
</style>
|
||||
<linearGradient id="Nouvelle_nuance_de_dégradé_1" data-name="Nouvelle nuance de dégradé 1" x1="283.77" y1="508.05" x2="812.03" y2="508.05" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" stop-color="#57c3ed"/>
|
||||
<stop offset="1" stop-color="#2072b9" stop-opacity=".8"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="Calque_1-2" data-name="Calque 1">
|
||||
<circle class="cls-1" cx="499.5" cy="499.5" r="499.5"/>
|
||||
</g>
|
||||
<path class="cls-2" d="M706.38,244.33c-58.61,0-105.65,47.05-105.65,105.65,0,38.8,21.46,72.64,52.82,90.8v14.86c0,52.82-52.82,105.65-105.65,105.65-43.75,0-78.42,9.08-105.65,23.94v-250.1c31.36-18.16,52.82-52.01,52.82-90.8,0-58.6-47.05-105.65-105.65-105.65s-105.65,47.05-105.65,105.65c0,38.79,21.46,72.64,52.82,90.8v345.84c-31.36,18.16-52.82,52.01-52.82,90.8,0,58.6,47.04,105.65,105.65,105.65s105.65-47.05,105.65-105.65c0-28.06-10.73-52.83-28.06-71.81,15.68-18.99,40.44-33.84,80.89-33.84,105.65,0,211.3-105.66,211.3-211.31v-14.86c31.37-18.16,52.83-52,52.83-90.79,0-58.61-47.05-105.66-105.65-105.66V244.33ZM389.42,191.5c28.89,0,52.83,23.94,52.83,52.83s-23.94,52.83-52.83,52.83-52.83-23.94-52.83-52.83S360.53,191.5,389.42,191.5ZM389.42,825.42c-28.89,0-52.83-23.94-52.83-52.83s23.94-52.82,52.83-52.82,52.83,23.94,52.83,52.82S418.31,825.42,389.42,825.42ZM706.38,402.81c-28.89,0-52.83-23.94-52.83-52.83s23.94-52.82,52.83-52.82,52.82,23.93,52.82,52.82S735.27,402.81,706.38,402.81Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,56 @@
|
||||
<script setup lang="ts">
|
||||
const appConfig = useAppConfig()
|
||||
const { forced: forcedColorMode } = useDocusColorMode()
|
||||
|
||||
interface FooterLink {
|
||||
'icon': string
|
||||
'to': string
|
||||
'target': '_blank'
|
||||
'aria-label': string
|
||||
}
|
||||
|
||||
// Override of Docus's AppFooterRight: it builds `i-simple-icons-<key>` from
|
||||
// `socials`, which would show the Gitea logo for git.djeex.fr. Keys listed
|
||||
// here use our own icon instead.
|
||||
const socialIcons: Record<string, string> = {
|
||||
gitea: 'i-brand-giteex',
|
||||
}
|
||||
|
||||
const links = computed<FooterLink[]>(() => {
|
||||
const socialLinks = Object.entries(appConfig.socials || {}).flatMap(([key, url]) => {
|
||||
if (typeof url !== 'string' || !url) {
|
||||
return []
|
||||
}
|
||||
|
||||
return [{
|
||||
'icon': socialIcons[key] ?? `i-simple-icons-${key}`,
|
||||
'to': url,
|
||||
'target': '_blank' as const,
|
||||
'aria-label': `${key} social link`,
|
||||
}]
|
||||
})
|
||||
|
||||
const githubLink = appConfig.github && appConfig.github.url
|
||||
? [{
|
||||
'icon': 'i-simple-icons-github',
|
||||
'to': appConfig.github.url,
|
||||
'target': '_blank' as const,
|
||||
'aria-label': 'GitHub repository',
|
||||
}]
|
||||
: []
|
||||
|
||||
return [...socialLinks, ...githubLink]
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<template v-if="links.length">
|
||||
<UButton
|
||||
v-for="(link, index) of links"
|
||||
:key="index"
|
||||
size="sm"
|
||||
v-bind="{ color: 'neutral', variant: 'ghost', ...link }"
|
||||
/>
|
||||
</template>
|
||||
<UColorModeButton v-if="!forcedColorMode" />
|
||||
</template>
|
||||
@@ -10,7 +10,7 @@ const links = computed(() => {
|
||||
const list = []
|
||||
if (appConfig.socials?.gitea) {
|
||||
list.push({
|
||||
'icon': 'i-simple-icons-gitea',
|
||||
'icon': 'i-brand-giteex',
|
||||
'to': appConfig.socials.gitea,
|
||||
'target': '_blank',
|
||||
'aria-label': 'Gitea',
|
||||
|
||||
@@ -44,7 +44,7 @@ That’s how **Lum[eex]{style="color: #1ad6ff"}** was born.
|
||||
Check out the doc
|
||||
::
|
||||
|
||||
::card{icon="i-simple-icons-gitea" title="Repository" to="https://git.djeex.fr/Djeex/lumeex" target="_blank"}
|
||||
::card{icon="i-brand-giteex" title="Repository" to="https://git.djeex.fr/Djeex/lumeex" target="_blank"}
|
||||
See the repo
|
||||
::
|
||||
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ Set up my homelab →
|
||||
|
||||
:::::card
|
||||
---
|
||||
icon: i-cib-gitea
|
||||
icon: i-brand-giteex
|
||||
title: git.djeex.fr
|
||||
to: https://git.djeex.fr
|
||||
target: _blank
|
||||
|
||||
@@ -44,7 +44,7 @@ C'est ainsi qu'est né **Lum[eex]{style="color: #1ad6ff"}**.
|
||||
Accéder à la doc
|
||||
::
|
||||
|
||||
::card{icon="i-simple-icons-gitea" title="Repository" to="https://git.djeex.fr/Djeex/lumeex" target="_blank"}
|
||||
::card{icon="i-brand-giteex" title="Repository" to="https://git.djeex.fr/Djeex/lumeex" target="_blank"}
|
||||
Voir le repo
|
||||
::
|
||||
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ Démarrer mon homelab →
|
||||
|
||||
:::::card
|
||||
---
|
||||
icon: i-cib-gitea
|
||||
icon: i-brand-giteex
|
||||
title: git.djeex.fr
|
||||
to: https://git.djeex.fr
|
||||
target: _blank
|
||||
|
||||
Reference in new issue
Block a user