Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
amrabed committed Oct 19, 2024
1 parent 447600c commit e3bae22
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 63 deletions.
30 changes: 0 additions & 30 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,6 @@
@tailwind components;
@tailwind utilities;

/* :root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}
@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}
body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}
@layer utilities {
.text-balance {
text-wrap: balance;
}
} */

* {
scroll-behavior: smooth !important;
-webkit-scroll-behavior: smooth !important;
Expand Down
6 changes: 4 additions & 2 deletions src/components/filter.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { ReactNode } from "react";

import { CheckIcon } from "@heroicons/react/24/outline";
import { AdjustmentsHorizontalIcon } from "@heroicons/react/24/outline";
import {
AdjustmentsHorizontalIcon,
CheckIcon,
} from "@heroicons/react/24/outline";
import {
Button,
CheckboxGroup,
Expand Down
3 changes: 1 addition & 2 deletions src/components/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use client";

import { SunIcon } from "@heroicons/react/24/outline";
import { MoonIcon } from "@heroicons/react/24/outline";
import { MoonIcon, SunIcon } from "@heroicons/react/24/outline";
import { Switch } from "@nextui-org/react";

import { useTheme } from "@/contexts/theme";
Expand Down
16 changes: 7 additions & 9 deletions src/components/section.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import React, { Fragment, ReactNode, useEffect, useRef, useState } from "react";
import React, { useEffect, useRef, useState } from "react";

const Section = ({ id, title, children }) => {
const [isVisible, setIsVisible] = useState(false);
Expand Down Expand Up @@ -32,14 +32,12 @@ const Section = ({ id, title, children }) => {
}, [isVisible]);

return (
<Fragment>
<section id={id} className="section" ref={dataRef}>
<h2 className="section-heading">{title}</h2>
<div className="pop-down-child section-body" ref={itemRef}>
{children}
</div>
</section>
</Fragment>
<section id={id} className="section" ref={dataRef}>
<h2 className="section-heading">{title}</h2>
<div className="pop-down-child section-body" ref={itemRef}>
{children}
</div>
</section>
);
};

Expand Down
38 changes: 18 additions & 20 deletions src/components/social.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,24 @@ import { Button, Link, Tooltip } from "@nextui-org/react";
import profiles from "@/data/profiles";

const SocialMedia = () => (
<>
<div className="w-full p-2 z-10 flex flex-wrap justify-center items-center">
{profiles.map((profile, index) => (
<Tooltip key={index} content={profile.name}>
<Link href={profile.link} isExternal rel="noreferrer">
<div className="bg-background rounded-full p-1">
<Button
isIconOnly
variant="light"
radius="full"
className="md:text-xl text-foreground"
>
{profile.icon}
</Button>
</div>
</Link>
</Tooltip>
))}
</div>
</>
<div className="w-full p-2 z-10 flex flex-wrap justify-center items-center">
{profiles.map((profile, index) => (
<Tooltip key={index} content={profile.name}>
<Link href={profile.link} isExternal rel="noreferrer">
<div className="bg-background rounded-full p-1">
<Button
isIconOnly
variant="light"
radius="full"
className="md:text-xl text-foreground"
>
{profile.icon}
</Button>
</div>
</Link>
</Tooltip>
))}
</div>
);

export default SocialMedia;

0 comments on commit e3bae22

Please sign in to comment.