Skip to content

Commit 931edf6

Browse files
committed
Add feature list and description to home page
* Implement FeatureListItem component * Add div below login container in <main> element with text, feature list
1 parent c3126ed commit 931edf6

11 files changed

Lines changed: 169 additions & 72 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ yarn-error.log*
3030
.env.production.local
3131

3232
.vercel
33+
34+
.vscode
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import featureListItem from "./featureListItem.module.css";
2+
import Image from "next/image";
3+
4+
export default function FeatureListItem({
5+
heading,
6+
description,
7+
imgSrc,
8+
imgWidth = 32,
9+
imgHeight = 32,
10+
}) {
11+
return (
12+
<li className={featureListItem.featureListItem}>
13+
<div className={featureListItem.firstRow}>
14+
<Image layout="fixed" src={imgSrc} height={imgWidth} width={imgHeight} />
15+
<h3>{heading}</h3>
16+
</div>
17+
<p>{description}</p>
18+
</li>
19+
);
20+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.featureListItem {
2+
flex: 1 1 400px;
3+
padding: 0.5em;
4+
}
5+
6+
.firstRow {
7+
display: flex;
8+
flex-direction: row;
9+
align-items: center;
10+
}
11+
12+
.featureListItem h3 {
13+
margin: 10px;
14+
}

package-lock.json

Lines changed: 61 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
"@material-ui/core": "^4.11.2",
1616
"@material-ui/icons": "^4.11.2",
1717
"@material/fab": "^8.0.0",
18-
"next": "^10.0.4",
18+
"next": "^10.0.5",
1919
"react": "16.13.1",
2020
"react-dom": "16.13.1",
2121
"showdown": "^1.9.1"
2222
},
2323
"devDependencies": {
24-
"@types/node": "^14.14.19",
24+
"@types/node": "^14.14.20",
2525
"@types/react": "^17.0.0",
2626
"typescript": "^4.1.3"
2727
}

pages/Login/login.js

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import Link from "next/link";
2+
import Image from "next/image";
23
import login from "./login.module.css";
34
import LogoImage from "../../components/logoImage";
45
import FormField from "../../components/FormField/formField";
56
import ProgressSpinner from "../../components/CircularProgress/circularProgress";
67
import { useRef, useState } from "react";
78
import { CONTENT_STATE } from "../../libs/view";
89
import { submitLogin } from "../../libs/Datastore/requests";
10+
import FeatureListItem from "../../components/FeatureListItem/featureListItem";
911

1012
export default function Login({ fade, onFadeInHome, setFade }) {
1113
const [email, setEmail] = useState("");
@@ -80,7 +82,7 @@ export default function Login({ fade, onFadeInHome, setFade }) {
8082
fade == CONTENT_STATE.INVISIBLE ? fade : `${fade} ${login.main}`
8183
}
8284
>
83-
<div className={login.grid}>
85+
<div className={login.login}>
8486
<LogoImage />
8587
<h1>Login to Borum Jot</h1>
8688
<form
@@ -117,6 +119,47 @@ export default function Login({ fade, onFadeInHome, setFade }) {
117119
</Link>
118120
</div>
119121
</div>
122+
<div className={login.whyBorumJotContainer}>
123+
<h2>Achieve More with Borum Jot</h2>
124+
<p>
125+
Borum Jot stores your notes and tasks so you can access them
126+
on the web or with the Android app
127+
</p>
128+
<ul className={login.featureList}>
129+
<FeatureListItem
130+
imgSrc="/images/no-money.png"
131+
heading="Modern experience"
132+
description="No ads or hidden prices"
133+
/>
134+
<FeatureListItem
135+
imgSrc="/images/cloud-sync.png"
136+
heading="Always within reach"
137+
description="Accessible on an Android device or the web, syncing automatically"
138+
/>
139+
<FeatureListItem
140+
imgSrc="/images/padlock.png"
141+
heading="Privacy"
142+
description="Your notes and tasks are securely encrypted"
143+
/>
144+
<FeatureListItem
145+
imgSrc="/images/share.png"
146+
imgWidth={35}
147+
imgHeight={55}
148+
heading="Collaboration"
149+
description="Share notes and collaborate with others"
150+
/>
151+
<FeatureListItem
152+
imgSrc="/images/pin.png"
153+
heading="Prioritize"
154+
description="Pin your notes and tasks to the top of the lists"
155+
/>
156+
<FeatureListItem
157+
imgSrc="/images/to-do-list.png"
158+
heading="Stay organized"
159+
description="Make subtasks for your tasks and check them off when finished"
160+
/>
161+
</ul>
162+
</div>
120163
</main>
121164
);
122165
}

0 commit comments

Comments
 (0)