Skip to content

Commit

Permalink
fixing image error on github page and refactoring layout
Browse files Browse the repository at this point in the history
  • Loading branch information
DTA32 committed Sep 23, 2023
1 parent 268571f commit 88efa0d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
2 changes: 2 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
basePath: "/dta32-site",
images: { unoptimized: true },
};

module.exports = nextConfig;
2 changes: 1 addition & 1 deletion src/app/components/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Home() {
</div>
<div className="md:col-span-4 relative max-h-[90vh]">
<Image
src="/home.jpg"
src="/dta32-site/home.jpg"
alt="home"
width={1992}
height={1992}
Expand Down
8 changes: 7 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import "./globals.css";
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import Navbar from "./components/Navbar";
import Footer from "./components/Footer";

const inter = Inter({ subsets: ["latin"] });

Expand All @@ -16,7 +18,11 @@ export default function RootLayout({
}) {
return (
<html lang="en" className="scroll-pt-[9.9vh] scroll-smooth">
<body className={inter.className}>{children}</body>
<body className={inter.className}>
<Navbar />
{children}
<Footer />
</body>
</html>
);
}
18 changes: 6 additions & 12 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
import Navbar from "./components/Navbar";
import Home from "./components/Home";
import About from "./components/About";
import Portfolio from "./components/Portfolio";
import Contact from "./components/Contact";
import Footer from "./components/Footer";

export default function Page() {
return (
<div>
<Navbar />
<main>
<Home />
<About />
<Portfolio />
<Contact />
</main>
<Footer />
</div>
<main>
<Home />
<About />
<Portfolio />
<Contact />
</main>
);
}

0 comments on commit 88efa0d

Please sign in to comment.