Skip to content

Commit 80aada8

Browse files
committed
Updated descriptions on home page descriptions
1 parent f8ac980 commit 80aada8

File tree

2 files changed

+99
-25
lines changed

2 files changed

+99
-25
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<script setup>
2+
const { list, heading } = defineProps({
3+
list: Array,
4+
heading: String,
5+
});
6+
</script>
7+
8+
<template>
9+
<h2 class="font-work-sans text-5xl font-bold text-white">{{ heading }}</h2>
10+
<ul class="mt-4">
11+
<li v-for="line in list" :key="line" class="group">
12+
<div class="py-2">
13+
<div class="mr-16 pl-1 text-white">
14+
<div class="flex items-start text-base text-pink-600 text-nowrap">
15+
<svg class="ml-1 mr-2 mt-0.5 h-5 w-5 flex-none" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
16+
<path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5" />
17+
</svg>
18+
<p class="text-white"><span class="text-pink-600 font-semibold">{{ line.title }}: </span>{{ line.description }}</p>
19+
</div>
20+
</div>
21+
</div>
22+
</li>
23+
</ul>
24+
</template>

assets/components/Website/Pages/PageHome.vue

+75-25
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ import InfoSection from "./Home/InfoSection.vue";
1515
import GettingStarted from "./Home/Section/GettingStarted.vue";
1616
import TheWorkshops from "./Home/Section/TheWorkshops.vue";
1717
import BuildYourOwn from "./Home/Section/BuildYourOwn.vue";
18-
import { ChevronRightIcon } from "@heroicons/vue/24/solid";
18+
import HomeList from "./Home/HomeList.vue";
19+
1920
2021
import { SparklesIcon } from "@heroicons/vue/24/solid";
2122
import { useStudentStore } from "../../../stores/student";
@@ -117,6 +118,73 @@ onUnmounted(() => {
117118
window.removeEventListener("scroll", checkImages);
118119
window.removeEventListener("resize", debouncedCheckImages);
119120
});
121+
122+
const phpSchoolBreakdown = {
123+
openSource: {
124+
heading: "Open-Source Gateway To PHP Mastery",
125+
list: [
126+
{
127+
title: "Interactive Workshops",
128+
description: "Engaging sessions covering beginner to advanced topics in PHP"
129+
},
130+
{
131+
title: "Hands-On Learning",
132+
description: "Solve real-world problems through coding exercises"
133+
},
134+
{
135+
title: "Community Collaboration",
136+
description: "Contribute, fix bugs, and create your own workshops"
137+
},
138+
{
139+
title: "Open Source Education",
140+
description: "Access all workshops for free and learn at your own pace"
141+
}
142+
]
143+
},
144+
editor: {
145+
heading: "Seamless Online Coding Experience",
146+
list: [
147+
{
148+
title: "Effortless Access",
149+
description: "Login with your GitHub account and seamlessly navigate through workshops and exercises",
150+
},
151+
{
152+
title: "No Setup Hassle",
153+
description: "Say goodbye to complex setups and installations; our IDE is ready to use right from your browser",
154+
},
155+
{
156+
title: "Streamlined Interface",
157+
description: "Jump straight into coding with our intuitive web-based text editor, no additional tools or dependencies required",
158+
},
159+
{
160+
title: "Instant Start",
161+
description: "Begin coding instantly without the need for downloading or installing text editors, dependencies, or plugins",
162+
}
163+
]
164+
},
165+
assignments: {
166+
heading: "Work On Practical Assignments",
167+
list: [
168+
{
169+
title: "Real-World Challenges",
170+
description: "Complete practical problems that you will be sure to encounter in your respective field",
171+
},
172+
{
173+
title: "Level Up Your Problem Solving Skills",
174+
description: "Gain hands-on experience and develop critical problem-solving skills through immersive assignments"
175+
},
176+
{
177+
title: "Guided Progression",
178+
description: "Access detailed descriptions, code samples, and curated resources to support your problem-solving process"
179+
},
180+
{
181+
title: "Career Preparation",
182+
description: "Equip yourself with the skills necessary to excel in your chosen career path, ensuring readiness for the challenges ahead"
183+
}
184+
]
185+
},
186+
};
187+
120188
</script>
121189

122190
<template>
@@ -130,11 +198,11 @@ onUnmounted(() => {
130198
<!-- Section 1 -->
131199
<InfoSection>
132200
<template #left>
133-
<div class="mx-auto w-full lg:w-2/3">
201+
<div class="mx-auto w-full lg:w-2/3 lg:mb-36">
134202
<div class="relative flex items-center justify-center">
135203
<img class="cover" src="../../../img/cloud/pattern-bg-square.svg" alt="" />
136204
<div class="absolute mx-auto scale-75 sm:scale-100 md:left-auto">
137-
<div :ref="transitions.exerciseList" class="fadeIn translate-y-6 opacity-0 transition-all duration-[1000ms] ease-in lg:mb-36">
205+
<div :ref="transitions.exerciseList" class="fadeIn translate-y-6 opacity-0 transition-all duration-[1000ms] ease-in">
138206
<MockWorkshopExerciseList />
139207
</div>
140208
</div>
@@ -152,17 +220,7 @@ onUnmounted(() => {
152220

153221
<template #right>
154222
<div class="mt-28 w-full space-y-8 text-left sm:px-5 md:mt-36 lg:mt-0 lg:w-1/3">
155-
<h2 class="font-work-sans text-5xl font-bold text-white">Open-Source Gateway To PHP Mastery</h2>
156-
<div class="grid grid-cols-4">
157-
<div class="p-2 col-span-1 text-right w-4"><span class=" text-pink-600 text-xl font-semibold">&#62;</span></div>
158-
<div class="p-2 col-span-3 text-white xl:-ml-24 "><span class="text-pink-600 font-semibold">Interactive Workshops:</span><span> Engaging sessions covering beginner to advanced topics in PHP</span></div>
159-
<div class="p-2 col-span-1 text-right w-4"><span class=" text-pink-600 text-xl font-semibold">&#62;</span></div>
160-
<div class="p-2 col-span-3 text-white xl:-ml-24 "><span class="text-pink-600 font-semibold">Hands-On Learning:</span><span class="col-span-1"> Solve real-world problems through coding exercises</span></div>
161-
<div class="p-2 col-span-1 text-right w-4"><span class=" text-pink-600 text-xl font-semibold">&#62;</span></div>
162-
<div class="p-2 col-span-3 text-white xl:-ml-24 "><span class="text-pink-600 font-semibold">Community Collaboration:</span><span class="col-span-1"> Contribute, fix bugs, and create your own workshops</span></div>
163-
<div class="p-2 col-span-1 text-right w-4"><span class=" text-pink-600 text-xl font-semibold">&#62;</span></div>
164-
<div class="p-2 col-span-3 text-white xl:-ml-24 "><span class="text-pink-600 font-semibold">Open Source Education:</span><span class="col-span-1"> Access all workshops for free and learn at your own pace</span></div>
165-
</div>
223+
<HomeList :heading="phpSchoolBreakdown.openSource.heading" :list="phpSchoolBreakdown.openSource.list"></HomeList>
166224

167225
<div class="flex justify-start">
168226
<PrimaryButton to="/online">GET STARTED</PrimaryButton>
@@ -175,11 +233,7 @@ onUnmounted(() => {
175233
<InfoSection>
176234
<template #left>
177235
<div class="order-2 mt-8 w-full space-y-8 text-left sm:px-5 lg:order-1 lg:mt-0 lg:w-1/3">
178-
<h2 class="balanced font-work-sans text-5xl font-bold text-white">Online Browser Based IDE</h2>
179-
<p class="font-base font-work-sans text-lg text-white">
180-
Login in with your GitHub account, select a workshop, an exercise then jump straight in to our web based text editor (IDE). No complicated setup, no need to install tools, dependencies
181-
and text editors. Just jump in and start coding.
182-
</p>
236+
<HomeList :heading="phpSchoolBreakdown.editor.heading" :list="phpSchoolBreakdown.editor.list"></HomeList>
183237
<div class="flex justify-start">
184238
<PrimaryButton to="/online" class="flex items-center">
185239
<span v-if="studentStore.student">TO THE WORKSHOPS</span>
@@ -215,7 +269,7 @@ onUnmounted(() => {
215269
<!-- Section 3 -->
216270
<InfoSection>
217271
<template #left>
218-
<div class="relative mx-auto mt-20 w-full lg:w-2/3">
272+
<div class="relative mx-auto mt-8 w-full lg:w-2/3">
219273
<div class="relative flex items-center justify-center">
220274
<img class="" src="../../../img/cloud/pattern-bg-square-alt.svg" alt="" />
221275
<div :ref="transitions.mockProblemModal" class="fadeIn absolute translate-y-6 opacity-0 transition-all duration-[1000ms] ease-in">
@@ -236,11 +290,7 @@ onUnmounted(() => {
236290

237291
<template #right>
238292
<div class="mt-28 w-full space-y-8 text-left sm:mt-40 sm:px-5 lg:mb-40 lg:w-1/3">
239-
<h2 class="font-work-sans text-5xl font-bold text-white">Work on practical assignments</h2>
240-
<p class="font-base font-work-sans text-lg text-white">
241-
Level up your problem solving skills whilst tackling practical problems that you will be sure to encounter in your chosen career path as a software developer. Each exercise comes with a
242-
description, code samples to get you started, links to documentation and other resources to help you solve the problem.
243-
</p>
293+
<HomeList :heading="phpSchoolBreakdown.assignments.heading" :list="phpSchoolBreakdown.assignments.list"></HomeList>
244294
<div class="flex justify-start">
245295
<PrimaryButton to="/online">GET STARTED</PrimaryButton>
246296
</div>

0 commit comments

Comments
 (0)