Skip to content

Commit

Permalink
created a page title component and styled it and imported a few fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxnelson997 committed Jul 10, 2018
1 parent fc0815f commit 0a1973c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/components/auth/signin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component } from 'react';

import SignInForm from './signinForm';
import PageTitle from '../pageTitle';

class SignIn extends Component {

Expand All @@ -11,6 +12,7 @@ class SignIn extends Component {
render() {
return (
<div className='sign-in'>
<PageTitle className='sign-in__page-title' title='Login' />
<SignInForm onSubmit={this.onSubmit} className='sign-in__form' />
</div>
)
Expand Down
12 changes: 12 additions & 0 deletions src/components/pageTitle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React, { Component } from 'react';

class PageTitle extends Component {
render() {
const { className, title } = this.props;
return (
<div className={`${className} page-title`}>{title}</div>
)
}
}

export default PageTitle;
4 changes: 3 additions & 1 deletion src/style/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ html {
@import 'layout';
@import 'headernavbar';
@import 'auth/signin';
@import 'auth/signup';
@import 'auth/signup';

@import 'page-title';
6 changes: 6 additions & 0 deletions src/style/page-title.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.page-title {
color: #666;
font-family: 'Titillium Web';
font-size: 30px;
font-weight: 600;
}
4 changes: 2 additions & 2 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<title>DevCamp React Starter</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700|Open+Sans:400,600,700|Titillium+Web:400,600,700" rel="stylesheet">
<title>GummyCode</title>
</head>

<body>
Expand Down

0 comments on commit 0a1973c

Please sign in to comment.