mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 13:48:14 +00:00
fix(site): move legacy banner to base layout and fix mobile text size (#855)
This commit is contained in:
@@ -6,7 +6,7 @@ import { BANNER_DISMISS_KEY } from '@/consts';
|
||||
data-legacy-banner
|
||||
class:list={[
|
||||
"banner-dismissed:hidden",
|
||||
"flex items-center justify-center gap-2 px-5 py-2 text-p2",
|
||||
"flex items-center justify-center gap-2 px-5 py-2 text-p3 md:text-p2",
|
||||
"border-b border-manila-75 bg-manila-50 text-faded-black",
|
||||
"dark:border-soot dark:bg-warm-gray dark:text-manila-light",
|
||||
]}
|
||||
@@ -17,7 +17,7 @@ import { BANNER_DISMISS_KEY } from '@/consts';
|
||||
href="https://legacy.videojs.org"
|
||||
class="font-bold underline intent:no-underline"
|
||||
>
|
||||
Visit the legacy docs
|
||||
Visit legacy.videojs.org
|
||||
</a>
|
||||
</p>
|
||||
<button
|
||||
|
||||
@@ -8,6 +8,7 @@ import '@/styles/globals.css';
|
||||
|
||||
import BannerInit from '@/components/BannerInit.astro';
|
||||
import { PreferenceSync } from '@/components/docs/PreferenceSync';
|
||||
import LegacyBanner from '@/components/LegacyBanner.astro';
|
||||
import ThemeInit from '@/components/ThemeInit.astro';
|
||||
|
||||
interface Props {
|
||||
@@ -155,6 +156,7 @@ const fullTitle =
|
||||
>
|
||||
<PreferenceSync client:idle />
|
||||
|
||||
<LegacyBanner />
|
||||
<slot />
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -8,7 +8,6 @@ import StyleInit from '@/components/docs/StyleInit.astro';
|
||||
import FilmGrain from '@/components/FilmGrain';
|
||||
import Footer from '@/components/FooterDocs.astro';
|
||||
import FooterEasterEgg from '@/components/FooterEasterEgg.astro';
|
||||
import LegacyBanner from '@/components/LegacyBanner.astro';
|
||||
import NavBarDocs from '@/components/NavBar/NavBarDocs.astro';
|
||||
import { FRAMEWORK_LABELS, type SupportedFramework } from '@/types/docs';
|
||||
import { getDocTitle } from '@/utils/docs/title';
|
||||
@@ -42,7 +41,6 @@ const docsSidebarId = 'docs-sidebar';
|
||||
<DocsSidebarRestoration docsSidebarId={docsSidebarId} />
|
||||
<slot name="head" slot="head" />
|
||||
</Fragment>
|
||||
<LegacyBanner />
|
||||
<div
|
||||
class:list={[
|
||||
"grid min-h-screen grid-cols-1",
|
||||
|
||||
Reference in New Issue
Block a user