Skip to content

Commit

Permalink
refactor(web/spline): move links to constant files
Browse files Browse the repository at this point in the history
  • Loading branch information
HasithDeAlwis authored and MFarabi619 committed Jan 6, 2025
1 parent 66653a3 commit 1195803
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ import asciiLogo from '@website/assets/ascii-art/logos/cuhacking-1.svg'

export const MISSION_CONSTANTS = {
LOGO: asciiLogo,
SPLINE_LINK: 'https://prod.spline.design/9iGB68CM6hGlQYOQ/scene.splinecode',
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ const socials: { link: string, name: string, media: Media }[] = [
]
export const WELCOME_CONSTANTS = {
SOCIALS: socials,
SPLINE_LINK: 'https://prod.spline.design/a1qdk8yVQfNTh2jB/scene.splinecode',
}
2 changes: 1 addition & 1 deletion libs/website/ui/introduction/mission/mission.section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function MissionSection() {
<section id="#about" className="relative flex justify-center w-full">
<SplineComponent
className="absolute bottom-[14vh] lg:-bottom-[5vh] left-0 scale-1 md:scale-[1.2]"
link="https://prod.spline.design/9iGB68CM6hGlQYOQ/scene.splinecode"
link={MISSION_CONSTANTS.SPLINE_LINK}
imgSrc={BgKeyCaps}
/>
<main className="max-w-screen-xl px-5 py-5 lg:px-20 lg:py-14">
Expand Down
2 changes: 1 addition & 1 deletion libs/website/ui/introduction/welcome/welcome.section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function WelcomeSection() {
<SplineComponent
imgSrc={BgKeyboard}
className="absolute -bottom-24 md:bottom-8 scale:-[0.85] lg:left-0 lg:top-0 lg:scale-[1.2]"
link="https://prod.spline.design/a1qdk8yVQfNTh2jB/scene.splinecode"
link={WELCOME_CONSTANTS.SPLINE_LINK}
/>
<div className="w-full h-screen max-w-screen-xl px-5 py-5 lg:px-20 lg:py-14">
<section className="w-full lg:w-3/5">
Expand Down

0 comments on commit 1195803

Please sign in to comment.