source: frontend/src/pages/LandingPage/components/HowItWorks.jsx@ 793ce2c

Last change on this file since 793ce2c was 793ce2c, checked in by Andrej <asumanovski@…>, 5 months ago

Landing page design

  • Property mode set to 100644
File size: 1.9 KB
Line 
1import { Button } from "@relume_io/relume-ui";
2import { RxChevronRight } from "react-icons/rx";
3
4export const HowItWorks = (props) => {
5 const { tagline, heading, description, buttons, image } = {
6 ...HowItWorksDefaults,
7 ...props,
8 };
9 return (
10 <section id="relume" className="px-[5%] py-16 md:py-24 lg:py-28">
11 <div className="container">
12 <div className="grid grid-cols-1 gap-y-12 md:grid-cols-2 md:items-center md:gap-x-12 lg:gap-x-20">
13 <div>
14 <p className="mb-3 font-semibold md:mb-4">{tagline}</p>
15 <h1 className="rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl">
16 {heading}
17 </h1>
18 <p className="md:text-md">{description}</p>
19 <div className="mt-6 flex flex-wrap items-center gap-4 md:mt-8">
20 {buttons.map((button, index) => (
21 <Button key={index} {...button}>
22 {button.title}
23 </Button>
24 ))}
25 </div>
26 </div>
27 <div>
28 <img
29 src={image.src}
30 className="w-full object-cover"
31 alt={image.alt}
32 />
33 </div>
34 </div>
35 </div>
36 </section>
37 );
38};
39
40export const HowItWorksDefaults = {
41 tagline: "How it works",
42 heading: "Log it. Track it. Improve it.",
43 description:
44 "Log what matters to your goals — workouts, weight/calories, budgets, investments, and daily tasks. Trekr gives you a clear view of trends over time so you can stay consistent and keep moving forward.",
45 buttons: [
46 { title: "Start free", variant: "secondary" },
47 {
48 title: "See a quick overview",
49 variant: "link",
50 size: "link",
51 iconRight: <RxChevronRight />,
52 },
53 ],
54 image: {
55 src: "https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1600&q=80",
56 alt: "Progress and goals overview on a laptop",
57 },
58};
Note: See TracBrowser for help on using the repository browser.