dark by default, fix image loading for the logos, remove unused analytics

This commit is contained in:
ferrreo 2023-01-21 15:35:15 +00:00
parent b034549e61
commit 574d9f5749
9 changed files with 16 additions and 91 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 24 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 23 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 24 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 23 KiB

View File

@ -41,16 +41,4 @@
[data-aw-toggle-menu].expanded g > path:last-child { [data-aw-toggle-menu].expanded g > path:last-child {
@apply rotate-45 translate-y-[-8px] translate-x-[14px]; @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;
} }

View File

@ -4,3 +4,17 @@
<span class="self-center w-60 h-10 pikalogo"> <span class="self-center w-60 h-10 pikalogo">
</span </span
> >
<style>
.dark .pikalogo {
background-image: url("../../assets/images/pika-logo-text-dark.svg");
background-position: center;
background-size: cover;
}
.pikalogo {
background-image: url("../../assets/images/pika-logo-text.svg");
background-position: center;
background-size: cover;
}
</style>

View File

@ -1,6 +1,5 @@
--- ---
import { AstroSeo } from '@astrolib/seo'; import { AstroSeo } from '@astrolib/seo';
import { GoogleAnalytics } from '@astrolib/analytics';
import { getImage } from '@astrojs/image'; import { getImage } from '@astrojs/image';
import { SITE } from '~/config.mjs'; import { SITE } from '~/config.mjs';
@ -9,7 +8,6 @@ import { getPermalink, getCanonical } from '~/utils/permalinks';
import { getRelativeUrlByFilePath } from '~/utils/directories'; import { getRelativeUrlByFilePath } from '~/utils/directories';
import Fonts from '~/components/common/Fonts.astro'; import Fonts from '~/components/common/Fonts.astro';
import SplitbeeAnalytics from './SplitbeeAnalytics.astro';
export interface Props extends MetaSEO { export interface Props extends MetaSEO {
dontUseTitleTemplate?: boolean; dontUseTitleTemplate?: boolean;
@ -84,14 +82,5 @@ const image =
<Fonts /> <Fonts />
<!-- Google Site Verification -->
{SITE.googleSiteVerificationId && <meta name="google-site-verification" content={SITE.googleSiteVerificationId} />}
<!-- Google Analytics -->
{SITE.googleAnalyticsId && <GoogleAnalytics id={String(SITE.googleAnalyticsId)} partytown={true} />}
{SITE.splitbeeAnalytics?.enabled && <SplitbeeAnalytics {...SITE.splitbeeAnalytics} />}
<link rel="shortcut icon" href={getPermalink('/favicon.ico')} />
<link rel="icon" type="image/svg+xml" href={getPermalink('/favicon.svg')} /> <link rel="icon" type="image/svg+xml" href={getPermalink('/favicon.svg')} />
<link rel="mask-icon" href={getPermalink('/favicon.svg')} color="#8D46E7" /> <link rel="mask-icon" href={getPermalink('/favicon.svg')} color="#8D46E7" />

View File

@ -1,6 +0,0 @@
---
const { doNotTrack = true, noCookieMode = false, url = 'https://cdn.splitbee.io/sb.js' } = Astro.props;
---
<!-- Splitbee Analytics -->
<script data-respect-dnt={doNotTrack} data-no-cookie={noCookieMode} async src={url}></script>

View File

@ -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.', 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, defaultImage: defaultImage,
defaultTheme: 'system', // Values: "system" | "light" | "dark" | "light:only" | "dark:only" defaultTheme: 'dark', // Values: "system" | "light" | "dark" | "light:only" | "dark:only"
language: 'en', language: 'en',
textDirection: 'ltr', textDirection: 'ltr',
@ -23,7 +23,7 @@ const CONFIG = {
timeZone: 'UTC', timeZone: 'UTC',
}), }),
googleAnalyticsId: false, // or "G-XXXXXXXXXX", googleAnalyticsId: false,
googleSiteVerificationId: false, googleSiteVerificationId: false,
}; };