mirror of
				https://github.com/Xahau/xahau-web.git
				synced 2025-11-04 12:15:49 +00:00 
			
		
		
		
	use @view-transition instead ClientRouter
				
					
				
			This commit is contained in:
		@@ -1,5 +1,4 @@
 | 
			
		||||
---
 | 
			
		||||
import { ClientRouter } from 'astro:transitions'
 | 
			
		||||
import CookieConsent from '../components/CookieConsent.astro'
 | 
			
		||||
import Footer from '../components/Footer.astro'
 | 
			
		||||
import Header from '../components/Header.jsx'
 | 
			
		||||
@@ -18,7 +17,6 @@ const description = Astro.props.frontmatter?.description
 | 
			
		||||
    <link rel="shortcut icon" href="/favicon.svg" type="image/svg+xml">
 | 
			
		||||
    <meta charset="UTF-8" />
 | 
			
		||||
    <title>{title}</title>
 | 
			
		||||
    <ClientRouter />
 | 
			
		||||
    <meta name="description" content={description} />
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
 | 
			
		||||
    <link href="https://fonts.googleapis.com/css2?family=Onest:wght@400;700&display=swap" rel="stylesheet" />
 | 
			
		||||
@@ -39,7 +37,7 @@ const description = Astro.props.frontmatter?.description
 | 
			
		||||
 | 
			
		||||
  </head>
 | 
			
		||||
  <body class="font-[Onest] bg-xahau-background min-h-screen flex flex-col">
 | 
			
		||||
    <Header client:only="react" url={Astro.url} />
 | 
			
		||||
    <Header client:load url={Astro.url} />
 | 
			
		||||
    <slot />
 | 
			
		||||
    <Footer />
 | 
			
		||||
    <CookieConsent />
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,5 @@
 | 
			
		||||
---
 | 
			
		||||
import '../styles/docs.css'
 | 
			
		||||
import { ClientRouter } from 'astro:transitions'
 | 
			
		||||
import CookieConsent from '../components/CookieConsent.astro'
 | 
			
		||||
import DocsMobileMenuToggle from '../components/DocsMobileMenuToggle.astro'
 | 
			
		||||
import Footer from '../components/Footer.astro'
 | 
			
		||||
@@ -10,8 +9,7 @@ const { hasSidebar } = Astro.locals.starlightRoute
 | 
			
		||||
---
 | 
			
		||||
<link href="https://fonts.googleapis.com/css2?family=Onest:wght@400;700&display=swap" rel="stylesheet" />
 | 
			
		||||
<div class="font-[Onest] bg-xahau-background min-h-screen flex flex-col">
 | 
			
		||||
  <ClientRouter/>
 | 
			
		||||
  <Header client:only="react" url={Astro.url} />
 | 
			
		||||
  <Header client:load url={Astro.url} />
 | 
			
		||||
  <div class="page-content flex-1 container mx-auto p-6">
 | 
			
		||||
    <div class="grid grid-cols-1 md:grid-cols-5 gap-4">
 | 
			
		||||
      <div>
 | 
			
		||||
 
 | 
			
		||||
@@ -17,3 +17,10 @@ footer {
 | 
			
		||||
* {
 | 
			
		||||
  -webkit-font-smoothing: antialiased;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media (prefers-reduced-motion: no-preference) {
 | 
			
		||||
  @view-transition {
 | 
			
		||||
    /* biome-ignore lint: noUnknownProperty */
 | 
			
		||||
    navigation: auto;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user