|
1 | 1 | import React from 'react'
|
2 | 2 | import clsx from 'clsx'
|
3 | 3 | import styles from './styles.module.css'
|
4 |
| -import ThemedImage from '@theme/ThemedImage' |
5 | 4 |
|
6 | 5 | const FeatureList = [
|
7 | 6 | {
|
8 | 7 | title: 'Academics',
|
9 | 8 | url: './docs/Academics',
|
10 |
| - svg: 'img/light/academics.svg', |
11 |
| - svgDark: 'img/dark/academics.svg', |
12 |
| - description: <>How to navigate NYU academics.</> |
| 9 | + image: 'img/feature_academics.png', |
| 10 | + description: <>How to navigate NYU academics</> |
13 | 11 | },
|
14 | 12 | {
|
15 | 13 | title: 'Opportunities',
|
16 | 14 | url: './docs/Opportunities',
|
17 |
| - svg: 'img/light/opportunities.svg', |
18 |
| - svgDark: 'img/dark/opportunities.svg', |
19 |
| - description: ( |
20 |
| - <> |
21 |
| - Which opportunities to pursue (and how to get them) inside and outside |
22 |
| - of NYU. |
23 |
| - </> |
24 |
| - ) |
| 15 | + image: 'img/feature_opportunities.png', |
| 16 | + description: <>Opportunities to pursue inside and outside of NYU</> |
| 17 | + |
25 | 18 | },
|
26 | 19 | {
|
27 | 20 | title: 'Recreation',
|
28 | 21 | url: './docs/Recreation',
|
29 |
| - svg: 'img/light/recreation.svg', |
30 |
| - svgDark: 'img/dark/recreation.svg', |
31 |
| - description: <>Other fun stuff about NYU CS.</> |
| 22 | + image: 'img/feature_recreation.png', |
| 23 | + description: <>Other fun stuff about NYU</> |
32 | 24 | }
|
33 | 25 | ]
|
34 | 26 |
|
35 |
| -function Feature({ svg, svgDark, title, url, description }) { |
| 27 | +function Feature({ image, title, url, description }) { |
36 | 28 | return (
|
37 | 29 | <div className={clsx('col col--4')}>
|
38 | 30 | <div className="text--center">
|
39 | 31 | <a href={url}>
|
40 |
| - <ThemedImage |
41 |
| - alt={title} |
42 |
| - className={styles.featureSvg} |
43 |
| - sources={{ |
44 |
| - light: require(`@site/static/${svg}`).default, |
45 |
| - dark: require(`@site/static/${svgDark}`).default |
46 |
| - }} |
47 |
| - /> |
| 32 | + <img src={image} alt={title} /> |
48 | 33 | </a>
|
49 | 34 | </div>
|
50 | 35 | <div className="text--center padding-horiz--md">
|
|
0 commit comments