source: frontend/src/pages/LandingPage/components/Who.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 Who = (props) => {
5 const { tagline, heading, description, buttons, image } = {
6 ...WhoDefaults,
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 className="order-2 md:order-1">
14 <img
15 src={image.src}
16 className="w-full object-cover"
17 alt={image.alt}
18 />
19 </div>
20 <div className="order-1 lg:order-2">
21 <p className="mb-3 font-semibold md:mb-4">{tagline}</p>
22 <h2 className="rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl">
23 {heading}
24 </h2>
25 <p className="md:text-md">{description}</p>
26 <div className="mt-6 flex flex-wrap gap-4 md:mt-8">
27 {buttons.map((button, index) => (
28 <Button key={index} {...button}>
29 {button.title}
30 </Button>
31 ))}
32 </div>
33 </div>
34 </div>
35 </div>
36 </section>
37 );
38};
39
40export const WhoDefaults = {
41 tagline: "Who it's for",
42 heading: "Anyone working on themselves",
43 description:
44 "Whether you're training regularly, trying to manage weight and nutrition, organizing your budget, tracking investments, or building discipline — Trekr brings your key habits and metrics together in one place.",
45 buttons: [
46 { title: "Create an account", variant: "secondary" },
47 {
48 title: "Learn more",
49 variant: "link",
50 size: "link",
51 iconRight: <RxChevronRight />,
52 },
53 ],
54 image: {
55 src: "https://images.unsplash.com/photo-1554284126-aa88f22d8b74?auto=format&fit=crop&w=1600&q=80",
56 alt: "Planning habits and routine",
57 },
58};
Note: See TracBrowser for help on using the repository browser.