This commit is contained in:
Li1304553726 2025-02-26 19:42:48 +08:00
parent c284cc637b
commit dda7bb6b99
3 changed files with 6 additions and 7 deletions

View File

@ -38,7 +38,7 @@ export default function CourseCard({ course }: CourseCardProps) {
}> }>
<div className="px-4 "> <div className="px-4 ">
<div className="overflow-hidden hover:overflow-auto"> <div className="overflow-hidden hover:overflow-auto">
<div className="flex gap-2 mb-4 whiteSpace-nowrap "> <div className="flex gap-2 mb-4 whiteSpace-nowrap">
{course?.terms?.map((term) => { {course?.terms?.map((term) => {
return ( return (
<> <>

View File

@ -44,10 +44,9 @@ const CoursesSection: React.FC<CoursesSectionProps> = ({
type: TaxonomySlug.CATEGORY, type: TaxonomySlug.CATEGORY,
}); });
return ( return (
<section className="relative py-16 overflow-hidden bg-gray-200"> <section className="relative py-16 overflow-hidden ">
<div className="absolute inset-0 bg-white max-w-screen-2xl mx-auto px-6"></div> <div className="max-w-screen-2xl mx-auto px-4 relative">
<div className="max-w-screen-2xl mx-auto px-6 relative"> <div className="flex justify-between items-end mb-12 ">
<div className="flex justify-between items-end mb-16 ">
<div> <div>
<Title <Title
level={2} level={2}

View File

@ -9,9 +9,9 @@ const { Content } = Layout;
export function MainLayout() { export function MainLayout() {
return ( return (
<MainProvider> <MainProvider>
<Layout className="min-h-screen bg-gray-100"> <Layout className="min-h-screen">
<MainHeader /> <MainHeader />
<Content className="mt-16 bg-gray-200 "> <Content className="mt-16 bg-gray-50">
<Outlet /> <Outlet />
</Content> </Content>
<MainFooter /> <MainFooter />