Skip to content

Commit

Permalink
Get rid of products page, moved logic into home page
Browse files Browse the repository at this point in the history
  • Loading branch information
Paweł Sieniewicz committed Sep 26, 2023
1 parent cdc467d commit c53350c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
1 change: 1 addition & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import "./globals.css";
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import React from "react";

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

Expand Down
9 changes: 6 additions & 3 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { ProductList } from "@/ui/organisms/ProductList";
import { products } from "@/mocks/Products";

export default function Home() {
return (
<main className="flex min-h-screen items-center justify-center text-black dark:text-white ">
<h1 className="text-4xl font-bold">Hello world!</h1>
</main>
<section className="mx-auto max-w-md p-12 sm:max-w-2xl md:max-w-5xl lg:max-w-6xl">
<ProductList products={products} />
</section>
);
}
10 changes: 0 additions & 10 deletions src/app/products/page.tsx

This file was deleted.

0 comments on commit c53350c

Please sign in to comment.