Skip to content
Draft
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
90 changes: 42 additions & 48 deletions app/(pages)/(index-page)/_components/Sponsers/Sponsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Image from 'next/image';

type Sponsor = { id: string; src?: string; url?: string; alt?: string };

function SponsorElement({ src, url, alt }: Sponsor) {
function SponsorElement({ src, alt }: Sponsor) {
return (
<div
className="
Expand All @@ -20,9 +20,9 @@ function SponsorElement({ src, url, alt }: Sponsor) {
>
<div className="absolute inset-[10%]">
<a
href={url ?? '#'}
target="_blank"
rel="noopener noreferrer"
// href={url ?? '#'}
// target="_blank"
// rel="noopener noreferrer"
className="block w-full h-full"
>
<Image
Expand Down Expand Up @@ -83,6 +83,12 @@ function SponserRow({

export default function Sponsers() {
const row1_images: Sponsor[] = [
{
id: 'asucd',
src: '/Images/sponsers/asucd.png',
url: 'https://asucd.ucdavis.edu/',
alt: 'ASUCD Logo',
},
{
id: 'ucdavis',
src: '/Images/sponsers/ucd.png',
Expand All @@ -96,70 +102,58 @@ export default function Sponsers() {
alt: 'UC Davis Department of Computer Science Logo',
},
{
id: 'ucdavis-again',
src: '/Images/sponsers/ucd.png',
url: 'https://www.ucdavis.edu/',
alt: 'University of California Davis Logo',
},
{
id: 'ucdcs-again',
src: '/Images/sponsers/ucdcs.png',
url: 'https://cs.ucdavis.edu/',
alt: 'UC Davis Department of Computer Science Logo',
id: 'davisautonomyclub',
src: '/Images/sponsers/Davis_Autonomy_Club.png',
url: 'https://www.davisautonomy.com/',
alt: 'Davis Autonomy Club Logo',
},
];

const row2_images: Sponsor[] = [
{
id: 'ucdavis-2',
src: '/Images/sponsers/ucd.png',
url: 'https://www.ucdavis.edu/',
alt: 'University of California Davis Logo',
id: 'exa',
src: '/Images/sponsers/exa.png',
url: 'https://exa.ai/',
alt: 'Exa AI Logo',
},
{
id: 'ucdcs-2',
src: '/Images/sponsers/ucdcs.png',
url: 'https://cs.ucdavis.edu/',
alt: 'UC Davis Department of Computer Science Logo',
id: 'reconstruct',
src: '/Images/sponsers/reconstruct.png',
url: 'https://reconstruct.app/',
alt: 'Reconstruct Logo',
},
{
id: 'ucdavis-again-2',
src: '/Images/sponsers/ucd.png',
url: 'https://www.ucdavis.edu/',
alt: 'University of California Davis Logo',
id: 'anthropic',
src: '/Images/sponsers/Anthropic.png',
url: 'https://www.anthropic.com/',
alt: 'Anthropic Logo',
},
{
id: 'ucdcs-again-2',
src: '/Images/sponsers/ucdcs.png',
url: 'https://cs.ucdavis.edu/',
alt: 'UC Davis Department of Computer Science Logo',
id: 'figma',
src: '/Images/sponsers/figma.svg.png',
url: 'https://figma.com/',
alt: 'figma Logo',
},
];

const row3_images: Sponsor[] = [
{
id: 'ucdavis-3',
src: '/Images/sponsers/ucd.png',
url: 'https://www.ucdavis.edu/',
alt: 'University of California Davis Logo',
},
{
id: 'ucdcs-3',
src: '/Images/sponsers/ucdcs.png',
url: 'https://cs.ucdavis.edu/',
alt: 'UC Davis Department of Computer Science Logo',
id: 'datalab',
src: '/Images/sponsers/datalab.webp',
url: 'https://commons.ucdavis.edu/datalab',
alt: 'datalab Logo',
},
{
id: 'ucdavis-again-3',
src: '/Images/sponsers/ucd.png',
url: 'https://www.ucdavis.edu/',
alt: 'University of California Davis Logo',
id: 'msba',
src: '/Images/sponsers/MSBA.webp',
url: 'https://gsm.ucdavis.edu/master-science-business-analytics',
alt: 'MSBA Logo',
},
{
id: 'ucdcs-again-3',
src: '/Images/sponsers/ucdcs.png',
url: 'https://cs.ucdavis.edu/',
alt: 'UC Davis Department of Computer Science Logo',
id: 'srrc',
src: '/Images/sponsers/srrc.png',
url: 'https://srrc.ucdavis.edu/',
alt: 'srrc Logo',
},
];

Expand Down
52 changes: 26 additions & 26 deletions app/(pages)/(index-page)/_components/heroInfo/heroInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default function HeroInfo() {
Check out the{' '}
</span>
<div className="flex items-center gap-2 text-black text-[19px]">
Apply to be a{' '}
{/* Apply to be a{' '}
<FormLink
href="https://forms.gle/rvMKjxw6GjiaKPjc7"
includeComma={false}
Expand All @@ -163,7 +163,7 @@ export default function HeroInfo() {
includeComma={false}
>
<span style={{ color: '#9EE7E5' }}>Volunteer</span>
</FormLink>
</FormLink> */}
{/* <span>or</span>
<FormLink href="" includeComma={false}>
<span style={{ color: '#FFC5AB' }}>Mentor</span>
Expand Down Expand Up @@ -222,30 +222,30 @@ export default function HeroInfo() {
);
}

interface FormLinkProps {
href: string;
includeComma: boolean;
children: React.ReactNode;
}
// interface FormLinkProps {
// href: string;
// includeComma: boolean;
// children: React.ReactNode;
// }

function FormLink({ href, includeComma, children }: FormLinkProps) {
return (
<Link
href={href}
className="group flex items-center text-[16px] md:text-[18px] font-bold tracking-[0.48px] text-black md:text-[20px]"
target="_blank"
>
<span className="font-bold">{children}</span>
// function FormLink({ href, includeComma, children }: FormLinkProps) {
// return (
// <Link
// href={href}
// className="group flex items-center text-[16px] md:text-[18px] font-bold tracking-[0.48px] text-black md:text-[20px]"
// target="_blank"
// >
// <span className="font-bold">{children}</span>

<Image
src="/Images/reghero/icon_arrow.svg"
alt="Arrow icon"
width={10}
height={10}
className="m-1 object-contain transition-transform group-hover:translate-x-1"
/>
// <Image
// src="/Images/reghero/icon_arrow.svg"
// alt="Arrow icon"
// width={10}
// height={10}
// className="m-1 object-contain transition-transform group-hover:translate-x-1"
// />

{includeComma && <span>,</span>}
</Link>
);
}
// {includeComma && <span>,</span>}
// </Link>
// );
// }
Binary file added public/Images/sponsers/Anthropic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/Images/sponsers/Davis_Autonomy_Club.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/Images/sponsers/MSBA.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/Images/sponsers/asucd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/Images/sponsers/datalab.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/Images/sponsers/exa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/Images/sponsers/figma.svg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/Images/sponsers/reconstruct.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/Images/sponsers/srrc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading