From 37d99e1a53e33a9c947e9c0038142573f63cb692 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Sat, 21 Dec 2024 01:55:29 +0100 Subject: [PATCH] refactor(about): [WIP] add 2-up and 3-up card layouts --- front/src/components/About.vue | 67 +++++++++++++++++----------- front/src/style/colors.scss | 2 +- front/src/ui/App.vue | 4 +- front/src/ui/layouts/constrained.vue | 4 +- 4 files changed, 45 insertions(+), 32 deletions(-) diff --git a/front/src/components/About.vue b/front/src/components/About.vue index e448118a4..e98d0333e 100644 --- a/front/src/components/About.vue +++ b/front/src/components/About.vue @@ -12,6 +12,8 @@ import useMarkdown from '~/composables/useMarkdown' import Link from './ui/Link.vue' import Card from './ui/Card.vue' +import Button from './ui/Button.vue' +import Layout from './ui/Layout.vue' const store = useStore() const nodeinfo = computed(() => store.state.instance.nodeinfo) @@ -21,7 +23,10 @@ const labels = computed(() => ({ title: t('components.About.title') })) -const podName = computed(() => get(nodeinfo.value, 'metadata.nodeName') ?? 'Funkwhale') +const podName = computed(() => (n => n === "" ? "No name" : n ?? 'Funkwhale')(get(nodeinfo.value, 'metadata.nodeName'))) + +console.log(podName) + const banner = computed(() => get(nodeinfo.value, 'metadata.banner')) const shortDescription = computed(() => get(nodeinfo.value, 'metadata.shortDescription')) @@ -80,14 +85,14 @@ const federationEnabled = computed(() => {