Skip to content

Commit

Permalink
Final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
amrabed committed Oct 19, 2024
1 parent f109d2a commit 447600c
Show file tree
Hide file tree
Showing 9 changed files with 126 additions and 46 deletions.
108 changes: 64 additions & 44 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
},
"dependencies": {
"@heroicons/react": "^2.1.5",
"@next/third-parties": "^14.2.15",
"@nextui-org/react": "^2.4.6",
"@vercel/analytics": "^1.3.1",
"axios": "^1.3.1",
"framer-motion": "^10.18.0",
"he": "^1.2.0",
"mongoose": "^7.8.0",
"next": "^14.2.6",
"next": "^14.2.15",
"nodemailer": "^6.9.14",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import type { Metadata, Viewport } from "next";
import dynamic from "next/dynamic";
import { Inter } from "next/font/google";

import { GoogleAnalytics } from "@next/third-parties/google";

import "./globals.css";
import Providers from "./providers";

Expand Down Expand Up @@ -39,6 +41,7 @@ export default function RootLayout({
<Footer />
</Providers>
</body>
<GoogleAnalytics gaId="G-JKPDWZ2PLD" />
</html>
);
}
2 changes: 2 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import dynamic from "next/dynamic";
import Image from "next/image";

import Section from "@/components/Section";
import { Banner } from "@/components/banner";
import { MainHeader } from "@/components/header";
import certificates from "@/data/certifications";
import degrees from "@/data/degrees";
Expand Down Expand Up @@ -76,6 +77,7 @@ const Degrees = () => (

const Home = () => (
<>
<Banner />
<MainHeader />
<Intro />
<Skills />
Expand Down
12 changes: 12 additions & 0 deletions src/app/robots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { MetadataRoute } from "next";

export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: "*",
allow: "/",
disallow: "/private/",
},
sitemap: "https://amrabed.com/sitemap.xml",
};
}
24 changes: 24 additions & 0 deletions src/app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { MetadataRoute } from "next";

export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: "https://amrabed.com",
lastModified: new Date(),
changeFrequency: "yearly",
priority: 1,
},
{
url: "https://amrabed.com/projects",
lastModified: new Date(),
changeFrequency: "yearly",
priority: 0.8,
},
{
url: "https://amrabed.com/positions",
lastModified: new Date(),
changeFrequency: "yearly",
priority: 0.5,
},
];
}
14 changes: 14 additions & 0 deletions src/components/banner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export const Banner = () => (
<div className="fixed left-0 right-0 top-0 z-[999] flex h-[40px] w-full flex-col items-center justify-center py-2 text-sm bg-[#1e7748] sm:flex-row sm:py-0 sm:text-lg">
<div className="mr-1 hidden text-white sm:block">Free Palestine 🇵🇸</div>
<a
href="https://freepalestine.dev"
target="_blank"
rel="noopener"
className="text-link ms-0 text-white hover:underline sm:ms-1"
>
<div className="mr-1 inline text-white sm:hidden">🇵🇸</div>
Help Spread Awareness for Palestine
</a>
</div>
);
6 changes: 5 additions & 1 deletion src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ export const MainHeader = () => {
const [isMenuOpen, setIsMenuOpen] = useState(false);

return (
<Navbar isMenuOpen={isMenuOpen} onMenuOpenChange={setIsMenuOpen}>
<Navbar
isMenuOpen={isMenuOpen}
onMenuOpenChange={setIsMenuOpen}
className="pt-10"
>
<NavbarBrand>
<Title />
</NavbarBrand>
Expand Down

0 comments on commit 447600c

Please sign in to comment.