Skip to content

Website Changes#6

Closed
SouriRishik wants to merge 22 commits intoFallenDeity:masterfrom
teamrobomanipal:master
Closed

Website Changes#6
SouriRishik wants to merge 22 commits intoFallenDeity:masterfrom
teamrobomanipal:master

Conversation

@SouriRishik
Copy link
Copy Markdown
Contributor

-> alumni page is introduced
-> update contents in the home page
-> update to sponsors for better visibilty of sponsers in different themes
-> update in Navbar

@vercel
Copy link
Copy Markdown

vercel bot commented Dec 10, 2025

@SouriRishik is attempting to deploy a commit to the fallendeity's projects Team on Vercel.

A member of the Team first needs to authorize it.

@FallenDeity
Copy link
Copy Markdown
Owner

why here lol this is an unmaintained upstream just for legacy purposes, i should prolly archive this repo

@SouriRishik
Copy link
Copy Markdown
Contributor Author

my contributions aren't seen since it is a forked repo, so by submitting a PR at aleast.....

export function Sponsors(): React.JSX.Element {
const sponsors = useSponsors();
const player = useRef(Autoplay({ delay: 2000, stopOnInteraction: true }));
const { resolvedTheme } = useTheme();
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not make an abstracted component which instead of a map relies on say a suffix -light or -dark with a global fallback (you could have x-light.jpg and x-dark.jpg), the map approach seems rigid, also similarly maybe instead of the mounted var just use the global fallback for rendering? regardless the overrides should go in constants.ts or smn

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's wrong with the current one? like it works perfectly since sanity one has the dark verision pictures and the one in the workspace has the light one, i can just do it like what i am doing right now by mapping it

className={cn(
"flex h-12 w-full items-center justify-center rounded-full p-0 font-normal xs:w-12 xs:border",
!date && "text-muted-foreground",
resolvedTheme === "light" ? "xs:wave" : ""
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason for this effect being only in light?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nah i removed the component, it was just while testing i added that

const selectedYear = date?.getFullYear();

function handleSelect(year: number): void {
const base = date ?? new Date();
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do this in one line?

if (!Array.isArray(alumniYears) || alumniYears.length === 0) return;
if (typeof window === "undefined") return;
const nav =
typeof window.performance.getEntriesByType === "function"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks to logic heavy and seems to rely on the browser specific api making it kinda brittle?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it looks fine itself?
Using Performance API to detect if the user did a hard refresh/reload shouldn't make it brittle imo

if (!date) return;
const y = date.getFullYear();
const yearMembers = members[String(y)];
if (Array.isArray(yearMembers) && y <= new Date().getFullYear() - 1) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

),
[details, subsystem]
);
const members = useMemo(() => {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create a helper function for filtering? this might get tedious with more roles

Copy link
Copy Markdown
Contributor Author

@SouriRishik SouriRishik Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahhh i mean there won't be more roles so i thought this was fine. This was just for the Senior member thing, anyways it was just for sorting them in order
so i thought no need a function for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants