Skip to content

Commit 7b0e7d4

Browse files
committed
Adds course banner and content to the webview
1 parent fa076a9 commit 7b0e7d4

File tree

3 files changed

+113
-0
lines changed

3 files changed

+113
-0
lines changed

i18n/es/code.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@
280280
"index.main.likeUs": {
281281
"message": "Danos me gusta en Pub 👍"
282282
},
283+
283284
"index.powerfulCli.title": {
284285
"message": "Una Potente CLI"
285286
},

src/pages/index.tsx

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ export default function Home() {
107107
/>
108108
</section>
109109
</div>
110+
111+
112+
{/* ====== Forms Section ====== */}
110113
<section className="container text-center md:text-left flex gap-4 flex-col-reverse md:flex-row-reverse justify-evenly items-center min-h-[35vh] mx-auto py-16">
111114
<div>
112115
<motion.div
@@ -151,6 +154,55 @@ export default function Home() {
151154
alt=""
152155
/>
153156
</section>
157+
158+
159+
{/* ===== Course banner section ===== */}
160+
<div className="bg-gray-50">
161+
<section className="container text-center md:text-left flex gap-4 flex-col-reverse md:flex-row justify-evenly items-center min-h-[35vh] mx-auto py-16">
162+
<div>
163+
<motion.div
164+
initial={{ opacity: 0 }}
165+
whileInView={{ opacity: 1 }}
166+
className="flex justify-center md:justify-start"
167+
>
168+
<motion.h1 >🌍</motion.h1>
169+
</motion.div>
170+
<motion.h2
171+
initial={{ y: 100, opacity: 0 }}
172+
whileInView={{ y: 0, opacity: 1 }}
173+
transition={{
174+
duration: 0.6,
175+
type: "spring",
176+
bounce: 0.5,
177+
}}
178+
className="text-4xl"
179+
>
180+
<Translate id="index.course.title">An Official Stacked Web Course</Translate>
181+
</motion.h2>
182+
<motion.p
183+
initial={{ opacity: 0 }}
184+
whileInView={{ opacity: 1 }}
185+
transition={{ delay: 0.05 }}
186+
className="max-w-md text-xl"
187+
>
188+
<Translate id="index.course.description">A 29 chapter detailed course to building production applications with Stacked, on the Web</Translate>
189+
<Link to="https://masterflutterweb.carrd.co/" className="block mt-2">
190+
<Translate id="index.course.button">Learn More</Translate>
191+
</Link>
192+
</motion.p>
193+
</div>
194+
<motion.img
195+
initial={{ x: 100, opacity: 0 }}
196+
whileInView={{ x: 0, opacity: 1 }}
197+
transition={{ delay: 0.5, duration: 0.4 }}
198+
className="w-full max-w-2xl"
199+
src="/img/landing/course-cover.svg"
200+
alt=""
201+
/>
202+
</section>
203+
</div>
204+
205+
154206
<div className="bg-gray-50">
155207
<section className="container text-center md:text-left flex gap-4 flex-col justify-evenly items-center min-h-[35vh] mx-auto py-16">
156208
<motion.h3

0 commit comments

Comments
 (0)