Ignore:
Timestamp:
05/13/26 00:35:13 (8 weeks ago)
Author:
Andrej <asumanovski@…>
Branches:
master
Children:
447c39f
Parents:
a8381b1
Message:

Fixed auth issue

Location:
frontend/src/pages/LandingPage/components
Files:
4 added
8 edited

Legend:

Unmodified
Added
Removed
  • frontend/src/pages/LandingPage/components/Benefits.jsx

    ra8381b1 r42da64d  
    4343  return (
    4444    <section id="benefits" className="px-[5%] py-16 md:py-24 lg:py-28">
    45       <div className="container">
     45      <div className="mx-auto w-full max-w-6xl">
    4646        <div className="text-center mb-16 md:mb-20">
    4747          <p className="font-semibold text-sm md:text-base mb-3 md:mb-4">
    4848            Why Trekr
    4949          </p>
    50           <h2 className="text-4xl md:text-6xl lg:text-7xl font-bold mb-6">
     50          <h2 className="font-bold mb-6 text-3xl sm:text-4xl md:text-5xl lg:text-6xl leading-tight">
    5151            Designed for serious progress
    5252          </h2>
  • frontend/src/pages/LandingPage/components/Faq.jsx

    ra8381b1 r42da64d  
    66  AccordionTrigger,
    77} from "@relume_io/relume-ui";
     8
     9import { FaqDefaults } from "./Faq.defaults";
    810
    911export const Faq = (props) => {
     
    1618    button,
    1719  } = {
    18     ...Faq1Defaults,
     20    ...FaqDefaults,
    1921    ...props,
    2022  };
     
    2426      className="px-[5%] py-16 md:py-24 lg:py-28 flex items-center justify-center"
    2527    >
    26       <div className="container max-w-lg">
     28      <div className="mx-auto w-full max-w-2xl">
    2729        <div className="rb-12 mb-12 text-center md:mb-18 lg:mb-20">
    28           <h2 className="rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl">
     30          <h2 className="rb-5 mb-5 font-bold text-4xl sm:text-5xl md:mb-6 md:text-6xl lg:text-7xl leading-tight">
    2931            {heading}
    3032          </h2>
    31           <p className="md:text-md">{description}</p>
     33          <p className="text-sm sm:text-base md:text-lg opacity-80">
     34            {description}
     35          </p>
    3236        </div>
    3337        <Accordion type="multiple">
     
    4751            {footerHeading}
    4852          </h4>
    49           <p className="md:text-md">{footerDescription}</p>
     53          <p className="text-sm sm:text-base md:text-lg opacity-80">
     54            {footerDescription}
     55          </p>
    5056          <div className="mt-6 md:mt-8">
    5157            <Button {...button}>{button.title}</Button>
     
    5662  );
    5763};
    58 
    59 export const Faq1Defaults = {
    60   heading: "Frequently asked questions",
    61   description:
    62     "Quick answers on how Trekr helps you track self-improvement across multiple areas — in one place.",
    63   questions: [
    64     {
    65       title: "What can I track in Trekr?",
    66       answer:
    67         "Workouts (type and duration), weight & nutrition (goal, calories), finances & budgeting (income and expenses), investing (portfolio and returns), and discipline (daily tasks you can check off).",
    68     },
    69     {
    70       title: "Do I need multiple apps to do all this?",
    71       answer:
    72         "No — Trekr is designed to unify the most important self-improvement categories so you can get a clear overview without switching between tools.",
    73     },
    74     {
    75       title: "How do goals and progress tracking work?",
    76       answer:
    77         "You set a goal (for example: target weight or monthly budget), then log daily/weekly data. Trekr helps you see where you are vs. the goal and how you're trending over time.",
    78     },
    79     {
    80       title: "Where is my data stored?",
    81       answer:
    82         "Your entries are stored in a database and linked to your user profile so you can track progress consistently over time.",
    83     },
    84     {
    85       title: "Is Trekr a mobile app?",
    86       answer:
    87         "Right now Trekr is a web app. The goal is a fast, simple experience on both mobile and desktop in the browser.",
    88     },
    89   ],
    90   footerHeading: "Still have questions?",
    91   footerDescription: "Send us a message and we’ll help you get started.",
    92   button: {
    93     title: "Contact",
    94     variant: "secondary",
    95   },
    96 };
  • frontend/src/pages/LandingPage/components/Features.jsx

    ra8381b1 r42da64d  
    4646      className="px-[5%] py-16 md:py-24 lg:py-28 bg-base-200"
    4747    >
    48       <div className="container">
     48      <div className="mx-auto w-full max-w-6xl">
    4949        <div className="text-center mb-16 md:mb-20">
    5050          <p className="font-semibold text-sm md:text-base mb-3 md:mb-4">
    5151            What you can track
    5252          </p>
    53           <h2 className="text-4xl md:text-6xl lg:text-7xl font-bold mb-6">
     53          <h2 className="font-bold mb-6 text-3xl sm:text-4xl md:text-5xl lg:text-6xl leading-tight">
    5454            Everything in one dashboard
    5555          </h2>
  • frontend/src/pages/LandingPage/components/Footer.jsx

    ra8381b1 r42da64d  
    44const Footer = () => {
    55  return (
    6     <footer className="footer sm:footer-horizontal bg-neutral text-neutral-content p-10">
     6    <footer className="footer sm:footer-horizontal bg-neutral text-neutral-content p-8 sm:p-10">
    77      <aside>
    88        <img src={logo} alt="Trekr" className="h-10 w-auto" />
  • frontend/src/pages/LandingPage/components/Hero.jsx

    ra8381b1 r42da64d  
    1919  return (
    2020    <div
    21       className="hero min-h-screen"
     21      className="hero min-h-[calc(100vh-4rem)] bg-cover bg-center"
    2222      style={{
    2323        backgroundImage:
     
    2626    >
    2727      <div className="hero-overlay"></div>
    28       <div className="hero-content text-neutral-content text-center">
    29         <div className="max-w-md">
    30           <h1 className="mb-5 text-5xl font-bold">
     28      <div className="hero-content text-neutral-content text-center px-4 py-16 sm:py-24">
     29        <div className="w-full max-w-2xl">
     30          <h1 className="mb-5 font-bold text-3xl sm:text-4xl md:text-5xl lg:text-6xl leading-tight">
    3131            Trekr — track progress, every day
    3232          </h1>
    33           <p className="mb-5">
     33          <p className="mb-6 text-sm sm:text-base md:text-lg opacity-90">
    3434            One self-improvement hub: workouts, weight & nutrition, finances &
    3535            budgeting, investing, and daily discipline tasks. Set goals, log
     
    3737          </p>
    3838          <Link
    39             className="btn btn-primary !text-white"
     39            className="btn btn-primary !text-white btn-sm sm:btn-md md:btn-lg"
    4040            to={isAuthed ? "/dashboard" : "/register"}
    4141          >
  • frontend/src/pages/LandingPage/components/HowItWorks.jsx

    ra8381b1 r42da64d  
    11import { Button } from "@relume_io/relume-ui";
    2 import { RxChevronRight } from "react-icons/rx";
     2import { HowItWorksDefaults } from "./HowItWorks.defaults.jsx";
    33
    44export const HowItWorks = (props) => {
     
    99  return (
    1010    <section id="relume" className="px-[5%] py-16 md:py-24 lg:py-28">
    11       <div className="container">
     11      <div className="mx-auto w-full max-w-6xl">
    1212        <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>
     13          <div className="text-center md:text-left">
    1414            <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">
     15            <h1 className="rb-5 mb-5 font-bold text-4xl sm:text-5xl md:mb-6 md:text-6xl lg:text-7xl leading-tight">
    1616              {heading}
    1717            </h1>
    18             <p className="md:text-md">{description}</p>
     18            <p className="text-sm sm:text-base md:text-lg opacity-80">
     19              {description}
     20            </p>
    1921            <div className="mt-6 flex flex-wrap items-center gap-4 md:mt-8">
    2022              {buttons.map((button, index) => (
     
    2830            <img
    2931              src={image.src}
    30               className="w-full object-cover"
     32              className="w-full rounded-2xl object-cover"
    3133              alt={image.alt}
    3234            />
     
    3840};
    3941
    40 export 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 };
     42
  • frontend/src/pages/LandingPage/components/NavbarLanding.jsx

    ra8381b1 r42da64d  
    2727
    2828  return (
    29     <div className="navbar bg-primary text-primary-content shadow-sm">
    30       <div className="navbar-start">
     29    <div className="navbar bg-primary text-primary-content shadow-sm px-4 sm:px-6">
     30      <div className="navbar-start flex-1 min-w-0">
    3131        <Link
    3232          className="btn btn-ghost text-primary-content"
     
    3737        </Link>
    3838      </div>
    39       <div className="navbar-end">
     39      <div className="navbar-end flex-none">
    4040        {isAuthed ? (
    41           <div className="flex items-center gap-2 mr-6">
     41          <div className="flex flex-wrap items-center justify-end gap-2 sm:gap-3">
    4242            <Link
    43               className="btn btn-outline border-primary-content text-primary-content"
     43              className="btn btn-sm sm:btn-md btn-outline border-primary-content text-primary-content"
    4444              to="/dashboard"
    4545            >
     
    4747            </Link>
    4848            <button
    49               className="btn btn-outline border-primary-content text-primary-content"
     49              className="btn btn-sm sm:btn-md btn-outline border-primary-content text-primary-content"
    5050              onClick={onLogout}
    5151            >
     
    5555        ) : (
    5656          <Link
    57             className="btn btn-tertiary text-blue-200! px-8 mr-6"
     57            className="btn btn-sm sm:btn-md btn-tertiary text-blue-200! px-6 sm:px-8"
    5858            to="/login"
    5959          >
  • frontend/src/pages/LandingPage/components/Who.jsx

    ra8381b1 r42da64d  
    11import { Button } from "@relume_io/relume-ui";
    2 import { RxChevronRight } from "react-icons/rx";
     2import { WhoDefaults } from "./Who.defaults.jsx";
    33
    44export const Who = (props) => {
     
    99  return (
    1010    <section id="relume" className="px-[5%] py-16 md:py-24 lg:py-28">
    11       <div className="container">
     11      <div className="mx-auto w-full max-w-6xl">
    1212        <div className="grid grid-cols-1 gap-y-12 md:grid-cols-2 md:items-center md:gap-x-12 lg:gap-x-20">
    1313          <div className="order-2 md:order-1">
    1414            <img
    1515              src={image.src}
    16               className="w-full object-cover"
     16              className="w-full rounded-2xl object-cover"
    1717              alt={image.alt}
    1818            />
    1919          </div>
    20           <div className="order-1 lg:order-2">
     20          <div className="order-1 lg:order-2 text-center md:text-left">
    2121            <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">
     22            <h2 className="rb-5 mb-5 font-bold text-4xl sm:text-5xl md:mb-6 md:text-6xl lg:text-7xl leading-tight">
    2323              {heading}
    2424            </h2>
    25             <p className="md:text-md">{description}</p>
     25            <p className="text-sm sm:text-base md:text-lg opacity-80">
     26              {description}
     27            </p>
    2628            <div className="mt-6 flex flex-wrap gap-4 md:mt-8">
    2729              {buttons.map((button, index) => (
     
    3840};
    3941
    40 export 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 TracChangeset for help on using the changeset viewer.