Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion e2e-tests/default.spec.js → e2e/default.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ test.beforeEach(async ({ page }) => {
test.describe('Basic test', () => {
test('should show the title', async ({ page }) => {
const title = page.locator('title');
await expect(title).toHaveText('React Devs Kenya');
await expect(title).toHaveText('Reactjs Developer Community in Kenya');
});
});
4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
pageExtensions: ['page.jsx', 'api.js'],
eslint: {
dirs: ['src','e2e'],
},
images:{
domains:['bit.ly']
}
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { devices } = require('@playwright/test');
* @type {import('@playwright/test').PlaywrightTestConfig}
*/
const config = {
testDir: './e2e-tests',
testDir: './e2e',
/* Maximum time one test can run for. */
timeout: 30 * 1000,
expect: {
Expand Down
File renamed without changes.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions src/components/Banner/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './Banner';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from "react";
import Image from "next/image";
import {booleanFilter} from '../util/booleanFilter';
import { booleanFilter } from '../../util/booleanFilter';

export default function DislpayRC({
name,
Expand Down
Empty file.
Empty file.
1 change: 1 addition & 0 deletions src/components/EventsDisplay/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {default} from './DisplayRC';
8 changes: 4 additions & 4 deletions components/Navbar.jsx → src/components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import Link from "next/link";
import Image from "next/image";
import logo from "../public/reactdevske.svg";
import logo from "../../../public/reactdevske.svg";
import {
ABOUT,
CONTACT,
Expand All @@ -10,13 +10,13 @@ import {
HOME,
MEMBERS,
NEWS,
} from "../util/routeConstants";
} from "../../util/routeConstants";

const Navbar = () => {
return (
<>
<header className="px-[181px] w-full shadow-md bg-white">
<nav className="nav py-4 flex justify-between items-center">
<nav className="nav py-4 flex flex-col lg:flex-row justify-between items-center">
<div>
<Link href={HOME}>
<a>
Expand All @@ -25,7 +25,7 @@ const Navbar = () => {
</Link>
</div>
<div className="">
<ul className="flex items-center space-x-[37px]">
<ul className="flex flex-col lg:flex-row justify-center items-center lg:space-x-[30px]">
<Link href={ABOUT}>
<a>
<li>About us</li>
Expand Down
Empty file.
Empty file.
1 change: 1 addition & 0 deletions src/components/Navbar/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './Navbar';
4 changes: 2 additions & 2 deletions pages/_app.jsx → src/pages/_app.page.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Navbar from "../components/Navbar.jsx";
import Navbar from "../components/Navbar";
import "../styles/globals.css";
import Banner from "../components/Banner.jsx";
import Banner from "../components/Banner";

function MyApp({ Component, pageProps }) {
return (
Expand Down
2 changes: 1 addition & 1 deletion pages/_document.jsx → src/pages/_document.page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class MyDocument extends Document {
/>
<link rel="icon" href="/favicon.ico" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin='true' />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800;900&display=swap"
rel="stylesheet"
Expand Down
Empty file added src/pages/about/about.spec.jsx
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion pages/about.jsx → src/pages/about/index.page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function AboutPage() {
return (
<>
<Head>
<title>React Devs Kenya - About</title>
<title>Reactjs Developer Community in Kenya - About</title>
</Head>
<main className="flex justify-center items-center min-h-screen">
<h1 className="text-white">About page will be here</h1>
Expand Down
File renamed without changes.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion pages/contact.jsx → src/pages/contact/index.page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function ContactPage() {
return (
<>
<Head>
<title>React Devs Kenya - Contact</title>
<title>Reactjs Developer Community in Kenya - Contact</title>
</Head>
<main className="flex justify-center items-center min-h-screen">
<h1 className="text-white">Contact page will be here</h1>
Expand Down
Empty file.
Empty file.
6 changes: 3 additions & 3 deletions pages/events.jsx → src/pages/events/index.page.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import DisplayRC from '../components/DisplayRC';
import logo from '../public/reactdevske.svg'
import DisplayRC from '../../components/EventsDisplay';
import logo from '../../../public/reactdevske.svg';
import Head from 'next/head';

export const getStaticProps = async () => {
Expand All @@ -24,7 +24,7 @@ export default function Events({data}){
return(
<div>
<Head>
<title>React Devs Kenya - Forum</title>
<title>Reactjs Developer Community in Kenya - Forum</title>
</Head>
<div className='bg-white flex flex-col w-full gap-y-5 px-16 py-6 justify-center items-center'>
<h2 className='text-2xl font-bold'>Community Events</h2>
Expand Down
Empty file added src/pages/forum/forum.spec.jsx
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion pages/forum.jsx → src/pages/forum/index.page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function ForumPage() {
return (
<>
<Head>
<title>React Devs Kenya - Forum</title>
<title>Reactjs Developer Community in Kenya - Forum</title>
</Head>
<main className="flex justify-center items-center min-h-screen">
<h1 className="text-white">Forum page will be here</h1>
Expand Down
6 changes: 3 additions & 3 deletions pages/index.jsx → src/pages/index.page.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import Head from "next/head";
import Banner from "../components/Banner";
import Image from "next/image";
import logo from "../public/reactdevske.svg";
import logo from "../../public/reactdevske.svg";

export default function Home() {
return (
<div className="">
<Head>
<title>React Devs Kenya</title>
<title>Reactjs Developer Community in Kenya</title>
<meta
name="description"
content="React js Developer Community Kenya is a community of react js developers using react related technologies in the Kenyan software development eco system."
Expand All @@ -21,7 +21,7 @@ export default function Home() {
</Head>

<main className="">
<h1 className="text-center text-3xl text-white font-bold font-montserrat">
<h1 className="text-center pt-6 text-3xl text-white font-bold font-montserrat">
React Developer Community Kenya
</h1>
<p className="text-center text-xl text-white font-montserrat">
Expand Down
2 changes: 1 addition & 1 deletion pages/members.jsx → src/pages/members/index.page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function MembersPage() {
return (
<>
<Head>
<title>React Devs Kenya - About</title>
<title>Reactjs Developer Community in Kenya - About</title>
</Head>
<main className="flex justify-center items-center min-h-screen">
<h1 className="text-white">Members page will be here</h1>
Expand Down
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion pages/news.jsx → src/pages/news/index.page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function NewsPage() {
return (
<>
<Head>
<title>React Devs Kenya - News</title>
<title>Reactjs Developer Community in Kenya - News</title>
</Head>
<main className="flex justify-center items-center min-h-screen">
<h1 className="text-white">News page will be here</h1>
Expand Down
Empty file added src/pages/news/news.spec.jsx
Empty file.
Empty file added src/pages/news/news.stories.jsx
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
"./src/**/*.{js,ts,jsx,tsx}"
],
theme: {
extend: {
Expand Down