Skip to content

Added Color Glow Effect on Sponsor Logos and FAQ #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@
font-size: 4rem; /* Adjust as needed */
}

.pixel-glow-hover {
transition:
background-color 0.5s ease,
box-shadow 0.5s ease;
}

.pixel-glow-hover:hover {
background-color: #410091;
box-shadow:
0 0 2px #fff,
0 0 6px #ff00ff,
0 0 10px #ff00ff,
0 0 14px #ffc400,
0 0 20px #ffc400;
}
:root,
[data-amplify-theme] {
--amplify-colors-background-primary: #080a0b;
Expand Down
4 changes: 2 additions & 2 deletions components/faq/faq.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const FAQPage = () => {
key={index}
className={`collapse collapse-arrow custom-arrow bg-retro-purple-dark p-1 text-2xl border-t-4 ${
index === faqs.length - 1 ? "border-b-2" : ""
} border-hackrpi-light-purple border-rounded-r-xl border-double`}
} border-hackrpi-light-purple border-rounded-r-xl border-double pixel-glow-hover`}
data-testid={`faq-item-${index}`}
>
<input
Expand All @@ -134,7 +134,7 @@ const FAQPage = () => {
aria-controls={`faq-content-${index}`}
/>
<div
className="font-modern collapse-title font-medium text-2xl text-retro-orange"
className="font-modern collapse-title font-medium text-2xl text-retro-orange transition-all duration-200 hover:text-retro-pink glow-hover"
data-testid={`faq-title-${index}`}
id={`faq-title-${index}`}
>
Expand Down
19 changes: 9 additions & 10 deletions components/sponsors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@ import sponsorsJson from "@/public/sponsors/sponsors.json";
import { SponsorsJSON, sponsorTiers } from "@/types/sponsorsType";
import NextImage from "next/image";

const tierColors: Record<sponsorTiers, string> = {
OBSIDIAN: "bg-gray-900 text-white",
GOLD: "bg-yellow-500 text-black",
SILVER: "bg-gray-300 text-black",
BRONZE: "bg-orange-600 text-white",
COLLABORATORS: " text-white",
const tierColors: Record<sponsorTiers, { bgText: string; glow: string }> = {
OBSIDIAN: { bgText: "bg-gray-900 text-white", glow: "hover:shadow-[0_0_25px_rgba(2,242,242,0.7)]" },
GOLD: { bgText: "bg-yellow-500 text-black", glow: "hover:shadow-[0_0_25px_rgba(255,215,0,0.8)]" },
SILVER: { bgText: "bg-gray-300 text-black", glow: "hover:shadow-[0_0_25px_rgba(192,192,192,0.8)]" },
BRONZE: { bgText: "bg-orange-600 text-white", glow: "hover:shadow-[0_0_25px_rgba(205,127,50,0.8)]" },
COLLABORATORS: { bgText: "text-white", glow: "hover:shadow-[0_0_25px_rgba(242,2,210,0.7)]" },
};

const Sponsors = () => {
const tierList: sponsorTiers[] = ["OBSIDIAN", "GOLD", "SILVER", "BRONZE", "COLLABORATORS"];
const [sponsors] = useState<SponsorsJSON>(sponsorsJson);

return (
<div
className="relative flex flex-col w-full justify-center items-start desktop:items-center pl-8 desktop:pl-0 bg-gradient-to-b from-hackrpi-dark-blue via-hackrpi-orange to-hackrpi-dark-blue py-8 bg-blend-overlay bg-cover bg-center"
Expand All @@ -37,18 +36,18 @@ const Sponsors = () => {
return (
<div className="w-11/12" key={tier}>
<div
className={`px-1 py-1 border-4 border-dashed border-white inline-block mt-4 font-retro font-bold text-xl ${tierColors[tier]}`}
className={`px-1 py-1 border-4 border-dashed border-white inline-block mt-4 font-retro font-bold text-xl ${tierColors[tier].bgText}`}
>
{tier}
</div>
<div className="border-b-4 border-hackrpi-white rounded-full border-double mt-2 h-6"></div>
<div className="border-b-4 border-hackrpi-white rounded-full border-double mt-2 h-6 "></div>

<div className="flex flex-row flex-wrap justify-around items-center">
{sponsors[tier].map((sponsor) => {
return (
<div
key={sponsor.name}
className="w-fit h-fit p-4 m-4 hover:scale-110 bg-hackrpi-light-purple bg-opacity-0 hover:bg-opacity-15 rounded-md transition-all duration-700 flex items-center justify-center mx-4"
className={`w-fit h-fit p-4 m-4 hover:scale-110 bg-hackrpi-light-purple bg-opacity-0 hover:bg-opacity-45 rounded-md transition-all duration-300 flex items-center justify-center mx-4 ${tierColors[tier].glow}`}
>
<a href={sponsor.url} target="_blank" rel="noreferrer">
<NextImage
Expand Down