Skip to content

Commit 263c9c5

Browse files
committed
yipes, starting to modify react code
replacing SVGs with PNGs in HomepageFeatures
1 parent 81c956c commit 263c9c5

12 files changed

+33
-403
lines changed

docusaurus.config.ts

+17-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type * as Preset from '@docusaurus/preset-classic';
44

55
const config: Config = {
66
title: 'Hemlock Docs',
7-
tagline: 'Hemlock is the mobile apps for Evergreen™ libraries',
7+
tagline: 'Hemlock is the mobile app for Evergreen™ libraries',
88
favicon: 'img/favicon.ico',
99

1010
url: 'https://kenstir.github.io',
@@ -65,21 +65,33 @@ const config: Config = {
6565
style: 'dark',
6666
links: [
6767
{
68-
title: 'Related Repositories',
6968
items: [
7069
{
71-
label: 'Android App Source Code',
70+
label: 'Android App',
7271
href: 'https://github.com/kenstir/hemlock',
7372
},
73+
],
74+
},{
75+
items: [
7476
{
75-
label: 'iOS App Source Code',
77+
label: 'iOS App',
7678
href: 'https://github.com/kenstir/hemlock-ios',
7779
},
80+
],
81+
},{
82+
items: [
7883
{
79-
label: 'Push Notification Service Source Code',
84+
label: 'Push Notification Service',
8085
href: 'https://github.com/kenstir/hemlock-sendmsg',
8186
},
8287
],
88+
},{
89+
items: [
90+
{
91+
label: 'Evergreen',
92+
href: 'https://evergreen-ils.org/',
93+
},
94+
],
8395
},
8496
],
8597
copyright: `Copyright © ${new Date().getFullYear()} Kenneth H. Cox. Built with Docusaurus.`,

src/components/HomepageFeatures/index.tsx

+13-15
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,46 @@ import styles from './styles.module.css';
44

55
type FeatureItem = {
66
title: string;
7-
Svg: React.ComponentType<React.ComponentProps<'svg'>>;
7+
Img: React.ComponentType<React.ComponentProps<'png'>>;
88
description: JSX.Element;
99
};
1010

1111
const FeatureList: FeatureItem[] = [
1212
{
13-
title: 'Easy to Use',
14-
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
13+
title: 'Android',
14+
Img: require('@site/static/img/screenshot-android.png').default,
1515
description: (
1616
<>
17-
Docusaurus was designed from the ground up to be easily installed and
18-
used to get your website up and running quickly.
17+
Hemlock is a native Android app, written in Kotlin.
1918
</>
2019
),
2120
},
2221
{
23-
title: 'Focus on What Matters',
24-
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
22+
title: 'iOS',
23+
Img: require('@site/static/img/screenshot-ios.png').default,
2524
description: (
2625
<>
27-
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
28-
ahead and move your docs into the <code>docs</code> directory.
26+
Hemlock is a native iOS app, written in Swift.
2927
</>
3028
),
3129
},
3230
{
33-
title: 'Powered by React',
34-
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
31+
title: 'Powered by Evergreen™',
32+
Img: require('@site/static/img/screenshot-staffclient.png').default,
3533
description: (
3634
<>
37-
Extend or customize your website layout by reusing React. Docusaurus can
38-
be extended while reusing the same header and footer.
35+
Hemlock uses the same Evergreen server
36+
as the online catalog, so it never has stale data.
3937
</>
4038
),
4139
},
4240
];
4341

44-
function Feature({title, Svg, description}: FeatureItem) {
42+
function Feature({title, Img, description}: FeatureItem) {
4543
return (
4644
<div className={clsx('col col--4')}>
4745
<div className="text--center">
48-
<Svg className={styles.featureSvg} role="img" />
46+
<img className={styles.featureImg} src={Img} alt={title} />
4947
</div>
5048
<div className="text--center padding-horiz--md">
5149
<Heading as="h3">{title}</Heading>

src/components/HomepageFeatures/styles.module.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
width: 100%;
66
}
77

8-
.featureSvg {
9-
height: 200px;
8+
.featureImg {
9+
height: 420px;
1010
width: 200px;
1111
}

src/pages/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function HomepageHeader() {
1616
{siteConfig.title}
1717
</Heading>
1818
<p className="hero__subtitle">{siteConfig.tagline}</p>
19+
<p className="hero__subtitle">These are the docs</p>
1920
<div className={styles.buttons}>
2021
<Link
2122
className="button button--secondary button--lg"

static/img/docusaurus-social-card.jpg

-54.4 KB
Binary file not shown.

static/img/docusaurus.png

-5.02 KB
Binary file not shown.

static/img/screenshot-android.png

540 KB
Loading

static/img/screenshot-ios.png

75.7 KB
Loading

static/img/screenshot-staffclient.png

988 KB
Loading

static/img/undraw_docusaurus_mountain.svg

-171
This file was deleted.

static/img/undraw_docusaurus_react.svg

-170
This file was deleted.

static/img/undraw_docusaurus_tree.svg

-40
This file was deleted.

0 commit comments

Comments
 (0)