Skip to content

Commit

Permalink
♻️ Use common components
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Apr 25, 2024
1 parent e83a3f0 commit 9bfd5e0
Show file tree
Hide file tree
Showing 18 changed files with 173 additions and 541 deletions.
64 changes: 64 additions & 0 deletions src/app/common/Collaborators.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import Image from 'next/image'

import { Container } from '@/app/foundation/components/Container'

const sponsors = [
{
name: 'AWS',
logo: 'https://avatars.githubusercontent.com/u/2232217?s=200&v=4',
},
{
name: 'GitHub',
logo: 'https://pbs.twimg.com/profile_images/1633247750010830848/8zfRrYjA_400x400.png',
},
{
name: 'Meta',
logo: 'https://pbs.twimg.com/profile_images/1453818753880190978/HqrrEcrI_400x400.png',
},
{
name: 'DigitalOcean',
logo: 'https://pbs.twimg.com/profile_images/1755167733543534592/xEeaRe3u_400x400.jpg',
},
{
name: 'IBM',
logo: 'https://pbs.twimg.com/profile_images/1677090954350583811/Xy93qVY4_400x400.jpg',
},
{
name: 'IndiaStack',
logo: 'https://avatars.githubusercontent.com/u/22743981?s=200&v=4',
},
{
name: 'F6S',
logo: 'https://pbs.twimg.com/profile_images/1613595555506028554/NtANypQl_400x400.jpg',
},
]

export function Collaborators() {
return (
<section id="collaborators" className="py-20 sm:py-32">
<Container>
<h2 className="mx-auto max-w-2xl text-center font-display text-4xl font-bold tracking-tighter text-primary-600 sm:text-5xl">
Collaborating for impact.
</h2>
<p className="mx-auto mt-4 max-w-2xl text-center text-lg tracking-tighter text-primary-900">
Our partners in previous events, investments, and open source
projects, and the companies we have collaborated with.
</p>
<div className="mx-auto mt-20 flex max-w-5xl flex-wrap items-center justify-center gap-8 text-center font-bold text-primary-900">
{sponsors.map((sponsor) => (
<div key={sponsor.name} className="space-y-4 text-sm">
<Image
src={sponsor.logo}
alt=""
width={100}
height={100}
className="h-24 w-24 rounded-2xl border shadow"
/>
<div className="truncate">{sponsor.name}</div>
</div>
))}
</div>
</Container>
</section>
)
}
38 changes: 38 additions & 0 deletions src/app/common/Foundation.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { Button } from '@/app/holdings/components/Button'
import { Container } from '@/app/holdings/components/Container'

export function Foundation({ externalLink }: { externalLink?: boolean }) {
return (
<section id="foundation" className="py-20 sm:py-32">
<Container className="relative z-10 flex justify-end">
<div className="mx-auto max-w-2xl lg:mx-0 lg:max-w-4xl lg:pr-24">
<h2 className="font-display text-4xl font-bold tracking-tighter text-primary-600 sm:text-5xl">
Chowdhary.org
</h2>
<p className="mt-4 font-display text-2xl tracking-tight text-primary-900">
At the heart of Chowdhary.org&rsquo;s Foundation lies a resolute
commitment to leveraging technology for the greater good. Our
Foundation is the cornerstone of our mission, where we focus on
nurturing and supporting a wide array of initiatives that make a
tangible difference.
</p>
<p className="mt-4 font-display text-lg tracking-tight text-primary-900">
From empowering communities with digital education to funding
research for sustainable tech solutions, our Foundation operates at
the intersection of innovation and social responsibility. Here,
every project we undertake is more than just an investment in
technology; it&rsquo;s an investment in hope, progress, and a better
future for all.
</p>
<div className="ml-12 mt-8">
{externalLink ? (
<Button href="https://chowdhary.org">Visit Chowdhary.org</Button>
) : (
<Button href="#apply">Apply for a grant</Button>
)}
</div>
</div>
</Container>
</section>
)
}
38 changes: 38 additions & 0 deletions src/app/common/Holdings.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { Button } from '@/app/holdings/components/Button'
import { Container } from '@/app/holdings/components/Container'

export function Holdings({ externalLink }: { externalLink?: boolean }) {
return (
<section id="holdings" className="py-20 sm:py-32">
<Container className="relative z-10 flex justify-end">
<div className="mx-auto max-w-2xl lg:mx-0 lg:max-w-4xl lg:pr-24">
<h2 className="font-display text-4xl font-bold tracking-tighter text-primary-600 sm:text-5xl">
Chowdhary.co
</h2>
<p className="mt-4 font-display text-2xl tracking-tight text-primary-900">
At Chowdhary.co, we bring bold ideas to life. This dynamic platform
is dedicated to identifying, investing in, and nurturing early-stage
startups that are poised to revolutionize the way we address global
challenges. We believe in the power of entrepreneurial spirit
combined with technological innovation to create impactful
solutions.
</p>
<p className="mt-4 font-display text-lg tracking-tight text-primary-900">
Chowdhary Holdings isn&rsquo;t just about funding; it&rsquo;s about
building partnerships that foster growth, drive change, and set new
benchmarks in the tech world. Join us as we embark on this journey
to transform visionary ideas into realities that can reshape our
world.
</p>
<div className="ml-12 mt-8">
{externalLink ? (
<Button href="https://chowdhary.co">Visit Chowdhary.co</Button>
) : (
<Button href="#apply">Apply for an investment</Button>
)}
</div>
</div>
</Container>
</section>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export function Logo(props: React.ComponentPropsWithoutRef<'svg'>) {
fill="black"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
fillRule="evenodd"
clipRule="evenodd"
d="M64.5 0H48.375V15.7518L32.25 15.7518V32.25H16.125L16.125 48.6015H0V64.7265V80.8515H16.125L16.125 96.75H32.25L32.25 96.8135V112.938H48.8293V129H64.9542H64.9543H81.0792V112.938H96.75V96.8135V96.75H112.875V80.625H129V64.5V48.375H112.875V32.25H96.75V15.7518L80.625 15.7518V0H64.5Z"
fill="currentColor"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/app/foundation/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Logo } from '@/app/common/Logo'
import { Container } from '@/app/foundation/components/Container'
import { Logo } from '@/app/foundation/components/Logo'
import { IconBrandGithub, IconBrandLinkedin } from '@tabler/icons-react'

export function Footer() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/foundation/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Logo } from '@/app/common/Logo'
import { Button } from '@/app/holdings/components/Button'
import { Container } from '@/app/holdings/components/Container'
import { Logo } from '@/app/holdings/components/Logo'

export function Header() {
return (
Expand Down
18 changes: 1 addition & 17 deletions src/app/foundation/components/Projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ interface Day {
title: string
label: string
href: string
image: string
summary: string
}

Expand All @@ -20,44 +19,34 @@ const projects: Array<Day> = [
href: 'https://karuna2020.org',
summary:
'Karuna 2020 distributed over 100,000 masks to frontline workers like healthcare and police personnel across India during the COVID-19 pandemic.',
image:
'https://open-data.karuna2020.org/attachments/distribution/rec806JSxue4OQVJo/distribution-pictures/att8qN4RQoSetJmsX/large.jpeg',
},
{
title: '2,500+ families sustained with meals',
label: 'Karuna 2020',
href: 'https://karuna2020.org',
summary:
'Karuna 2020 distributed over 2,500 dry ration kits to families migrant workers during the COVID-19 lockdown. Each kit can help sustain a family for 4 for one month.',
image:
'https://open-data.karuna2020.org/attachments/social-media-outreach/recTbhT7eGL85y1CP/pictures/attrJ8tnT5qytXdBH/large.png',
},
{
title: 'A hackathon to solve problems for India',
label: 'BharatHacks',
href: 'https://bharathacks.github.io',
summary:
'Over 100 engineers, designers, and entrepreneurs participated in the free hackathon and launched products during the weekend of June 17–18, 2018.',
image:
'https://static.businessworld.in/article/article_extra_large_image/1501157938_HTEbTk_event.jpg',
},
{
title: 'A platform to celebrate Indian entrepreneurs',
label: 'Made with Love in India',
href: 'https://madewithloveinindia.org',
summary:
'Made with Love in India is an open platform to celebrate, promote, and build a brand — India. Find the most exciting new startups and products from Indian entrepreneurs.',
image:
'https://d33wubrfki0l68.cloudfront.net/5357825bedd9698cbacd1757adb183b689f23f70/73c7e/images/projects/mwlii/cover.png',
},
{
title: 'Open source template for nonprofits',
label: 'Karuna 2020 Open Data',
summary:
'GitHub repository with Airtable and Google Sheets integrations for openly sharing contributors, donors, beneficiaries, and more information.',
href: 'https://open-data.karuna2020.org',
image:
'https://images.unsplash.com/photo-1591522810850-58128c5fb089?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
},
]

Expand All @@ -82,11 +71,6 @@ function ScheduleStatic() {
key={day.title}
className="rounded-b-lg bg-white/60 shadow-xl shadow-primary-900/5 backdrop-blur"
>
<img
alt=""
src={day.image}
className="h-48 w-full rounded-t-lg object-cover"
/>
<div className="space-y-6 px-10 py-10">
<DaySummary day={day} />
<footer className="ml-12 " style={{ zoom: 0.8 }}>
Expand Down Expand Up @@ -125,7 +109,7 @@ export function Projects() {
>
Anand Chowdhary
</a>
, founder of Chowdhary.org and Chowdhary.co
, founder
</div>
</div>
</Container>
Expand Down
65 changes: 0 additions & 65 deletions src/app/foundation/components/Schedule.tsx

This file was deleted.

Loading

0 comments on commit 9bfd5e0

Please sign in to comment.