added some typing before updates
This commit is contained in:
parent
e736278e27
commit
50de6be31d
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"cSpell.words": ["flexslider", "socialimage", "socialimages"]
|
||||||
|
}
|
2
TODO.md
2
TODO.md
@ -23,4 +23,4 @@
|
|||||||
- maybe transition to markdown loader?
|
- maybe transition to markdown loader?
|
||||||
- add language switcher + download for both
|
- add language switcher + download for both
|
||||||
- add highlight to "languages I like"
|
- add highlight to "languages I like"
|
||||||
- tech turns red when hovered over link
|
- tech turns red when hovered over link (need to hover on text too)
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import React from "react";
|
import React, { FunctionComponent } from "react";
|
||||||
import { FunctionComponent } from "react";
|
|
||||||
|
|
||||||
type Props = { title: string; value: string; link: string; rest?: {} };
|
type Props = { title: string; value: string; link: string; rest?: {} };
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React from "react";
|
import React, { ReactNode } from "react";
|
||||||
import { FunctionComponent } from "react";
|
import { FunctionComponent } from "react";
|
||||||
|
|
||||||
type Props = {};
|
type Props = { children: ReactNode };
|
||||||
|
|
||||||
export const SectionTitle: FunctionComponent<Props> = ({ children }) => {
|
export const SectionTitle: FunctionComponent<Props> = ({ children }) => {
|
||||||
return (
|
return (
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import React, { FunctionComponent } from "react";
|
import React, { FunctionComponent } from "react";
|
||||||
|
import { ReactNode } from "react";
|
||||||
import { SectionTitle } from "./section-title";
|
import { SectionTitle } from "./section-title";
|
||||||
|
|
||||||
type Props = { title: string };
|
type Props = { title: string; children: ReactNode };
|
||||||
|
|
||||||
export const Section: FunctionComponent<Props> = ({ title, children }) => {
|
export const Section: FunctionComponent<Props> = ({ title, children }) => {
|
||||||
return (
|
return (
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
import React, { FunctionComponent } from "react";
|
import React, { FunctionComponent, ReactNode } from "react";
|
||||||
import PropTypes from "prop-types";
|
|
||||||
// import CookieConsent from "react-cookie-consent";
|
// import CookieConsent from "react-cookie-consent";
|
||||||
// import { Link } from "gatsby"
|
// import { Link } from "gatsby"
|
||||||
import "./../styles/style.scss";
|
import "./../styles/style.scss";
|
||||||
import { ProfilePicture } from "./profile-pic";
|
|
||||||
import { NavBar } from "./navigation/navbar";
|
|
||||||
import { Footer } from "./footer";
|
import { Footer } from "./footer";
|
||||||
|
import { NavBar } from "./navigation/navbar";
|
||||||
|
import { ProfilePicture } from "./profile-pic";
|
||||||
|
|
||||||
export const Layout: FunctionComponent<{}> = ({ children }) => {
|
type Props = { children: ReactNode[] };
|
||||||
|
|
||||||
|
export const Layout: FunctionComponent<Props> = ({ children }) => {
|
||||||
return (
|
return (
|
||||||
<div className="body-red">
|
<div className="body-red">
|
||||||
<div className="main-content">
|
<div className="main-content">
|
||||||
@ -51,7 +52,3 @@ export const Layout: FunctionComponent<{}> = ({ children }) => {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
Layout.propTypes = {
|
|
||||||
children: PropTypes.node.isRequired,
|
|
||||||
};
|
|
||||||
|
Loading…
Reference in New Issue
Block a user