22
33import { FC, useEffect, useState } from "react";
44import { Button } from "@/components/ui/button";
5+ import { Hero } from "@/components/Hero";
6+ import { WhySection } from "@/components/WhySection";
57import { Card, CardContent } from "@/components/ui/card";
68import {
79 FaBook,
@@ -16,6 +18,10 @@ import {
1618} from "react-icons/fa";
1719import { supabase } from "@/lib/supabase";
1820import { motion } from "framer-motion";
21+ import { PrivacyBanner } from "@/components/PrivacyBanner";
22+ import { ProductHighlights } from "@/components/ProductHighlights";
23+ import { AboutSection } from "@/components/AboutSection";
24+ import { Footer } from "@/components/Footer";
1925
2026// Define Book type
2127interface Book {
@@ -51,200 +57,14 @@ const HomePage: FC = () => {
5157 }, []);
5258
5359 return (
54- <motion.div
55- className="min-h-screen bg-gray-100 flex flex-col items-center p-6"
56- initial={{ opacity: 0 }}
57- animate={{ opacity: 1 }}
58- transition={{ duration: 1, ease: "easeOut" }}
59- >
60- <motion.h1
61- className="text-5xl font-bold text-center text-gray-900"
62- initial={{ opacity: 0, y: -20 }}
63- animate={{ opacity: 1, y: 0 }}
64- transition={{ duration: 1.25, ease: "easeOut" }}
65- >
66- Welcome to Encorpora
67- </motion.h1>
68-
69- <motion.p
70- className="text-2xl text-gray-700 text-center mt-4 max-w-2xl"
71- initial={{ opacity: 0, scale: 0 }}
72- animate={{ opacity: 1, scale: 1 }}
73- transition={{ duration: 1.33, ease: "easeOut", delay: 0.8 }}
74- >
75- Education Engineered for You
76- </motion.p>
77-
78- {/* Top-Level Calls to Action */}
79- <div className="mt-8 flex flex-wrap justify-center gap-6">
80- {/* 1. Free Educational Materials */}
81- <Card className="w-80 shadow-lg">
82- <CardContent className="p-6 flex flex-col items-center text-center">
83- <FaBook className="text-blue-500 text-5xl" />
84- <h2 className="text-xl font-semibold mt-4">Free Educational Materials Available Now</h2>
85- <p className="text-gray-600 mt-2">
86- Download our free, high-quality resources including textbooks, worksheets, and more.
87- </p>
88- <a href="/books" target="_blank" rel="noopener noreferrer">
89- <Button className="mt-4">Explore Books</Button>
90- </a>
91- </CardContent>
92- </Card>
93-
94- {/* 2. Personalized Learning Journeys (Coming Soon) */}
95- <Card className="w-80 shadow-lg">
96- <CardContent className="p-6 flex flex-col items-center text-center">
97- <FaUserGraduate className="text-green-500 text-5xl" />
98- <h2 className="text-xl font-semibold mt-4">
99- Personalized Learning Journeys (Coming Soon)
100- </h2>
101- <p className="text-gray-600 mt-2">
102- Our curriculum evolves with you, delivering custom lessons for your unique learning path.
103- </p>
104- <Button className="mt-4" disabled>
105- Launching Soon
106- </Button>
107- </CardContent>
108- </Card>
109-
110- {/* 3. Top-Quality Textbooks (Coming Soon) */}
111- <Card className="w-80 shadow-lg">
112- <CardContent className="p-6 flex flex-col items-center text-center">
113- <FaSchool className="text-red-500 text-5xl" />
114- <h2 className="text-xl font-semibold mt-4">
115- Accredited Programs (Coming Soon)
116- </h2>
117- <p className="text-gray-600 mt-2">
118- We craft specialized textbooks for K-12, CLEP, and AP, inspired by real homeschooling success.
119- </p>
120- <Button className="mt-4" disabled>
121- Stay Tuned
122- </Button>
123- </CardContent>
124- </Card>
125- </div>
126-
127- {/* Consulting & Partnerships */}
128- <motion.div
129- className="mt-12 w-full max-w-3xl px-6 text-center"
130- initial={{ opacity: 0, scale: 0 }}
131- animate={{ opacity: 1, scale: 1 }}
132- transition={{ duration: 2, ease: "easeOut", delay: 1.5 }}
133- >
134- <h2 className="text-3xl font-semibold flex flex-col items-center">
135- <FaHandshake className="text-blue-500 text-4xl mb-2" />
136- Consulting & Partnerships
137- </h2>
138- <p className="text-gray-700 mt-2">
139- We offer <strong>custom books, dynamic learning solutions, and tailored software development</strong>.
140- </p>
141- <p className="text-gray-600 mt-2">
142- Whether you're looking for a partnership in education technology or a fully customized learning experience,
143- we can build something amazing together.
144- </p>
145- <motion.div
146- className="mt-4 flex flex-col sm:flex-row justify-center items-center gap-4 text-lg font-semibold"
147- initial={{ opacity: 0, scale: 0 }}
148- animate={{ opacity: 1, scale: 1 }}
149- transition={{ duration: 3, ease: "easeOut", delay: 3 }}
150- >
151- <a href="mailto:team@encorpora.io" className="text-blue-600 hover:underline flex items-center gap-2">
152- <FaEnvelope className="text-xl" /> team@encorpora.io
153- </a>
154- <a href="tel:+17703765331" className="text-blue-600 hover:underline flex items-center gap-2">
155- <FaPhone className="text-xl" /> 770-376-5331
156- </a>
157- </motion.div>
158- </motion.div>
159-
160- {/* About Encorpora Section */}
161- <div className="mt-10 flex flex-wrap justify-center gap-6">
162- <Card className="w-80 shadow-lg">
163- <CardContent className="p-6 text-center">
164- {/* New icon and heading */}
165- <FaBookReader className="text-blue-500 text-5xl mx-auto" />
166- <h2 className="text-xl font-semibold text-gray-900 mt-4">
167- Personalized Learning Tools
168- </h2>
169- <p className="text-gray-600 mt-2">
170- We craft custom textbooks tailored to your unique interests. Our
171- approach ensures every learner is challenged and engaged.
172- </p>
173- </CardContent>
174- </Card>
175-
176- <Card className="w-80 shadow-lg">
177- <CardContent className="p-6 text-center">
178- <FaLightbulb className="text-yellow-500 text-5xl mx-auto" />
179- <h2 className="text-xl font-semibold text-gray-900 mt-4">
180- Empowering Student Potential
181- </h2>
182- <p className="text-gray-600 mt-2">
183- We believe education should be truly interactive and adaptable.
184- Experience a dynamic platform that sparks curiosity and exploration.
185- </p>
186- </CardContent>
187- </Card>
188-
189- <Card className="w-80 shadow-lg">
190- <CardContent className="p-6 text-center">
191- <FaRocket className="text-red-500 text-5xl mx-auto" />
192- <h2 className="text-xl font-semibold text-gray-900 mt-4">
193- Revolutionizing Education Together
194- </h2>
195- <p className="text-gray-700 mt-2">
196- We blend software and teaching expertise together into a platform
197- that drives students to thrive. We are Encorpora.
198- </p>
199- </CardContent>
200- </Card>
201- </div>
202-
203- {/* Featured Books */}
204- <div className="mt-16 text-center max-w-3xl">
205- <h2 className="text-3xl font-semibold">Featured Books</h2>
206- <p className="text-gray-700 mt-2">
207- Explore our growing collection of free educational materials.
208- </p>
209- </div>
210-
211- {/* Featured Books List */}
212- <div className="mt-10 flex flex-wrap justify-center gap-6">
213- {loading ? (
214- <p className="text-gray-600">Loading featured books...</p>
215- ) : featuredBooks.length === 0 ? (
216- <p className="text-gray-600">No featured books available.</p>
217- ) : (
218- featuredBooks.map((book) => (
219- <Card key={book.id} className="w-80 shadow-lg">
220- <CardContent className="p-6 text-center">
221- <h3 className="text-lg font-semibold">{book.title}</h3>
222- <p className="text-gray-600">{book.description}</p>
223- <a href={book.link} target="_blank" rel="noopener noreferrer">
224- <Button className="mt-4">Download</Button>
225- </a>
226- </CardContent>
227- </Card>
228- ))
229- )}
230- </div>
231-
232- {/* View All Books Link */}
233- <div className="mt-6">
234- <a
235- href="/books"
236- target="_blank"
237- rel="noopener noreferrer"
238- className="text-blue-600 font-semibold hover:underline"
239- >
240- View All Books →
241- </a>
242- </div>
243-
244- <footer className="mt-16 text-gray-500 text-sm">
245- © {new Date().getFullYear()} Corpora Inc - All Rights Reserved.
246- </footer>
247- </motion.div>
60+ <>
61+ <Hero />
62+ <WhySection />
63+ <PrivacyBanner />
64+ <ProductHighlights />
65+ <AboutSection />
66+ <Footer />
67+ </>
24868 );
24969};
25070
0 commit comments