mirror of
https://github.com/gogrlx/docs.grlx.dev.git
synced 2026-04-16 18:24:52 -07:00
added Prettier, Tailwind, styling, branding, sitemap, tracking
This commit is contained in:
35
src/components/AdatomicFooter.astro
Normal file
35
src/components/AdatomicFooter.astro
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
import type { Props } from '@astrojs/starlight/props'
|
||||
import Default from '@astrojs/starlight/components/Footer.astro'
|
||||
import { Image } from 'astro:assets'
|
||||
import adatomicLogoBlack from '../assets/adatomic-logotype-color-black-h-1200x302.webp'
|
||||
import adatomicLogoWhite from '../assets/adatomic-logotype-color-white-h-1200x302.webp'
|
||||
|
||||
const isHomepage = Astro.props.slug === ''
|
||||
---
|
||||
|
||||
{
|
||||
isHomepage ? (
|
||||
<footer>
|
||||
<a href="https://adatomic-com.onrender.com/">
|
||||
<Image
|
||||
class="dark:hidden"
|
||||
width="280"
|
||||
src={adatomicLogoBlack}
|
||||
alt="ADAtomic logo"
|
||||
/>
|
||||
<Image
|
||||
class="hidden dark:inline"
|
||||
width="280"
|
||||
src={adatomicLogoWhite}
|
||||
alt="ADAtomic logo"
|
||||
/>
|
||||
</a>
|
||||
<p>© 2023 ADAtomic, Inc. All rights reserved.</p>
|
||||
</footer>
|
||||
) : (
|
||||
<Default {...Astro.props}>
|
||||
<slot />
|
||||
</Default>
|
||||
)
|
||||
}
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
import type { Props } from '@astro/starlight/props';
|
||||
import type { Props } from '@astro/starlight/props'
|
||||
import Default from '@astrojs/starlight/components/Head.astro'
|
||||
import { ViewTransitions } from 'astro:transitions';
|
||||
import { ViewTransitions } from 'astro:transitions'
|
||||
---
|
||||
|
||||
<ViewTransitions />
|
||||
<Default {...Astro.props}><slot /><</Default>
|
||||
|
||||
Reference in New Issue
Block a user