diff --git a/next.config.mjs b/next.config.mjs index 4678774e..fc800c79 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,12 @@ -/** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + images: { + remotePatterns: [ + { + protocol: "https", + hostname: "images.pexels.com", + }, + ], + }, +}; export default nextConfig; diff --git a/package-lock.json b/package-lock.json index c7877c3e..e4789f55 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,8 +19,7 @@ "eslint": "^8", "eslint-config-next": "14.2.2", "postcss": "^8", - "tailwindcss": "^3.4.1", - "typescript": "^5" + "tailwindcss": "^3.4.1" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -4555,6 +4554,7 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", "dev": true, + "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/package.json b/package.json index ed7551a4..4ae16fc1 100644 --- a/package.json +++ b/package.json @@ -9,18 +9,17 @@ "lint": "next lint" }, "dependencies": { + "next": "14.2.2", "react": "^18", - "react-dom": "^18", - "next": "14.2.2" + "react-dom": "^18" }, "devDependencies": { - "typescript": "^5", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", - "postcss": "^8", - "tailwindcss": "^3.4.1", "eslint": "^8", - "eslint-config-next": "14.2.2" + "eslint-config-next": "14.2.2", + "postcss": "^8", + "tailwindcss": "^3.4.1" } } diff --git a/public/logo.jpg b/public/logo.jpg new file mode 100644 index 00000000..49dbb0f6 Binary files /dev/null and b/public/logo.jpg differ diff --git a/public/logo.png b/public/logo.png deleted file mode 100644 index b80850d5..00000000 Binary files a/public/logo.png and /dev/null differ diff --git a/src/app/globals.css b/src/app/globals.css index bd6213e1..dbf0142c 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,3 +1,7 @@ @tailwind base; @tailwind components; -@tailwind utilities; \ No newline at end of file +@tailwind utilities; + +body { + background: #fbfbfb; +} diff --git a/src/app/layout.js b/src/app/layout.js new file mode 100644 index 00000000..83870c43 --- /dev/null +++ b/src/app/layout.js @@ -0,0 +1,23 @@ +import { Cinzel } from "next/font/google"; +import "./globals.css"; +import Navbar from "../components/Navbar"; +import Footer from "../components/Footer"; + +const cinzel = Cinzel({ weight: "500", subsets: ["latin"] }); + +export const metadata = { + title: "Paddy E-Commerce ", + description: "A complete e-commerce application with Next.js and Wix", +}; + +export default function RootLayout({ children }) { + return ( + + + + {children} +