Skip to content

Commit 467466d

Browse files
first draft for style
1 parent 5d039d6 commit 467466d

File tree

18 files changed

+130
-43
lines changed

18 files changed

+130
-43
lines changed

components/Button/Button.module.scss

Whitespace-only changes.

components/Button/index.js

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.buttonLink {
2+
display: inline-block;
3+
padding: .9rem 1.8rem;
4+
border-radius: 3rem;
5+
font-size: 1rem;
6+
background: rgb(245,86,72);
7+
background: linear-gradient(45deg, rgba(245,86,72,1) 0%,rgba(208,40,104,1) 100%);
8+
text-decoration: none;
9+
text-transform: uppercase;
10+
color: #FFF;
11+
font-family:'Futura PT W01 Demi', sans-serif;
12+
letter-spacing: 1px;
13+
box-shadow: 0 3px 30px -5px rgba(0,0,0,.5);
14+
transition: .3s ease box-shadow;
15+
cursor: pointer;
16+
}
17+
18+
.buttonLink:hover {
19+
box-shadow: 0 2px 5px 0 rgba(0,0,0,.1);
20+
}

components/ButtonLink/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React from 'react'
2+
import style from './ButtonLink.module.css'
3+
4+
const Button = ({ url, label }) => (
5+
<a className={style.buttonLink} href={url}>{label}</a>
6+
)
7+
8+
export default Button

components/Header/incode-logo.svg

Lines changed: 12 additions & 0 deletions
Loading

components/Header/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react'
2+
//import Logo from './incode-logo.svg'
3+
4+
const Header = () => (
5+
<header>
6+
<Logo />
7+
</header>
8+
)
9+
10+
export default Header

components/Hero/Hero.module.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
.hero {
2+
width: 100vw;
3+
height: 100vh;
4+
position: relative;
5+
}
6+
7+
.header {
8+
top: 50%;
9+
left: 50%;
10+
transform: translate(-50%, -50%);
11+
position: absolute;
12+
text-align: center;
13+
}
14+
15+
.title {
16+
font-size: 4.5rem;
17+
font-weight: normal;
18+
}
19+
20+
.title strong {
21+
font-weight: normal;
22+
display: inline-block;
23+
position: relative;
24+
}
25+
26+
.title strong:before {
27+
content: '';
28+
display: block;
29+
height: 4px;
30+
background: rgba(255, 255, 255, 0.3);
31+
width: 100%;
32+
bottom: .45rem;
33+
position: absolute;
34+
}

components/Hero/Hero.module.scss

Lines changed: 0 additions & 23 deletions
This file was deleted.

components/Hero/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import React from 'react'
2-
import style from './Hero.module.scss'
2+
import style from './Hero.module.css'
33

4-
import Button from '../Button'
4+
import ButtonLink from '../ButtonLink'
55

66
const Hero = () => (
77
<section className={style.hero}>
88
<header className={style.header}>
99
<h1 className={style.title}>We build <strong>web</strong>, <strong>app</strong>, and <strong>experiences</strong></h1>
10-
<Button url="http://www.google.com" label="Contact us" />
10+
<ButtonLink url="http://www.google.com" label="Contact us" />
1111
</header>
1212
</section>
1313
)

css/global.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
body {
2+
background: #1d1e3e;
3+
color: #FFF;
4+
font-size: 15px;
5+
font-family:'Futura PT W01 Book', sans-serif;
6+
-webkit-font-smoothing: antialiased;
7+
-moz-osx-font-smoothing: grayscale;
8+
}

0 commit comments

Comments
 (0)