From 5eaf6ec45931056dd1104241192e533baea0c808 Mon Sep 17 00:00:00 2001
From: Jan Tuomi
Date: Fri, 16 Nov 2018 23:04:23 +0200
Subject: [PATCH] Add hero buttons
---
src/components/Button/Button.scss | 17 ++++++++++++-----
src/components/Button/Button.tsx | 5 ++++-
src/pages/FrontPage/FrontPage.tsx | 3 +++
3 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/src/components/Button/Button.scss b/src/components/Button/Button.scss
index 8b71216..70896ac 100644
--- a/src/components/Button/Button.scss
+++ b/src/components/Button/Button.scss
@@ -3,14 +3,21 @@
.button {
-webkit-appearance: none;
border-radius: none;
- padding: 0.5rem 1rem;
+ padding: 0.8rem 2rem;
margin: 0.5rem;
- border: 2px solid $blue;
- font-size: 1rem;
- font-weight: 500;
+ font-size: 10px;
+ background: none;
+ text-transform: uppercase;
+
+ &.hero {
+ background-color: $dark-blue;
+ color: $blue;
+ font-weight: 500;
+ letter-spacing: 1.5px;
+ border: 1px solid $white;
+ }
&:hover {
- border: 2px solid $dark-blue;
cursor: pointer;
}
diff --git a/src/components/Button/Button.tsx b/src/components/Button/Button.tsx
index 27d76cd..adb9f3d 100644
--- a/src/components/Button/Button.tsx
+++ b/src/components/Button/Button.tsx
@@ -3,12 +3,15 @@ import "./Button.scss";
export interface ButtonProps {
onClick: () => void;
+ type: string;
}
export default class Button extends React.Component {
render() {
+ const { type } = this.props;
+ const className = `button ${type}`;
return (
-
+ { }}>Killan tehtävät ›
+ { }}>Vastapainoa opiskelulle ›
Kikkeli