From 2c42e9488771070d8efec5d91835cd8c7885f4b1 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Sun, 27 Aug 2017 17:42:50 +0200 Subject: Restyle navbar and use across entire site --- src/components/home/ContactSection.js | 33 +++++++++++++++++++++++++++++++++ src/components/home/ContentSection.js | 20 ++++++++++++++++++++ src/components/home/ContentSection.sass | 27 +++++++++++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 src/components/home/ContactSection.js create mode 100644 src/components/home/ContentSection.js create mode 100644 src/components/home/ContentSection.sass (limited to 'src/components/home') diff --git a/src/components/home/ContactSection.js b/src/components/home/ContactSection.js new file mode 100644 index 00000000..8e6aed1a --- /dev/null +++ b/src/components/home/ContactSection.js @@ -0,0 +1,33 @@ +import React from "react"; +import ContentSection from "./ContentSection"; +import "./ContentSection.css"; + +const ContactSection = () => ( + +

Contact

+
+ TU Delft Logo +
+
+ Email Icon + +
+
+ Github Icon + +
+
+
+
+ A project by the @Large Research Group. +
+
+); + +export default ContactSection; diff --git a/src/components/home/ContentSection.js b/src/components/home/ContentSection.js new file mode 100644 index 00000000..126c5e4b --- /dev/null +++ b/src/components/home/ContentSection.js @@ -0,0 +1,20 @@ +import classNames from "classnames"; +import PropTypes from "prop-types"; +import React from "react"; +import "./ContentSection.css"; + +const ContentSection = ({name, children}) => ( +
+
+
+ {children} +
+
+
+); + +ContentSection.propTypes = { + name: PropTypes.string.isRequired, +}; + +export default ContentSection; diff --git a/src/components/home/ContentSection.sass b/src/components/home/ContentSection.sass new file mode 100644 index 00000000..c84f26db --- /dev/null +++ b/src/components/home/ContentSection.sass @@ -0,0 +1,27 @@ +@import ../../style-globals/_variables.sass + +.content-section + padding-top: 50px + padding-bottom: 150px + text-align: center + +@media screen and (min-width: $screen-sm) and (max-width: $screen-md) + .content-section h1 + font-size: 2em + margin-bottom: 40px + + .content-section h3 + font-size: 1.5em + +@media screen and (min-width: $screen-md) and (max-width: $screen-lg) + .content-section h1 + font-size: 3em + margin-bottom: 40px + + .content-section h3 + font-size: 1.8em + +@media screen and (min-width: $screen-lg) + .content-section h1 + font-size: 3em + margin-bottom: 40px -- cgit v1.2.3