Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,062 changes: 2,868 additions & 194 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@tailwindcss/postcss": "^4.1.18",
"bcryptjs": "^2.4.3",
"eslint": "8.41.0",
"eslint-config-next": "13.4.3",
Expand All @@ -18,5 +19,10 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"swr": "^2.1.5"
},
"devDependencies": {
"autoprefixer": "^10.4.23",
"postcss": "^8.5.6",
"tailwindcss": "^4.1.18"
}
}
2 changes: 1 addition & 1 deletion src/app/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import AuthProvider from "@/components/AuthProvider/AuthProvider";
const inter = Inter({ subsets: ["latin"] });

export const metadata = {
title: "Lama Dev",
title: "Surafel Mengist",
description: "This is the description",
};

Expand Down
21 changes: 21 additions & 0 deletions src/app/next14/next.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.header{
background-color:black;
padding:4px;
width:100%;
display:flex;
color:white;
justify-content:space-between;
flex-items:center;
}
.title{
color:white;
font-size:10px;
flex-items:center;
}
.nav{
display:flex;
justify-content:center;
items-center;
gap:10px;

}
19 changes: 19 additions & 0 deletions src/app/next14/page.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

import { Link } from 'next/link';
import styles from "./next.module.css";
const Header = () => {
return (
<div className={styles.header}>
<h1 className={styles.title}>Welcome to Next.js 14!</h1>

<nav className={styles.nav}>
<Link href="/">Home</Link>
<Link href="/about">About</Link>
<Link href="/contact">Contact</Link>
</nav>

</div>
)
}

export default Header
28 changes: 28 additions & 0 deletions src/app/product/page.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { useEffect, useState } from "react"
import styles from "./product.module.css"

const Products = () => {
const [data, setData] = useState([])

useEffect(() => {
fetch("https://jsonplaceholder.typicode.com/posts")
.then((res) => res.json())
.then((data) => setData(data))
}, [])

return (
<div>
<ul className={styles.ul}>
{data.map((list) => (
<li key={list.id}>
<p>{list.id}</p>
<p>{list.title}</p>
<p>{list.body}</p>
</li>
))}
</ul>
</div>
)
}

export default Products
4 changes: 4 additions & 0 deletions src/app/product/product.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.ul{
border:1px solid gray;
border-radius:10px;
}
3 changes: 2 additions & 1 deletion src/components/footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import styles from "./footer.module.css";
import Image from "next/image";

const Footer = () => {
const year= new Date().getFullYear();
return (
<div className={styles.container}>
<div>©2023 Lamamia. All rights reserved.</div>
<div>&copy;{year}. All rights reserved.</div>
<div className={styles.social}>
<Image src="/1.png" width={15} height={15} className={styles.icon} alt="Lama Dev Facebook Account" />
<Image src="/2.png" width={15} height={15} className={styles.icon} alt="Lama Dev" />
Expand Down
11 changes: 8 additions & 3 deletions src/components/navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,18 @@ const links = [
title: "About",
url: "/about",
},
{
{
id: 5,
title: "product",
url: "/product",
},
{
id: 6,
title: "Contact",
url: "/contact",
},
{
id: 6,
id: 7,
title: "Dashboard",
url: "/dashboard",
},
Expand All @@ -45,7 +50,7 @@ const Navbar = () => {
return (
<div className={styles.container}>
<Link href="/" className={styles.logo}>
lamamia
My Next
</Link>
<div className={styles.links}>
<DarkModeToggle />
Expand Down
1 change: 1 addition & 0 deletions src/components/navbar/navbar.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.container {
height: 100px;
display: flex;
width:100%;
justify-content: space-between;
align-items: center;
}
Expand Down
Loading