Skip to content

Replace Homepage Images with Feature #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 30, 2024
Merged
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
33 changes: 9 additions & 24 deletions src/components/HomepageFeatures/index.jsx
Original file line number Diff line number Diff line change
@@ -1,50 +1,35 @@
import React from 'react'
import clsx from 'clsx'
import styles from './styles.module.css'
import ThemedImage from '@theme/ThemedImage'

const FeatureList = [
{
title: 'Academics',
url: './docs/Academics',
svg: 'img/light/academics.svg',
svgDark: 'img/dark/academics.svg',
description: <>How to navigate NYU academics.</>
image: 'img/feature_academics.png',
description: <>How to navigate NYU academics</>
},
{
title: 'Opportunities',
url: './docs/Opportunities',
svg: 'img/light/opportunities.svg',
svgDark: 'img/dark/opportunities.svg',
description: (
<>
Which opportunities to pursue (and how to get them) inside and outside
of NYU.
</>
)
image: 'img/feature_opportunities.png',
description: <>Opportunities to pursue inside and outside of NYU</>

},
{
title: 'Recreation',
url: './docs/Recreation',
svg: 'img/light/recreation.svg',
svgDark: 'img/dark/recreation.svg',
description: <>Other fun stuff about NYU CS.</>
image: 'img/feature_recreation.png',
description: <>Other fun stuff about NYU</>
}
]

function Feature({ svg, svgDark, title, url, description }) {
function Feature({ image, title, url, description }) {
return (
<div className={clsx('col col--4')}>
<div className="text--center">
<a href={url}>
<ThemedImage
alt={title}
className={styles.featureSvg}
sources={{
light: require(`@site/static/${svg}`).default,
dark: require(`@site/static/${svgDark}`).default
}}
/>
<img src={image} alt={title} />
</a>
</div>
<div className="text--center padding-horiz--md">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function HomepageHeader() {
className="button button--secondary button--lg"
to="/docs/Academics"
>
Go to Wiki ⏱️
Go to Wiki 🐛
</Link>
</div>
</div>
Expand Down
Binary file added static/img/feature_academics.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 static/img/feature_opportunities.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 static/img/feature_recreation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.