fix(site): move legacy banner to base layout and fix mobile text size (#855)

This commit is contained in:
Darius Cepulis
2026-03-10 12:00:09 -05:00
committed by GitHub
parent 15d1a66bda
commit bfea1e7fd2
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
+2
View File
@@ -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>
-2
View File
@@ -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",