Skip to content

Commit

Permalink
fix: content stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhgray committed Oct 31, 2023
1 parent c21d368 commit 274297b
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 13 deletions.
2 changes: 1 addition & 1 deletion web/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default function Home() {
</div> */}
<HorizontalTranslate mainRef={mainRef} title={"Wall of Fame"} style={{ scale: fameScale }}>
<CardsContainer style={{ paddingLeft: screenWidth > 650 ? "100px" : "5vw", paddingRight: screenWidth > 650 ? "100px" : "5vw" }} className='text-dark' ref={fameRef}>
{fame.map((f, i) => <FameCard key={"fame" + i} i={(numFameInView > i) ? i : 0} title={f.title} />)}
{fame.map((f, i) => <FameCard img={f.img} key={"fame" + i} i={(numFameInView > i) ? i : 0} title={f.title} />)}
</CardsContainer>
</HorizontalTranslate>
</Section>
Expand Down
1 change: 1 addition & 0 deletions web/assets/mail.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions web/components/FameCard.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import Image from 'next/image';
import Button from './Button';
import { FC, ReactNode } from 'react';
import fameImage from '@/assets/fame.png'
import { title } from 'process';
import Card from './Card';
interface Props {
title: ReactNode;
i: number
i: number;
img: string;
}
const FameCard: FC<Props> = ({ title, i }) => {
const FameCard: FC<Props> = ({ title, i, img }) => {
return (
<Card bg={'white'} i={i}>
<div className='w-full p-5 border-2 border-black rounded-md '>
<Image src={fameImage} layout='responsive' width={300} height={300} alt='Logo' />
<div className='w-full border-2 border-black rounded-md aspect-square overflow-hidden'>
<Image src={img} className='w-full object-cover h-auto aspect-square' width={300} height={300} alt='Logo' />
</div>
<h2 className='my-3 font-mono text-3xl'>
<h2 className='my-3 font-mono text-1xl'>
{title}
</h2>
</Card>
);
}

export default FameCard;
export default FameCard;
1 change: 1 addition & 0 deletions web/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const Footer: FC<Props> = ({bg}) => {
</h1>
</div>
</div>
<p className='pl-2 flex gap-1 text-sm items-center'><Icon icon='mail' xsmall name='mail' link='mailto:[email protected]' /> [email protected]</p>
<div className='lg:m-0 gap-3 flex justify-between'>
{socials.map((social, i) => <Icon small key={"soc" + i} {...social} />)}
</div>
Expand Down
4 changes: 3 additions & 1 deletion web/components/Icons/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import youtube from "@/assets/youtube.svg";
import github from "@/assets/github-mark-white.svg"
import githubdark from "@/assets/github-mark.svg"
import web from "@/assets/web.svg"
import mail from "@/assets/mail.svg"

export const getIcon = (name: string) => {
const icons = {
Expand All @@ -22,7 +23,8 @@ export const getIcon = (name: string) => {
github,
githubdark,
linkedindark,
web
web,
mail
};
return icons[name as keyof typeof icons];
};
12 changes: 8 additions & 4 deletions web/content/fame.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
[
{
"title": "Best Club Award 2020"
"title": "Best Club Award 2020",
"img":"/fame.png"
},
{
"title": "Poll Police Project"
"title": "Poll Police Project",
"img":"/fame.png"
},
{
"title": "Built the tech for some of India's largest college fests"
"title": "Built the tech for some of India's largest college fests",
"img":"/riviera.png"
},
{
"title": "K number of participants"
"title": "2000+ participants in events",
"img":"/2000.jpeg"
}
]
Binary file added web/public/2000.jpeg
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 web/public/riviera.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 274297b

Please sign in to comment.