Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
25 changes: 14 additions & 11 deletions components/PastEditionCard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
import React, { JSX } from 'react';
import Image from 'next/image';
import ILink from '../illustration/link';

interface PastEditonCardProp {
url: string;
}

const PastEditonCard = ({ url }: PastEditonCardProp): JSX.Element => {
let year = url.split('.')[1];
const year = url.split('.')[1];
return (
<div className="bg-white bg-opacity-10 backdrop-blur-lg bg-clip-padding shadow-lg p-4 w-full mx-auto border-[1.66px] border-[#FFFFFF66] rounded-xl ">
<div className="bg-white bg-opacity-10 backdrop-blur-lg bg-clip-padding shadow-lg p-4 w-full mx-auto border-[1.66px] border-[#FFFFFF66] rounded-xl">
<div className="flex items-center flex-wrap justify-between">
<h1 className="text-2xl text-white font-semibold">{year}</h1>
<div>
<a
href={url}
rel="noreferrer"
target="_blank"
className="flex hover:scale-95 transiti items-center justify-center"
className="flex hover:scale-95 transition items-center justify-center"
>
<p className="mr-2 text-white text-sm">View Website</p>
<ILink className="w-5 " fill="white" />
<ILink className="w-5" fill="white" />
</a>
</div>
</div>

<iframe
src={url}
height={250}
width={'100%'}
scrolling="no"
className="pointer-events-none overflow-hidden rounded-lg my-4"
/>
<div className="relative w-full h-[250px] my-4 rounded-lg overflow-hidden">
<Image
src={`/img/past-editions/${year}.png`}
alt={`AsyncAPI Conference ${year}`}
fill
className="object-cover"
sizes="(max-width: 768px) 100vw, 50vw"
/>
</div>
</div>
);
};
Expand Down
1 change: 1 addition & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference path="./.next/types/routes.d.ts" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
Binary file added public/img/past-editions/2020.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/past-editions/2021.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/past-editions/2022.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/past-editions/2023.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/past-editions/2024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/past-editions/2025.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.