44 lines
1.0 KiB
TypeScript
44 lines
1.0 KiB
TypeScript
import React from "react";
|
|
|
|
const styles = {
|
|
fontFamily: "Karla",
|
|
};
|
|
|
|
interface Link {
|
|
name: string;
|
|
url: string;
|
|
}
|
|
interface LinkProps {
|
|
links: Link[];
|
|
}
|
|
|
|
const Links: React.FC<LinkProps> = ({ links }) => {
|
|
return (
|
|
<div
|
|
className="text-s flex flex-col items-center w-full absolute top-6"
|
|
style={styles}
|
|
>
|
|
<img className="mb-3" src="csc_logo.png" alt="CSC Logo" width="100px" />
|
|
<h1 className="font-bold">@uwcsclub</h1>
|
|
<ul className="flex flex-col my-6 w-full">
|
|
{links.map(({ name, url }) => (
|
|
<li key={name + url} className="w-full contents">
|
|
<a
|
|
className="btn bg-gray-450 p-3 text-white font-bold text-center self-center my-1.5
|
|
hover:bg-white hover:text-black border-2 border-gray-800 transition duration-200 ease-in-out
|
|
w-11/12 sm:w-4/12"
|
|
href={url}
|
|
target="_blank"
|
|
rel="noreferrer"
|
|
>
|
|
{name}
|
|
</a>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Links;
|