Added icons
This commit is contained in:
parent
c6777eed5a
commit
0712ea6a71
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 63 KiB |
BIN
public/starbase-80.png
Normal file
BIN
public/starbase-80.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 59 KiB |
@ -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>
|
||||
);
|
||||
};
|
||||
|
@ -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>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user