Skip to content

Commit

Permalink
Merge pull request #223 from acm-ucr/dev
Browse files Browse the repository at this point in the history
m
  • Loading branch information
seanquiambao authored Aug 31, 2024
2 parents 1ef28d6 + b851e29 commit 5f6f558
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
15 changes: 12 additions & 3 deletions src/app/about/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ const Page = () => {
const [inView, ref] = useView();

return (
<div className="bg-biscuits-green-100 bg-blobs1 md:bg-cover bg-contain flex flex-col items-center gap-y-10 p-4 md:p-10">
<div
ref={ref}
className="bg-biscuits-green-100 bg-blobs1 md:bg-cover bg-contain flex flex-col items-center gap-y-10 p-4 md:p-10"
>
<Title text="About Us" color="red" />
<Picture x={25} y={25} image={springPicture} alt="Spring 24 Picture" />
<div ref={ref} className="w-full">
<div className="w-full">
{ABOUT.map((section, index) => {
return (
<div
Expand All @@ -37,7 +40,13 @@ const Page = () => {
);
})}
</div>
<div className="flex justify-center w-full -mt-4 mb-8">
<div
className={`flex justify-center w-full -mt-4 mb-8 ${
inView
? `animate-fade-up animate-duration-300 animate-ease-linear animate-delay-500`
: ""
}`}
>
<Button text="GET INVOLVED" link="/involve" />
</div>
</div>
Expand Down
22 changes: 7 additions & 15 deletions src/components/Button.jsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
import Link from "next/link";
import useView from "./useView";

const Button = ({ text, link }) => {
const [inView, ref] = useView();
return (
<div ref={ref}>
<Link
href={link}
target="_blank"
className={`${
inView
? `animate-fade-up animate-once animate-duration-300 animate-ease-linear`
: ""
} w-fit bg-biscuits-pinkish text-biscuits-textColor font-inika py-1.5 px-8 md:py-2 md:px-12 rounded-full font-bold text-xl md:text-3xl hover:opacity-75 duration-100`}
>
{text}
</Link>
</div>
<Link
href={link}
target="_blank"
className="w-fit bg-biscuits-pinkish text-biscuits-textColor font-inika py-1.5 px-8 md:py-2 md:px-12 rounded-full font-bold text-xl md:text-3xl hover:opacity-75 duration-100"
>
{text}
</Link>
);
};
export default Button;

0 comments on commit 5f6f558

Please sign in to comment.