Skip to content

Commit

Permalink
Fixed the website seo and added one more section
Browse files Browse the repository at this point in the history
  • Loading branch information
nomandhoni-cs committed Nov 18, 2024
1 parent 92d25bb commit 0825e91
Show file tree
Hide file tree
Showing 14 changed files with 485 additions and 78 deletions.
20 changes: 13 additions & 7 deletions website/app/(home)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import DownloadApp from '@/components/download-app';
import { FeatureGrid } from '@/components/features';
import OpenSource from '@/components/open-source';
import { HoverCard, HoverCardContent, HoverCardTrigger } from '@/components/ui/hover-card';
import Link from 'next/link';
import DownloadApp from "@/components/download-app";
import { FeatureGrid } from "@/components/features";
import OpenSource from "@/components/open-source";
import {
HoverCard,
HoverCardContent,
HoverCardTrigger,
} from "@/components/ui/hover-card";
import Link from "next/link";
import {
AudioLinesIcon,
Calendar,
Expand All @@ -14,9 +18,10 @@ import {
Timer,
ToggleRight,
} from "lucide-react";
import PricingSection from '@/components/pricing-section';
import PricingSection from "@/components/pricing-section";
import HowBlinkEyeWillHelp from "@/components/how-blink-eye-will-help";
const RootPage = () => {
return (
return (
<section className="mx-auto flex flex-col items-center gap-3 sm:gap-5 py-8 md:py-16 md:pb-8 lg:py-24 lg:pb-8">
<h1 className="text-center text-3xl font-bold leading-tight tracking-tighter md:text-6xl lg:leading-[1.1] max-w-sm md:max-w-6xl">
<span className="font-bold text-[#FE4C55]"> Blink Eye </span> <br /> A
Expand Down Expand Up @@ -106,6 +111,7 @@ const RootPage = () => {
]}
/>
<PricingSection />
<HowBlinkEyeWillHelp />
<OpenSource />
</div>
</section>
Expand Down
14 changes: 14 additions & 0 deletions website/app/howblinkeyehelps/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import HowBlinkEyeWillHelp from "@/components/how-blink-eye-will-help";
import { Metadata } from "next";
export const metadata: Metadata = {
title: "How Blink Eye Helps",
};
const HowBlinkEyeHelpsPage = () => {
return (
<>
<HowBlinkEyeWillHelp />
</>
);
};

export default HowBlinkEyeHelpsPage;
1 change: 1 addition & 0 deletions website/app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const sitemap = async (): Promise<MetadataRoute.Sitemap> => {
"/privacy",
"/pricing",
"/changelog",
"/howblinkeyehelps",
];

// Fetch release data from GitHub API
Expand Down
Binary file modified website/bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions website/components/download-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const DownloadApp = async () => {
return (
<div className="relative max-w-6xl h-full py-8 rounded-xl">
<div className="relative z-10 flex flex-col justify-center items-center space-y-4">
<h2 className="font-bold text-3xl leading-[1.1] sm:text-3xl md:text-5xl">
Download Now
<h2 className="mt-2 text-balance text-4xl font-semibold tracking-tight sm:text-5xl">
Download Free & Start Now
</h2>
<div className="flex flex-col items-center space-y-4 md:space-y-6 w-full px-4">
{/* Platform Row */}
Expand Down
4 changes: 2 additions & 2 deletions website/components/features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ export function FeatureGrid(props: {
className="container space-y-6 py-8 md:py-12 lg:py-24"
>
<div className="mx-auto flex max-w-6xl flex-col items-center space-y-4 text-center">
<h2 className="font-bold text-3xl leading-[1.1] sm:text-3xl md:text-5xl">
<h2 className="mt-2 text-balance text-5xl font-semibold tracking-tight sm:text-6xl">
{props.title}
</h2>
<p className="max-w-[85%] text-gray-700 dark:text-gray-200 sm:text-lg">
<p className="mx-auto mt-6 max-w-2xl text-pretty text-center text-lg font-medium text-gray-600 dark:text-gray-300 sm:text-xl/8">
{props.subtitle}
</p>
</div>
Expand Down
239 changes: 239 additions & 0 deletions website/components/how-blink-eye-will-help.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion";
import {
EyeIcon,
ActivityIcon,
BrainIcon,
ZapIcon,
HeartIcon,
ClockIcon,
SettingsIcon,
BookOpenIcon,
SunIcon,
} from "lucide-react";

export default function HowBlinkEyeWillHelp() {
// const [openAccordion, setOpenAccordion] = useState<string | null>(null);

const benefits = [
{
title: "Eye Care and Protection",
description:
"Protect your eyes from digital strain, reduce blue light exposure, and prevent Computer Vision Syndrome (CVS).",
icon: EyeIcon,
details: [
{
subtitle: "Prevent Digital Eye Strain",
content:
"Scheduled breaks reduce symptoms like dry eyes, blurry vision, and headaches, ensuring long-term eye health.",
},
{
subtitle: "Blue Light Protection",
content:
"Rest your eyes regularly with prompts designed to combat the harmful effects of blue light exposure.",
},
],
},
{
title: "Physical Health",
description:
"Improve posture, prevent Repetitive Strain Injuries (RSI), and reduce physical discomfort.",
icon: ActivityIcon,
details: [
{
subtitle: "Prevent Repetitive Strain Injuries (RSI)",
content:
"Regular breaks minimize strain on your hands and wrists, preventing long-term damage from repetitive tasks.",
},
{
subtitle: "Support Better Posture",
content:
"Encourages stretching and posture checks to avoid issues like tech neck and back pain.",
},
],
},
{
title: "Mental Wellness",
description:
"Boost your focus, mindfulness, and reduce stress effortlessly.",
icon: BrainIcon,
details: [
{
subtitle: "Enhance Focus and Mindfulness",
content:
"Regular breaks help you stay sharp and focused while reducing mental fatigue and burnout.",
},
{
subtitle: "Stress Management",
content:
"Use break intervals to practice relaxation techniques, reducing work-induced stress and tension.",
},
],
},
{
title: "Boosted Productivity",
description:
"Work smarter, not harder, with productivity-focused methods.",
icon: ZapIcon,
details: [
{
subtitle: "Pomodoro Technique Integration",
content:
"Break tasks into manageable intervals for efficient work sessions, improving task completion rates.",
},
{
subtitle: "Cognitive Efficiency",
content:
"Strategic breaks enhance your mental performance, helping you achieve more with less effort.",
},
],
},
{
title: "Healthy Screen-Time Habits",
description:
"Develop disciplined screen-time practices and minimize unnecessary distractions.",
icon: HeartIcon,
details: [
{
subtitle: "Structured Screen-Time",
content:
"Build healthy digital habits with well-timed reminders for work and relaxation balance.",
},
{
subtitle: "Reduce Multitasking",
content:
"Focus fully on tasks by minimizing distractions during your work and relaxation cycles.",
},
],
},
{
title: "Sustainable Long-Term Benefits",
description:
"Avoid chronic issues and maintain balance for years to come.",
icon: ClockIcon,
details: [
{
subtitle: "Prevent Chronic Vision Problems",
content:
"Take proactive measures to reduce risks of long-term digital vision problems caused by screen overuse.",
},
{
subtitle: "Achieve Work-Life Balance",
content:
"Create sustainable habits for work and personal life with a balanced approach to productivity.",
},
],
},
{
title: "Flexible and Customizable",
description:
"Tailor your experience to fit your lifestyle, profession, and individual needs.",
icon: SettingsIcon,
details: [
{
subtitle: "Customizable Break Timers",
content:
"Set intervals that match your workflow, ensuring the app complements your unique schedule.",
},
{
subtitle: "Built for Everyone",
content:
"Whether you’re a student, developer, designer, or remote worker, the app adapts to your needs.",
},
],
},
{
title: "Research-Backed Benefits",
description:
"Enjoy features grounded in productivity and wellness studies.",
icon: BookOpenIcon,
details: [
{
subtitle: "Evidence-Based Features",
content:
"The app’s design is inspired by research in productivity, focus, and digital well-being.",
},
{
subtitle: "Trusted by Users",
content:
"Real user testimonials and success stories validate its effectiveness and value.",
},
],
},
{
title: "Enhanced Energy and Mood",
description:
"Feel energized and stay positive throughout the day with balanced work breaks.",
icon: SunIcon,
details: [
{
subtitle: "Boost Daily Energy",
content:
"Short, regular breaks help recharge your mind and body, keeping you energized for the day ahead.",
},
{
subtitle: "Maintain a Positive Mood",
content:
"Break the monotony of continuous screen time to reduce frustration and enhance your overall mood.",
},
],
},
];

return (
<div className="container mx-auto px-4 py-8">
<div className="mx-auto max-w-4xl text-center py-4">
<h2 className="mt-2 text-balance text-5xl font-semibold tracking-tight sm:text-6xl">
How Blink Eye Will Help You
</h2>
</div>
<p className="mx-auto mt-6 max-w-6xl text-pretty text-center text-lg font-medium text-gray-600 dark:text-gray-300 sm:text-xl/8 py-4">
<b>Take control of your well-being with Blink Eye. </b> Discover how
scheduled breaks can improve eye health, enhance focus, boost
productivity, and promote long-term wellness for a balanced digital
lifestyle.
</p>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
{benefits.map((benefit, index) => (
<Card key={index} className="flex flex-col h-full">
<CardHeader>
<div className="w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mb-4">
<benefit.icon className="w-6 h-6 text-primary" />
</div>
<CardTitle className="text-xl mb-2">{benefit.title}</CardTitle>
<CardDescription>{benefit.description}</CardDescription>
</CardHeader>
<CardContent>
<Accordion type="single" collapsible>
<AccordionItem value={`item-${index}`}>
<AccordionTrigger>Learn More</AccordionTrigger>
<AccordionContent>
{benefit.details.map((detail, detailIndex) => (
<div key={detailIndex} className="mb-4">
<h4 className="font-semibold mb-2">
{detail.subtitle}
</h4>
<p>{detail.content}</p>
</div>
))}
</AccordionContent>
</AccordionItem>
</Accordion>
</CardContent>
</Card>
))}
</div>
</div>
);
}
1 change: 1 addition & 0 deletions website/components/layout/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const routes = [
"/goodbye",
"/pricing",
"/changelog",
"/howblinkeyehelps",
];
export const Footer = () => {
const currentYear = getCurrentYear();
Expand Down
4 changes: 2 additions & 2 deletions website/components/pricing-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ export default function PricingSection({
return (
<div className="relative px-6 py-2 sm:py-2 lg:px-8">
<div className="mx-auto max-w-4xl text-center">
<p className="mt-2 text-balance text-5xl font-semibold tracking-tight sm:text-6xl">
<h2 className="mt-2 text-balance text-5xl font-semibold tracking-tight sm:text-6xl">
Choose the right plan for you
</p>
</h2>
</div>
<p className="mx-auto mt-6 max-w-2xl text-pretty text-center text-lg font-medium text-gray-600 dark:text-gray-300 sm:text-xl/8">
Choose an affordable plan that's packed with the best features for
Expand Down
Loading

0 comments on commit 0825e91

Please sign in to comment.