Spaces:
Paused
Paused
File size: 832 Bytes
054d282 1f57b62 054d282 c098e98 d3becdb 1f57b62 d3becdb c098e98 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
import HomeHeader from "@/components/HomeHeader";
import HomeSearch from "@/components/HomeSearch";
import Image from "next/image";
import "@/app/globals.css";
export default function Home() {
return (
<>
{/* Header */}
<HomeHeader />
{/* body */}
<div className="flex flex-col items-center mt-24">
<Image
width="300"
height="100"
src="https://upload.wikimedia.org/wikinews/en/archive/0/0c/20050620003808%21Google_logo_png.png"
/>
<HomeSearch/>
</div>
</>
);
}
export async function getStaticProps(context) {
// You can access the query parameters of the request with context.query
const searchParams = context.query;
if (searchParams) {
return { props: { searchParams } };
}
return { props: {} };
} |