Skip to content

Commit 16fec54

Browse files
committed
Add promo to landing page
1 parent b533d89 commit 16fec54

6 files changed

Lines changed: 59 additions & 1 deletion

File tree

web/src/components/home/Info.tsx

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import React from 'react';
2+
import LaptopScreen from './LaptopScreen';
3+
import Image from 'next/image';
4+
5+
import LabReport from '../../public/promo/Lab-Report-Example.png';
6+
import ShareExample from '../../public/promo/Share-Example.png';
7+
8+
const Info = () => (
9+
<div className="max-w-4xl mx-auto">
10+
<p className="flex flex-col items-center m-8 mx-auto text-6xl font-bold text-center">
11+
Collaborate
12+
</p>
13+
<p className="my-8 text-2xl font-bold">
14+
Collaborate effortlessly with Note Rack and work together with classmates.
15+
No more endless scrolling through handwritten notes or spending
16+
hours trying to find the right information.
17+
</p>
18+
19+
<div className="flex w-full mx-8 my-24">
20+
<div className="w-1/2">
21+
<p className="text-4xl font-bold">
22+
Share
23+
</p>
24+
<p className="my-2 text-lg font-bold">
25+
Share your notes with ease using Note Rack
26+
<br/>
27+
and collaborate seamlessly with your classmates.
28+
</p>
29+
</div>
30+
<div className="flex items-center justify-center w-1/2 h-full">
31+
<div className="relative flex">
32+
<LaptopScreen>
33+
<Image
34+
src={LabReport}
35+
className="rounded-md aspect-square"
36+
height={300}
37+
width={300}
38+
/>
39+
</LaptopScreen>
40+
<div className="absolute bottom-0 right-0 translate-x-[20%] translate-y-[20%]">
41+
<LaptopScreen>
42+
<Image
43+
src={ShareExample}
44+
width={177}
45+
height={137}
46+
/>
47+
</LaptopScreen>
48+
</div>
49+
</div>
50+
</div>
51+
</div>
52+
</div>
53+
);
54+
55+
export default Info;

web/src/components/home/Intro.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
import LaptopScreen from './LaptopScreen';
44
import Image from 'next/image';
55

6-
import NotesExample from '../../public/Notes-Example.png';
6+
import NotesExample from '../../public/promo/Notes-Example.png';
77

88
const Intro = () => (
99
<div className="mt-12">

web/src/pages/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Session from 'supertokens-auth-react/recipe/session';
55

66
import NavBar from '../components/home/NavBar';
77
import Intro from '../components/home/Intro';
8+
import Info from '../components/home/Info';
89

910
const Home: NextPage = () => {
1011
// TODO:EROXL: (2023-01-24) This should be done server side when the request is made
@@ -29,6 +30,8 @@ const Home: NextPage = () => {
2930
<NavBar />
3031

3132
<Intro />
33+
34+
<Info />
3235
</div>
3336
);
3437
};
128 KB
Loading
16 KB
Loading

0 commit comments

Comments
 (0)