Added icons

This commit is contained in:
Jordan Roher 2023-04-19 22:14:05 -07:00
parent c6777eed5a
commit 0712ea6a71
4 changed files with 9 additions and 9 deletions

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
public/starbase-80.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

View File

@ -1,20 +1,20 @@
import React from "react";
import { is } from "../shared/is";
import { IService } from "../shared/types";
interface IProps {
title?: string;
icon?: string;
auth?: IService;
docker?: IService;
}
export const Header: React.FunctionComponent<IProps> = ({ icon, title, auth, docker }) => {
export const Header: React.FunctionComponent<IProps> = ({ icon, title }) => {
return (
<div className="p-4">
<h1 className="text-center">{title}</h1>
{!is.null(icon) && <img src={icon} alt="icon" />}
<div className="p-2 xl:p-4 flex flex-wrap justify-center">
{!is.null(icon) && (
<div className="basis-full text-center">
<img src={icon} alt={title} className="inline-block w-16 h-16" />
</div>
)}
<h1 className="basis-full text-center">{title}</h1>
</div>
);
};

View File

@ -5,6 +5,6 @@ import "./tailwind.css";
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
<IndexPage title="Starbase 80" />
<IndexPage title="Starbase 80" icon="/starbase-80.png" />
</React.StrictMode>
);