From 574d9f57498850febbf5032df1bedef79a1ac31e Mon Sep 17 00:00:00 2001 From: ferrreo Date: Sat, 21 Jan 2023 15:35:15 +0000 Subject: [PATCH] dark by default, fix image loading for the logos, remove unused analytics --- public/assets/images/pika-logo-text-dark.svg | 15 --------------- public/assets/images/pika-logo-text.svg | 15 --------------- public/images/pika-logo-text-dark.svg | 15 --------------- public/images/pika-logo-text.svg | 15 --------------- src/assets/styles/base.css | 12 ------------ src/components/common/Logo.astro | 14 ++++++++++++++ src/components/common/MetaTags.astro | 11 ----------- src/components/common/SplitbeeAnalytics.astro | 6 ------ src/config.mjs | 4 ++-- 9 files changed, 16 insertions(+), 91 deletions(-) delete mode 100644 public/assets/images/pika-logo-text-dark.svg delete mode 100644 public/assets/images/pika-logo-text.svg delete mode 100644 public/images/pika-logo-text-dark.svg delete mode 100644 public/images/pika-logo-text.svg delete mode 100644 src/components/common/SplitbeeAnalytics.astro diff --git a/public/assets/images/pika-logo-text-dark.svg b/public/assets/images/pika-logo-text-dark.svg deleted file mode 100644 index a3d6d14..0000000 --- a/public/assets/images/pika-logo-text-dark.svg +++ /dev/null @@ -1,15 +0,0 @@ - - pika-logo-text-dark-svg - - - - - - - - - - - \ No newline at end of file diff --git a/public/assets/images/pika-logo-text.svg b/public/assets/images/pika-logo-text.svg deleted file mode 100644 index 8d0cd94..0000000 --- a/public/assets/images/pika-logo-text.svg +++ /dev/null @@ -1,15 +0,0 @@ - - pika-logo-text-svg - - - - - - - - - - - \ No newline at end of file diff --git a/public/images/pika-logo-text-dark.svg b/public/images/pika-logo-text-dark.svg deleted file mode 100644 index a3d6d14..0000000 --- a/public/images/pika-logo-text-dark.svg +++ /dev/null @@ -1,15 +0,0 @@ - - pika-logo-text-dark-svg - - - - - - - - - - - \ No newline at end of file diff --git a/public/images/pika-logo-text.svg b/public/images/pika-logo-text.svg deleted file mode 100644 index 8d0cd94..0000000 --- a/public/images/pika-logo-text.svg +++ /dev/null @@ -1,15 +0,0 @@ - - pika-logo-text-svg - - - - - - - - - - - \ No newline at end of file diff --git a/src/assets/styles/base.css b/src/assets/styles/base.css index b37a57c..f76389c 100644 --- a/src/assets/styles/base.css +++ b/src/assets/styles/base.css @@ -41,16 +41,4 @@ [data-aw-toggle-menu].expanded g > path:last-child { @apply rotate-45 translate-y-[-8px] translate-x-[14px]; -} - -.dark .pikalogo { - background-image: url("images/pika-logo-text-dark.svg"); - background-position: center; - background-size: cover; -} - -.pikalogo { - background-image: url("images/pika-logo-text.svg"); - background-position: center; - background-size: cover; } \ No newline at end of file diff --git a/src/components/common/Logo.astro b/src/components/common/Logo.astro index a02ece4..0e88c73 100644 --- a/src/components/common/Logo.astro +++ b/src/components/common/Logo.astro @@ -4,3 +4,17 @@ + + \ No newline at end of file diff --git a/src/components/common/MetaTags.astro b/src/components/common/MetaTags.astro index cc7da0b..4afc99d 100644 --- a/src/components/common/MetaTags.astro +++ b/src/components/common/MetaTags.astro @@ -1,6 +1,5 @@ --- import { AstroSeo } from '@astrolib/seo'; -import { GoogleAnalytics } from '@astrolib/analytics'; import { getImage } from '@astrojs/image'; import { SITE } from '~/config.mjs'; @@ -9,7 +8,6 @@ import { getPermalink, getCanonical } from '~/utils/permalinks'; import { getRelativeUrlByFilePath } from '~/utils/directories'; import Fonts from '~/components/common/Fonts.astro'; -import SplitbeeAnalytics from './SplitbeeAnalytics.astro'; export interface Props extends MetaSEO { dontUseTitleTemplate?: boolean; @@ -84,14 +82,5 @@ const image = - -{SITE.googleSiteVerificationId && } - - -{SITE.googleAnalyticsId && } - -{SITE.splitbeeAnalytics?.enabled && } - - diff --git a/src/components/common/SplitbeeAnalytics.astro b/src/components/common/SplitbeeAnalytics.astro deleted file mode 100644 index b3c349a..0000000 --- a/src/components/common/SplitbeeAnalytics.astro +++ /dev/null @@ -1,6 +0,0 @@ ---- -const { doNotTrack = true, noCookieMode = false, url = 'https://cdn.splitbee.io/sb.js' } = Astro.props; ---- - - - diff --git a/src/config.mjs b/src/config.mjs index d5c1474..eeca02d 100644 --- a/src/config.mjs +++ b/src/config.mjs @@ -11,7 +11,7 @@ const CONFIG = { description: 'PikaOS is a gaming focused linux distribution focussing on ease of use and high compatability. Using the know how from Nobara combined with a Ubuntu base, PikaOS is almost unrivaled in software comaptability.', defaultImage: defaultImage, - defaultTheme: 'system', // Values: "system" | "light" | "dark" | "light:only" | "dark:only" + defaultTheme: 'dark', // Values: "system" | "light" | "dark" | "light:only" | "dark:only" language: 'en', textDirection: 'ltr', @@ -23,7 +23,7 @@ const CONFIG = { timeZone: 'UTC', }), - googleAnalyticsId: false, // or "G-XXXXXXXXXX", + googleAnalyticsId: false, googleSiteVerificationId: false, };