From 7bc1f7223b2c4a2edcd719e99e702e88b52029bc Mon Sep 17 00:00:00 2001 From: daoodaba975 Date: Mon, 3 Jun 2024 21:50:26 +0000 Subject: [PATCH 1/3] =?UTF-8?q?[FEAT]:=20Adding=20last=20event=20=E2=9A=A1?= =?UTF-8?q?=20-=20GalsenDEV=20Meetup=20#3=20-=20Adding=20also=20translatio?= =?UTF-8?q?ns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en/events.json | 5 +++++ locales/fr/events.json | 5 +++++ src/pages/events/[slug]/index.tsx | 17 ++++++----------- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/locales/en/events.json b/locales/en/events.json index 51d54b1..d49a691 100644 --- a/locales/en/events.json +++ b/locales/en/events.json @@ -5,6 +5,11 @@ "upcoming": "Upcoming event", "previous": "Previous event", "events": { + "galsendev-meetup-3": { + "title": "GalsenDEV Meetup #2", + "desc": "The third edition of the GalsenDEV Meetup where we discussed about GitLab CI", + "full": "For this new session, we had the honor of hosting Ibrahima TIMERA, a passionate and experienced Freelance Developer in the field of Java and Angular development. During this meeting, Ibrahima shared his in-depth knowledge of GitLab CI. The participants had the opportunity to discover the essential steps to optimize their development workflow using proven practices and tools." + }, "weekend-code-3": { "title": "Weekend Code #3", "desc": "Third edition of the Code Weekend.", diff --git a/locales/fr/events.json b/locales/fr/events.json index 9b4af9b..f3a30eb 100644 --- a/locales/fr/events.json +++ b/locales/fr/events.json @@ -5,6 +5,11 @@ "upcoming": "Évènement à venir", "previous": "Événement passé", "events": { + "galsendev-meetup-3": { + "title": "GalsenDEV Meetup #2", + "desc": "Le troisième numéro du GalsenDEV Meetup où on a parlé de GitLab CI.", + "full": "Pour cette nouvelle session, nous avons eu l'honneur d'accueillir Ibrahima TIMERA, un Développeur Freelance passionné et expérimenté dans le domaine du développement Java et Angular. Au cours de cette rencontre, Ibrahima a partagé ses connaissances approfondies sur GitLab CI. Les participants ont eu l'occasion de découvrir les étapes essentielles pour optimiser leur flux de travail de développement grâce à des pratiques et des outils éprouvés." + }, "weekend-code-3": { "title": "Weekend du Code #3", "desc": "Troisième édition du Weekend du Code.", diff --git a/src/pages/events/[slug]/index.tsx b/src/pages/events/[slug]/index.tsx index fd5749b..55096b8 100644 --- a/src/pages/events/[slug]/index.tsx +++ b/src/pages/events/[slug]/index.tsx @@ -1,9 +1,11 @@ import useSWR from 'swr'; +import Link from 'next/link'; import { useRouter } from 'next/router'; import useTranslation from 'next-translate/useTranslation'; import { Event, ResponseError } from '@/pages/api/events/type'; import Header from '@/components/Header'; +import { Icon } from '@/components/ui/icon'; const fetcher = async (url: string) => { const res = await fetch(url); @@ -21,10 +23,6 @@ export default function EventDetailPage() { const router = useRouter(); const slug = router.query.slug as string; - const handleGoBack = () => { - router.back(); - }; - const { data, error, isLoading } = useSWR( () => (slug ? '/api/events/' + slug : null), fetcher @@ -40,13 +38,10 @@ export default function EventDetailPage() {
- -
+ + + +
{t(`eventsPage.${data.type}`)} From 57611b2022f4d2af20a04492f34cfa21139284ec Mon Sep 17 00:00:00 2001 From: daoodaba975 Date: Mon, 3 Jun 2024 21:52:51 +0000 Subject: [PATCH 2/3] =?UTF-8?q?[STYLE]:=20Adding=20new=20icon=20=E2=9C=A8?= =?UTF-8?q?=20-=20circle-arrow-left?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/svg-icons/circle-arrow-left.svg | 4 ++++ public/icons/sprite.svg | 4 ++++ types/name.d.ts | 1 + 3 files changed, 9 insertions(+) create mode 100644 other/svg-icons/circle-arrow-left.svg diff --git a/other/svg-icons/circle-arrow-left.svg b/other/svg-icons/circle-arrow-left.svg new file mode 100644 index 0000000..3882bf9 --- /dev/null +++ b/other/svg-icons/circle-arrow-left.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/public/icons/sprite.svg b/public/icons/sprite.svg index 17b9cd3..64653b2 100644 --- a/public/icons/sprite.svg +++ b/public/icons/sprite.svg @@ -26,6 +26,10 @@ fill="currentColor" > + + + + diff --git a/types/name.d.ts b/types/name.d.ts index 0b79b29..a8f498e 100644 --- a/types/name.d.ts +++ b/types/name.d.ts @@ -4,6 +4,7 @@ export type IconName = | 'arrow-right' | 'caret-sort' | 'check' + | 'circle-arrow-left' | 'commit-icon' | 'cross-1' | 'discord' From 8ac8660ec7e266eebfe372a9d56070de3ac8f046 Mon Sep 17 00:00:00 2001 From: daoodaba975 Date: Mon, 3 Jun 2024 21:53:43 +0000 Subject: [PATCH 3/3] =?UTF-8?q?[FEAT]:=20Add=20GalsenDEV=20Meetup=20event?= =?UTF-8?q?=20=E2=9A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/api/events/data.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pages/api/events/data.ts b/src/pages/api/events/data.ts index 67be777..1492de4 100644 --- a/src/pages/api/events/data.ts +++ b/src/pages/api/events/data.ts @@ -1,6 +1,14 @@ import { Event } from './type'; export const events: Event[] = [ + { + name: 'GalsenDEV Meetup #3', + description: + 'GitLab CI : Develop, Test, Build and Deploy your app with Ibrahima TIMERA.', + date: '05/18/2024', + type: 'previous', + full: 'Full description here.', + }, { name: 'Weekend Code #3', description: 'Third edition of the Code Weekend.',