头部和尾部布局

This commit is contained in:
Li1304553726 2025-06-05 22:51:44 +08:00
parent e5bb50015e
commit 97be3889fc
6 changed files with 92 additions and 1 deletions

View File

@ -1,5 +1,15 @@
'use client'; 'use client';
import Content from "@/components/content/page";
import Footer from "@/components/footer/footer";
import Header from "@/components/header/header";
export default function HomePage() { export default function HomePage() {
return <>sss</>; return (
<>
<Header />
<Content />
<Footer />
</>
);
} }

View File

@ -0,0 +1,14 @@
import React from 'react';
const Content: React.FC = () => {
return (
<div className="w-[1920px] min-h-[calc(100vh-710px-758px)] relative left-1/2 transform -translate-x-1/2 bg-center flex justify-center items-center" style={{backgroundColor:'#000000'}}
>
<div className="p-5">
<p className="text-white"></p>
</div>
</div>
);
};
export default Content;

View File

@ -0,0 +1,51 @@
import React from 'react';
const Footer: React.FC = () => {
return (
<div
className="flex flex-col items-center justify-center relative bottom-0 left-1/2 transform -translate-x-1/2 w-[1920px] h-[758px] bg-cover bg-center"
style={{ backgroundImage: `url('/footer.png')` }}
>
{/* 主标题 */}
<div className="mb-8 mt-15">
<p className=" tracking-widest" style={{ fontSize: '32px' }}>
OO情愉悦
</p>
</div>
{/* 版权声明 */}
<div className="mb-8 text-center space-y-2 ">
<p className="text-sm opacity-80" style={{ color: '#818da3' }}>
</p>
<p className="text-sm opacity-80 mt-5" style={{ color: '#818da3' }}>
Copyright©2016-2019 ibaotu.com
</p>
</div>
{/* 导航链接 */}
<div className="flex space-x-12 mt-5">
<a href="#" className="hover:text-blue-300 transition-colors" style={{ color: '#818da3' }}>
</a>
<a href="#" className="hover:text-blue-300 transition-colors" style={{ color: '#818da3' }}>
</a>
<a href="#" className="hover:text-blue-300 transition-colors" style={{ color: '#818da3' }}>
</a>
<a href="#" className="hover:text-blue-300 transition-colors" style={{ color: '#818da3' }}>
</a>
<a href="#" className="hover:text-blue-300 transition-colors" style={{ color: '#818da3' }}>
</a>
<a href="#" className="hover:text-blue-300 transition-colors" style={{ color: '#818da3' }}>
便
</a>
</div>
</div>
);
};
export default Footer;

View File

@ -0,0 +1,16 @@
import React from 'react';
const Header: React.FC = () => {
return (
<div
className="relative left-1/2 transform -translate-x-1/2 w-[1920px] min-h-[710px] bg-cover bg-center "
style={{ backgroundImage: `url('/header.png')` }}
>
<div className="p-5">
<p className="text-white"></p>
</div>
</div>
);
};
export default Header;

BIN
apps/web/public/footer.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 KiB

BIN
apps/web/public/header.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 KiB