Skip to content

Commit 750bbb9

Browse files
authored
Merge pull request #104 from nyandika/develop
2 parents fffa5dc + 6bf7143 commit 750bbb9

6 files changed

Lines changed: 49 additions & 27 deletions

File tree

e2e/default.spec.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

e2e/home.spec.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import { expect, test } from '@playwright/test';
2+
3+
test.beforeEach(async ({ page }) => {
4+
await page.goto('http://localhost:3000');
5+
});
6+
7+
test.describe('Home page tests', () => {
8+
test('should show the title', async ({ page }) => {
9+
await expect(
10+
page.getByRole('heading', { name: 'React Developer Community Kenya' })
11+
).toBeVisible();
12+
});
13+
14+
test("should show 'Join Community' button", async ({ page }) => {
15+
await expect(
16+
page.getByRole('link', { name: 'Join Community' })
17+
).toBeVisible();
18+
});
19+
20+
test('should show About Us section', async ({ page }) => {
21+
await expect(page.getByRole('heading', { name: 'About Us' })).toBeVisible();
22+
});
23+
24+
test('should show Mission Pillars section', async ({ page }) => {
25+
await expect(
26+
page.getByRole('heading', { name: 'Our Mission Pillars' })
27+
).toBeVisible();
28+
});
29+
30+
test('should show Events section', async ({ page }) => {
31+
await expect(page.getByRole('heading', { name: 'Events' })).toBeVisible();
32+
});
33+
34+
test('should show Contact Us section', async ({ page }) => {
35+
await expect(
36+
page.getByRole('heading', { name: 'Contact Us' })
37+
).toBeVisible();
38+
});
39+
});
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
import React from 'react';
2-
31
export default function AboutUs() {
42
return (
53
<section
64
id="about-us"
75
className="flex flex-col max-w-2xl justify-center items-center self-center space-y-4 px-4"
86
>
9-
<p className="text-3xl md:text-6xl tracking-wide md:font-light ">
10-
ABOUT US
11-
</p>
7+
<h2 className="text-3xl md:text-6xl tracking-wide md:font-light uppercase">
8+
About Us
9+
</h2>
1210
<p className="hidden md:inline-block text-4xl font-bold ">
1311
Empowering great talent
1412
</p>

src/components/Events/Events.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Link from 'next/link';
2-
import React from 'react';
32
import type { EventData } from '../../types/index';
43
import DisplayRC from './DisplayRC';
54

@@ -61,9 +60,9 @@ export default function Events() {
6160
id="events"
6261
className="relative flex flex-col items-center justify-center w-full py-16 bg-white md:py-20 gap-y-2 md:gap-y-5"
6362
>
64-
<p className="flex items-center justify-center font-light tracking-wide">
63+
<h2 className="flex items-center justify-center font-light tracking-wide">
6564
Events
66-
</p>
65+
</h2>
6766
<h2 className="pb-2 text-2xl font-bold md:pb-10">Community Events</h2>
6867
<div className="grid grid-cols-1 gap-y-4 md:gap-y-10 gap-x-6 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 xl:gap-x-8 md:grid-cols-2 bg-[#09AFC6] px-4 md:px-10 lg:px-16 py-8 md:py-14 xl:py-16">
6968
{events.map((event) => (

src/components/MissionPillars/MissionPillars.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import React from 'react';
2-
import Pillar from '../Pillar/Pillar';
31
import Image from 'next/image';
2+
import Pillar from '../Pillar/Pillar';
43

54
export default function MissionPillars() {
65
return (
76
<section className="flex flex-col w-full md:justify-center items-center bg-white md:bg-[#CEEDF4] py-12 space-y-10">
8-
<p className="md:uppercase font-bold md:font-light text-2xl md:text-5xl">
7+
<h2 className="md:uppercase font-bold md:font-light text-2xl md:text-5xl">
98
Our Mission Pillars
10-
</p>
9+
</h2>
1110
<div className="flex flex-col md:flex-row md:items-center md:justify-center w-full px-6 space-y-4 md:space-x-6">
1211
<div className="flex">
1312
<Pillar count="01" label="Mentorship" />

src/pages/index.page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import Head from 'next/head';
22
import Image from 'next/image';
33
import logo from '../../public/reactdevske.svg';
4-
import Events from '../components/Events/Events';
5-
import AboutUs from '../components/about-us/about-us';
4+
import AboutUs from '../components/AboutUs/AboutUs';
65
import ContactUs from '../components/ContactUs';
6+
import Events from '../components/Events/Events';
77
import MissionPillars from '../components/MissionPillars/MissionPillars';
88

99
export default function Home() {

0 commit comments

Comments
 (0)