Skip to content

Commit

Permalink
refactor/ui-components
Browse files Browse the repository at this point in the history
  • Loading branch information
yyassif committed Sep 14, 2024
1 parent 757f7cb commit 9ffcf55
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 24 deletions.
Binary file added public/favicon.ico
Binary file not shown.
Binary file added public/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/app/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Suspense } from "react";
import type { Metadata } from "next";
import { notFound } from "next/navigation";
import { getPost } from "@/data/blog";
import { DATA } from "@/data/resume";
import { formatDate } from "@/lib/utils";
import type { Metadata } from "next";
import { notFound } from "next/navigation";
import { Suspense } from "react";

export async function generateMetadata({
params,
Expand Down
7 changes: 3 additions & 4 deletions src/app/blog/page.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import BlurFade from "@/components/magicui/blur-fade";
import { getBlogPosts } from "@/data/blog";
import Link from "next/link";
import { getBlogPosts } from "@/data/blog";
import { BLUR_FADE_DELAY } from "@/data/constants";
import BlurFade from "@/components/magicui/blur-fade";

export const metadata = {
title: "Blog - @yyassif",
description: "My thoughts on software development, life, and so many more.",
};

const BLUR_FADE_DELAY = 0.04;

export default async function BlogPage() {
const posts = await getBlogPosts();

Expand Down
4 changes: 2 additions & 2 deletions src/components/hackathon-card.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Badge } from "@/components/ui/badge";
import Link from "next/link";
import { Badge } from "@/components/ui/badge";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";

interface Props {
title: string;
Expand Down
4 changes: 2 additions & 2 deletions src/components/mdx.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Image from "next/image";
import Link from "next/link";
import React from "react";
import Link from "next/link";
import Image from "next/image";

function Table({ data }: { data: { headers: string[]; rows: string[][] } }) {
let headers = data.headers.map((header, index) => (
Expand Down
2 changes: 1 addition & 1 deletion src/components/mode-toggle.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use client";

import { useTheme } from "next-themes";
import { Button } from "@/components/ui/button";
import { MoonIcon, SunIcon } from "@radix-ui/react-icons";
import { useTheme } from "next-themes";

export function ModeToggle() {
const { theme, setTheme } = useTheme();
Expand Down
4 changes: 2 additions & 2 deletions src/components/navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Dock, DockIcon } from "@/components/magicui/dock";
import Link from "next/link";
import { ModeToggle } from "@/components/mode-toggle";
import { buttonVariants } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
import { Dock, DockIcon } from "@/components/magicui/dock";
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip";
import { DATA } from "@/data/resume";
import { cn } from "@/lib/utils";
import Link from "next/link";

export default function Navbar() {
return (
Expand Down
3 changes: 1 addition & 2 deletions src/components/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
"use client";

import Link from "next/link";
import { useEffect, useState } from "react";
import { useTheme } from "next-themes";

import Meteors from "@/components/magicui/meteors";
import Particles from "@/components/magicui/particles";
import ShinyButton from "@/components/magicui/shiny-button";
import Link from "next/link";

export default function NotFound() {
const { theme } = useTheme();
Expand Down
6 changes: 3 additions & 3 deletions src/components/project-card.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import Link from "next/link";
import Image from "next/image";
import Markdown from "react-markdown";
import { Badge } from "@/components/ui/badge";
import {
Card,
Expand All @@ -7,9 +10,6 @@ import {
CardTitle,
} from "@/components/ui/card";
import { cn } from "@/lib/utils";
import Image from "next/image";
import Link from "next/link";
import Markdown from "react-markdown";

interface Props {
title: string;
Expand Down
10 changes: 5 additions & 5 deletions src/components/resume-card.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"use client";

import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import React from "react";
import Link from "next/link";
import { motion } from "framer-motion";
import { ChevronRightIcon } from "lucide-react";
import { Badge } from "@/components/ui/badge";
import { Card, CardHeader } from "@/components/ui/card";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { cn } from "@/lib/utils";
import { motion } from "framer-motion";
import { ChevronRightIcon } from "lucide-react";
import Link from "next/link";
import React from "react";

interface ResumeCardProps {
logoUrl: string;
Expand Down
1 change: 1 addition & 0 deletions src/data/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const BLUR_FADE_DELAY = 0.04;

0 comments on commit 9ffcf55

Please sign in to comment.