style(web): biome — drop redundant role, format banner files

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Marco Sadjadi 2026-05-21 18:57:49 +02:00
parent 390cf5e8a1
commit cd428d5ba3
2 changed files with 11 additions and 10 deletions

View File

@ -1,7 +1,7 @@
import type { Metadata } from 'next';
import { GeistSans } from 'geist/font/sans';
import { GeistMono } from 'geist/font/mono';
import { SiteBanner } from '@/components/site-banner'; import { SiteBanner } from '@/components/site-banner';
import { GeistMono } from 'geist/font/mono';
import { GeistSans } from 'geist/font/sans';
import type { Metadata } from 'next';
import './globals.css'; import './globals.css';
export const metadata: Metadata = { export const metadata: Metadata = {
@ -13,7 +13,11 @@ export const metadata: Metadata = {
export default function RootLayout({ children }: { children: React.ReactNode }) { export default function RootLayout({ children }: { children: React.ReactNode }) {
return ( return (
<html lang="en" className={`${GeistSans.variable} ${GeistMono.variable}`} suppressHydrationWarning> <html
lang="en"
className={`${GeistSans.variable} ${GeistMono.variable}`}
suppressHydrationWarning
>
<body> <body>
<SiteBanner /> <SiteBanner />
{children} {children}

View File

@ -2,14 +2,11 @@
// app/layout.tsx once the service is open for production use. // app/layout.tsx once the service is open for production use.
export function SiteBanner() { export function SiteBanner() {
return ( return (
<div <div className="border-b border-[#4f46e5] bg-[--color-accent] px-4 py-2 text-center text-[12.5px] font-medium leading-snug text-white">
role="status"
className="border-b border-[#4f46e5] bg-[--color-accent] px-4 py-2 text-center text-[12.5px] font-medium leading-snug text-white"
>
<span className="font-semibold uppercase tracking-wide">Preview</span> <span className="font-semibold uppercase tracking-wide">Preview</span>
<span className="px-1.5 opacity-60">·</span> <span className="px-1.5 opacity-60">·</span>
BuildMyMCPServer is not yet open for production use sign-ups, server BuildMyMCPServer is not yet open for production use sign-ups, server generation and billing
generation and billing are still being finalised, and data may be reset. are still being finalised, and data may be reset.
</div> </div>
); );
} }