From e342602494b692785791dc4a5b99b9036f4c3dea Mon Sep 17 00:00:00 2001 From: Ram Goel Date: Mon, 25 Mar 2024 15:02:43 +0530 Subject: [PATCH] feat: past editions page (#265) * feat: past editions page * refactor: change code-of-conduct link color * chore: remove lockfile * chore: remove abbrevation * chore: keep only year in cards * chore: backdrop blur in past edition card * style: past edition page * chore: update card style * chore: remove border-bottom --------- Co-authored-by: Ace <40604284+AceTheCreator@users.noreply.github.com> --- components/Footer/footer.js | 6 +++--- components/PastEditionCard/index.js | 24 ++++++++++++++++++++++++ config/editions.json | 6 ++++++ config/links.json | 4 ++++ package.json | 1 + pages/editions/index.js | 26 ++++++++++++++++++++++++++ 6 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 components/PastEditionCard/index.js create mode 100644 config/editions.json create mode 100644 pages/editions/index.js diff --git a/components/Footer/footer.js b/components/Footer/footer.js index f80e119f..d8c9a3a3 100644 --- a/components/Footer/footer.js +++ b/components/Footer/footer.js @@ -20,14 +20,14 @@ function Footer() { ]; return (
-
- +
+ company logo
Code of Conduct diff --git a/components/PastEditionCard/index.js b/components/PastEditionCard/index.js new file mode 100644 index 00000000..2a9ac9fd --- /dev/null +++ b/components/PastEditionCard/index.js @@ -0,0 +1,24 @@ +import React from 'react' +import {ExternalLink} from 'lucide-react' +const PastEditonCard = ({ url }) => { + let year = url.split('.')[1] + return ( +
+
+

{year}

+ +
+ + +