Skip to content

Commit

Permalink
renamed AGenda to schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
nutcas3 committed Oct 4, 2024
1 parent d5907ae commit 25f4b7f
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ const Navbar: React.FC = () => {
Home
</NavLink>
<NavLink
to="/agenda"
to="/schedule"
className={({ isActive }) => `border-b-2 w-fit p-3 ${isActive ? 'border-secondary' : 'border-white'}`}
>
Agenda
Schedule
</NavLink>
<NavLink
to="/speakers"
Expand Down Expand Up @@ -104,10 +104,10 @@ const Navbar: React.FC = () => {
Home
</NavLink>
<NavLink
to="/agenda"
to="/schedule"
className={({ isActive }) => `border-b-2 p-3 ${isActive ? 'border-secondary' : 'border-white'}`}
>
Agenda
Schedule
</NavLink>
<NavLink
to="/speakers"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useState } from "react";
import SessionsList from "../utils/sessions.ts";
import SessionCard, {ISession} from "./SessionCard.tsx";
import SessionCard, { ISession } from "./SessionCard.tsx";

const Sessions = () => {
const [activeDay, setActiveDay] = useState<string>('all')
Expand All @@ -20,7 +20,7 @@ const Sessions = () => {
className="container mx-auto px-6 py-12 md:py-24 flex flex-col items-center text-center text-secondary"
>
<h2 className="text-3xl md:text-5xl font-bold mt-8 mb-6">
GopherCon Africa Agenda
GopherCon Africa Schedule
</h2>
<div className="w-full lg:w-[80%] mt-8">
<div className="border border-b-2 border-l-0 border-r-0 bg-gray-200 pt-6 border-t-0 overscroll-contain sticky top-0 z-50">
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import SpeakersList from './pages/SpeakersList.tsx';
import TicketList from './pages/TicketsList.tsx';
import SocialsList from './pages/SocialsList.tsx';
import TravelInfo from "./pages/TravelInfo.tsx";
import Agenda from "./pages/Agenda.tsx";
import Schedule from "./pages/Schedule.tsx";


const router = createBrowserRouter([
Expand All @@ -24,8 +24,8 @@ const router = createBrowserRouter([
element: <SponsorshipRedirect />,
},
{
path: "/agenda",
element: <Agenda />,
path: "/schedule",
element: <Schedule />,
},
{
path: "/sponsors",
Expand Down
18 changes: 0 additions & 18 deletions frontend/src/pages/Agenda.tsx

This file was deleted.

18 changes: 18 additions & 0 deletions frontend/src/pages/Schedule.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from 'react';
import ConnectWithUs from '../components/ConnectWithUs.tsx';
import { Footer } from '../components/Footer.tsx';
import Navbar from '../components/Navbar.tsx';
import Sessions from "../components/Schedule.tsx";

const Schedule: React.FC = () => {
return (
<div className="text-sm id" id='sponsorship'>
<Navbar/>
<Sessions />
<ConnectWithUs />
<Footer />
</div>
);
};

export default Schedule;

0 comments on commit 25f4b7f

Please sign in to comment.