forked from asyncapi/conference-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.tsx
More file actions
38 lines (34 loc) · 1.1 KB
/
Copy pathindex.tsx
File metadata and controls
38 lines (34 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import React, { JSX } from 'react';
import ILink from '../illustration/link';
interface PastEditonCardProp {
url: string;
}
const PastEditonCard = ({ url }: PastEditonCardProp): JSX.Element => {
let 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="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"
>
<p className="mr-2 text-white text-sm">View Website</p>
<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>
);
};
export default PastEditonCard;