header+ticker: new menu (HOME/FEATURED/THE LATEST/SHOW COVERAGE/FORUM/ABOUT) + drop reduced-motion rule that was freezing ticker animation
This commit is contained in:
@@ -140,7 +140,7 @@ export default function HomePage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Featured: cinematic hero + 4-up rail below (FeaturedBentoFromDb) */}
|
{/* Featured: cinematic hero + 4-up rail below (FeaturedBentoFromDb) */}
|
||||||
<ScrollRevealSection className="section-enter section-enter-3">
|
<ScrollRevealSection id="featured" className="section-enter section-enter-3 scroll-mt-32">
|
||||||
<Suspense fallback={<BentoSkeleton />}>
|
<Suspense fallback={<BentoSkeleton />}>
|
||||||
<FeaturedBentoFromDb />
|
<FeaturedBentoFromDb />
|
||||||
</Suspense>
|
</Suspense>
|
||||||
@@ -155,7 +155,7 @@ export default function HomePage() {
|
|||||||
*/}
|
*/}
|
||||||
|
|
||||||
{/* Article feed + sidebar */}
|
{/* Article feed + sidebar */}
|
||||||
<ScrollRevealSection className="section-enter section-enter-5" delay={2}>
|
<ScrollRevealSection id="the-latest" className="section-enter section-enter-5 scroll-mt-32" delay={2}>
|
||||||
<Suspense fallback={<FeedSkeleton />}>
|
<Suspense fallback={<FeedSkeleton />}>
|
||||||
<ArticleFeed />
|
<ArticleFeed />
|
||||||
</Suspense>
|
</Suspense>
|
||||||
|
|||||||
@@ -215,9 +215,6 @@ export default function DualSpeedTicker() {
|
|||||||
0% { transform: translateX(0); }
|
0% { transform: translateX(0); }
|
||||||
100% { transform: translateX(-50%); }
|
100% { transform: translateX(-50%); }
|
||||||
}
|
}
|
||||||
@media (prefers-reduced-motion: reduce) {
|
|
||||||
.bbt-track { animation-duration: 0s; }
|
|
||||||
}
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
.bbt-label { font-size: 9px; padding: 0 8px; }
|
.bbt-label { font-size: 9px; padding: 0 8px; }
|
||||||
.bbt-item { font-size: 11px; padding: 0 10px; }
|
.bbt-item { font-size: 11px; padding: 0 10px; }
|
||||||
|
|||||||
@@ -28,8 +28,11 @@ interface NavItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const navLinks: NavItem[] = [
|
const navLinks: NavItem[] = [
|
||||||
{ label: "Newsletter", href: "/newsletter" },
|
{ label: "HOME", href: "/" },
|
||||||
{ label: "Forum", href: "/forum" },
|
{ label: "FEATURED", href: "/#featured" },
|
||||||
|
{ label: "THE LATEST", href: "/news" },
|
||||||
|
{ label: "SHOW COVERAGE", href: "/show-coverage" },
|
||||||
|
{ label: "FORUM", href: "/forum" },
|
||||||
];
|
];
|
||||||
|
|
||||||
export default function Header() {
|
export default function Header() {
|
||||||
@@ -627,7 +630,6 @@ export default function Header() {
|
|||||||
|
|
||||||
{/* Menu (right) */}
|
{/* Menu (right) */}
|
||||||
<nav className="bb-browse-menu" aria-label="Main sections">
|
<nav className="bb-browse-menu" aria-label="Main sections">
|
||||||
<EventsDropdown />
|
|
||||||
{navLinks.map((link) => (
|
{navLinks.map((link) => (
|
||||||
<Link
|
<Link
|
||||||
key={link.label}
|
key={link.label}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ interface ScrollRevealSectionProps {
|
|||||||
className?: string;
|
className?: string;
|
||||||
delay?: number;
|
delay?: number;
|
||||||
variant?: 'default' | 'left' | 'scale';
|
variant?: 'default' | 'left' | 'scale';
|
||||||
|
id?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function ScrollRevealSection({
|
export default function ScrollRevealSection({
|
||||||
@@ -13,6 +14,7 @@ export default function ScrollRevealSection({
|
|||||||
className = '',
|
className = '',
|
||||||
delay = 0,
|
delay = 0,
|
||||||
variant = 'default',
|
variant = 'default',
|
||||||
|
id,
|
||||||
}: ScrollRevealSectionProps) {
|
}: ScrollRevealSectionProps) {
|
||||||
const ref = useRef<HTMLDivElement>(null);
|
const ref = useRef<HTMLDivElement>(null);
|
||||||
|
|
||||||
@@ -41,7 +43,7 @@ export default function ScrollRevealSection({
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={ref} className={`${variantClass} ${delayClass} ${className}`}>
|
<div ref={ref} id={id} className={`${variantClass} ${delayClass} ${className}`}>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user