Added layout + skeleton components
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
export const Footer: React.FC = () => {
|
export const Header: React.FC = () => {
|
||||||
return (
|
return (
|
||||||
<header>
|
<header>
|
||||||
{/* Logo */}
|
{/* Logo */}
|
||||||
|
|||||||
24
src/components/RootLayout.tsx
Normal file
24
src/components/RootLayout.tsx
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
import { Plus_Jakarta_Sans } from "next/font/google";
|
||||||
|
import { Header } from "~/components/Header";
|
||||||
|
import { Footer } from "~/components/Footer";
|
||||||
|
import type { PropsWithChildren } from "react";
|
||||||
|
|
||||||
|
const jakarta = Plus_Jakarta_Sans({
|
||||||
|
subsets: ["latin"],
|
||||||
|
weight: ["400", "600", "800"],
|
||||||
|
display: "block",
|
||||||
|
preload: true,
|
||||||
|
variable: "--font-jakarta",
|
||||||
|
});
|
||||||
|
|
||||||
|
export const RootLayout: React.FC<PropsWithChildren> = ({ children }) => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Header />
|
||||||
|
<main className={`${jakarta.variable} min-h-screen bg-white font-sans`}>
|
||||||
|
{children}
|
||||||
|
</main>
|
||||||
|
<Footer />
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -1,14 +1,6 @@
|
|||||||
import { type NextPage } from "next";
|
import { type NextPage } from "next";
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
import { Plus_Jakarta_Sans } from "next/font/google";
|
import { RootLayout } from "~/components/RootLayout";
|
||||||
|
|
||||||
const jakarta = Plus_Jakarta_Sans({
|
|
||||||
subsets: ["latin"],
|
|
||||||
weight: ["400", "600", "800"],
|
|
||||||
display: "block",
|
|
||||||
preload: true,
|
|
||||||
variable: "--font-jakarta",
|
|
||||||
});
|
|
||||||
|
|
||||||
const Home: NextPage = () => {
|
const Home: NextPage = () => {
|
||||||
return (
|
return (
|
||||||
@@ -18,22 +10,32 @@ const Home: NextPage = () => {
|
|||||||
<meta name="description" content="A software development company." />
|
<meta name="description" content="A software development company." />
|
||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
</Head>
|
</Head>
|
||||||
<main className={`${jakarta.variable} bg-white font-sans`}>
|
<RootLayout>
|
||||||
<h1 className="font-extrabold text-black">Sunrise</h1>
|
<Hero />
|
||||||
<p className="leading-relaxed text-black">
|
{/* <Services /> */}
|
||||||
Creating software that looks and works great is our specialty at
|
{/* <Projects /> */}
|
||||||
Sunrise. Our team of experts combines artistry and technical know-how
|
{/* <About /> */}
|
||||||
to craft solutions that will make your business{" "}
|
{/* <Contact /> */}
|
||||||
<span className="font-semibold text-orange">shine</span>.
|
</RootLayout>
|
||||||
</p>
|
|
||||||
</main>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Home;
|
export default Home;
|
||||||
|
|
||||||
// const Hero = () => {}
|
const Hero = () => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<h1 className="font-extrabold text-black">Sunrise</h1>
|
||||||
|
<p className="leading-relaxed text-black">
|
||||||
|
Creating software that looks and works great is our specialty at
|
||||||
|
Sunrise. Our team of experts combines artistry and technical know-how to
|
||||||
|
craft solutions that will make your business{" "}
|
||||||
|
<span className="font-semibold text-orange">shine</span>.
|
||||||
|
</p>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
// const Services = () => {}
|
// const Services = () => {}
|
||||||
// const Projects = () => {}
|
// const Projects = () => {}
|
||||||
// const About = () => {}
|
// const About = () => {}
|
||||||
|
|||||||
Reference in New Issue
Block a user