Skip to content
Snippets Groups Projects
Logo.tsx 707 B
Newer Older
import React from "react";
import { Link } from "gatsby";
import { StaticImage } from "gatsby-plugin-image";
Tojo's avatar
Tojo committed

// import logo from "../images/logo-egeo.png";

interface Props {
  to?: string;
  className?: string;
  src?: string;
Tojo's avatar
Tojo committed
  title: string;
  image: any
const Logo = (props: Props) => {
Tojo's avatar
Tojo committed
  const { to = "#", className, title, image } = props;
Tojo's avatar
Tojo committed
    <>
    <div className={`flex justify-center flex-col items-center ${className}`}>
      <Link to={to} className="">
Tojo's avatar
Tojo committed
        <img 
          src={image}
          alt="Logo"
          height={40}
          className="my-2"
        />
      </Link>
Tojo's avatar
Tojo committed
      <div className="text-xs">{title}</div>
Tojo's avatar
Tojo committed
    </div>
Tojo's avatar
Tojo committed
    </>
export default Logo;