Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: refactored layouts #1470
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Jul 30, 2022
1 parent 7942c61 commit bb6c8d9
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 59 deletions.
8 changes: 8 additions & 0 deletions components/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default function Footer() {
return (
<footer className="flex justify-center mt-8 italic">
Powered by{" "}
<a href="https://github.com/EddieHubCommunity/LinkFree">EddieHub</a>
</footer>
);
}
5 changes: 2 additions & 3 deletions components/layouts/MultiLayout.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import Navbar from "../navbar/Navbar";
import Footer from "../Footer";

export default function MultiLayout({ children }) {
return (
<>
<Navbar></Navbar>
<main>{children}</main>
<footer className="flex justify-center mt-8 italic">
Powered by EddieHub
</footer>
<Footer></Footer>
</>
);
}
5 changes: 3 additions & 2 deletions components/layouts/SingleLayout.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import Footer from "../Footer";

export default function SingleLayout({ children }) {
return (
<>
<p>Single layout</p>
<main>{children}</main>
<footer>Powered by EddieHub</footer>
<Footer></Footer>
</>
);
}
4 changes: 1 addition & 3 deletions components/user/UserPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ export default function UserPreview({ profile }) {
className="rounded-full"
/>
<div>
<h3 className="text-2xl font-bold">
{profile.name}({profile.views})
</h3>
<h3 className="text-2xl font-bold">{profile.name}</h3>
<p>{profile.bio}</p>
</div>
</a>
Expand Down
129 changes: 79 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": false,
"homepage": "https://linkfree.eddiehub.org",
"dependencies": {
"@prisma/client": "^4.1.1",
"next": "12.2.0",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down Expand Up @@ -40,6 +41,7 @@
"husky": "^7.0.2",
"lint-staged": "^12.1.4",
"postcss": "^8.4.14",
"prisma": "^4.1.1",
"tailwindcss": "^3.1.4"
},
"cypress-cucumber-preprocessor": {
Expand Down
2 changes: 1 addition & 1 deletion pages/[username].js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function User({ data }) {
<link rel="icon" href="/favicon.ico" />
</Head>

<div className="mx-auto container">
<div className="mx-auto container px-6">
<div className="flex justify-center gap-x-6">
<Image
src={data.avatar}
Expand Down

0 comments on commit bb6c8d9

Please sign in to comment.