mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
Actually fixed it this time ...
This commit is contained in:
@@ -1,43 +1,29 @@
|
||||
import { Link } from "gatsby";
|
||||
import {Link} from "gatsby";
|
||||
import React from "react";
|
||||
import icon from "./icon.png";
|
||||
import { NavbarWrapper, NavbarItems } from "./styles";
|
||||
import {NavbarWrapper, NavbarItems} from "./styles";
|
||||
|
||||
// @todo maybe find alternative type for data
|
||||
const Navbar = ({ siteTitle }: any) => (
|
||||
<HeaderWrapper>
|
||||
<div
|
||||
style={{
|
||||
margin: `0 auto`,
|
||||
maxWidth: 960,
|
||||
padding: `1.45rem 1.0875rem`,
|
||||
}}
|
||||
>
|
||||
<div style={{ display: "flex", flexDirection: "row", alignItems: "center" }}>
|
||||
{/* <img src={icon} style={{ width: "70px" }} /> */}
|
||||
<h1 style={{ margin: 0 }}>
|
||||
<Link
|
||||
to="/"
|
||||
style={{
|
||||
color: `white`,
|
||||
textDecoration: `none`,
|
||||
}}
|
||||
>
|
||||
{siteTitle}
|
||||
</Link>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</HeaderWrapper>
|
||||
const Navbar = ({siteTitle = ""}) => (
|
||||
<NavbarWrapper>
|
||||
<NavbarItems>
|
||||
{/* <img src={icon} style={{ width: "70px" }} /> */}
|
||||
<h1 style={{margin: 0}}>
|
||||
<Link
|
||||
to="/"
|
||||
style={{
|
||||
color: `white`,
|
||||
textDecoration: `none`,
|
||||
}}
|
||||
>
|
||||
{siteTitle}
|
||||
</Link>
|
||||
</h1>
|
||||
</NavbarItems>
|
||||
<NavbarItems>
|
||||
<button>discord link here</button>
|
||||
<button>reddit (maybe?) link here</button>
|
||||
</NavbarItems>
|
||||
</NavbarWrapper>
|
||||
)
|
||||
|
||||
Navbar.propTypes = {
|
||||
siteTitle: String
|
||||
}
|
||||
|
||||
Navbar.defaultProps = {
|
||||
siteTitle: ``,
|
||||
}
|
||||
|
||||
export default Navbar;
|
||||
|
||||
Reference in New Issue
Block a user