initial commit
All checks were successful
Generate a build and push to Cloudflare Pages / Build and Deploy to Cloudflare Pages (push) Successful in 1m24s
All checks were successful
Generate a build and push to Cloudflare Pages / Build and Deploy to Cloudflare Pages (push) Successful in 1m24s
This commit is contained in:
@@ -4,9 +4,10 @@ import '@/styles/typography.css'
|
||||
|
||||
import Footer from '@/components/Footer.astro'
|
||||
import Head from '@/components/Head.astro'
|
||||
import Navbar from '@/components/react/navbar'
|
||||
import Navbar from '../components/svelte/Navbar.svelte'
|
||||
import { SITE } from '@/consts'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { ClientRouter } from 'astro:transitions'
|
||||
|
||||
const {
|
||||
isWide = false
|
||||
@@ -16,6 +17,7 @@ const {
|
||||
<!doctype html>
|
||||
<html lang={SITE.locale}>
|
||||
<Head>
|
||||
<ClientRouter />
|
||||
<slot name="head" />
|
||||
<script is:inline src="https://analytics.ahrefs.com/analytics.js" data-key="+FHMgRP7/Duxaq5D0gZtJw" async></script>
|
||||
|
||||
@@ -51,13 +53,13 @@ const {
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="/rss.xml" />
|
||||
</Head>
|
||||
<body>
|
||||
<div class="flex h-fit min-h-screen w-full flex-col gap-y-4 sm:gap-y-6 font-sans">
|
||||
<div class="flex h-fit min-h-screen w-full max-w-full flex-col gap-y-4 sm:gap-y-6 font-sans overflow-x-hidden">
|
||||
<Navbar client:load />
|
||||
<main class="flex grow flex-col bg-background mt-16 lg:mt-6" aria-label="Main content" role="main">
|
||||
<div
|
||||
class={cn(
|
||||
'mx-auto flex grow flex-col gap-y-4 sm:gap-y-6 px-3 py-10 sm:py-16 md:py-20 lg:py-24 sm:px-6 lg:px-8',
|
||||
!isWide && 'max-w-5xl'
|
||||
'mx-auto flex grow flex-col gap-y-4 sm:gap-y-6 w-full',
|
||||
isWide ? 'py-10 sm:py-16 md:py-20 lg:py-24' : 'px-3 py-10 sm:py-16 md:py-20 lg:py-24 sm:px-6 lg:px-8 max-w-5xl'
|
||||
)}
|
||||
>
|
||||
<slot />
|
||||
|
||||
Reference in New Issue
Block a user