Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #333 from Rostlab/detail-page-wiki-link
Browse files Browse the repository at this point in the history
Added wiki link to character-detail-page
  • Loading branch information
yashha committed Apr 8, 2016
2 parents 2cd731f + 5ee887a commit 45189fe
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
27 changes: 27 additions & 0 deletions app/components/app/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,30 @@ a:focus {
padding-top: 50px;
padding-bottom: 50px;
}

.btn--secondary {
font-weight: normal;
border-radius: 4px;
font-size: 1.2em;
color: whitesmoke;
padding: 5px 15px;
background-color: transparent;
border: solid 2px #5A180C;
transition: all .1s ease-in-out;
cursor: pointer;
text-decoration: none !important;
}
.btn--secondary:hover {
background-color: #5A180C;
transition: all .1s ease-in-out;
}
.btn--secondary .glyphicon {
margin-right: 5px;
}

/*
* Utillities
*/
.u-inlineBlock {
display: inline-block;
}
11 changes: 10 additions & 1 deletion app/components/public/Characters/Characters.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
width: 100%;
padding: 10px;
}
.wikiButton {
top: 25px;
position: absolute;
right: 20px;
}

.list-group-item {
background: #333;
border: none;
Expand All @@ -64,7 +70,10 @@
.character-container .map-wrapper {
padding-bottom: 100%;
}

.wikiButton {
top: -50px;
right: 10px;
}
}


Expand Down
10 changes: 8 additions & 2 deletions app/components/public/Characters/Characters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from 'react';
let {Component} = React;
import $ from 'jquery';
import './Characters.css';
import { Row, Col, Image, ProgressBar } from 'react-bootstrap';
import { Row, Col, Image, ProgressBar, Glyphicon } from 'react-bootstrap';

import MapComp from '../../common/MapComp/MapComp.jsx';
import Store from '../../../stores/CharactersStore';
Expand Down Expand Up @@ -61,7 +61,13 @@ export default class Character extends Component {
<div className="header-image">
<div className="character-name-container">
<Col xs={12} sm={9} md={8} className="character-name">
<div><h1>{this.state.character.name}</h1></div>
<div className="u-inlineBlock"><h1>{this.state.character.name}</h1></div>
<a href={"https://awoiaf.westeros.org/index.php/" + this.state.character.name}
target="_blank"
className="btn--secondary wikiButton u-inlineBlock">
<Glyphicon glyph="share-alt" />
Wiki
</a>
</Col>
</div>
</div>
Expand Down

0 comments on commit 45189fe

Please sign in to comment.