Skip to content

Commit

Permalink
fix(badge): Logo in svg
Browse files Browse the repository at this point in the history
Badge logo now has embed svg
  • Loading branch information
mmmoli committed Oct 15, 2015
1 parent ecf8c54 commit e30ecdf
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 42 deletions.
63 changes: 30 additions & 33 deletions dist/react-climb-social.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/react-climb-social.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"sass-loader": "^3.0.0",
"semantic-release": "^4.3.5",
"style-loader": "^0.12.4",
"svg-inline-loader": "^0.3.0",
"webpack": "^1.10.5",
"webpack-dev-server": "^1.10.1"
},
Expand Down
8 changes: 6 additions & 2 deletions src/components/ClimbBadge.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ import React, {Component} from 'react';
class ClimbBadge extends Component {

render() {

const logo = require('../img/climb_logo.svg');

return (
<a href="http://climb.social/" className="climb-social-badge">
<span>Climb.social</span>
<a href="http://climb.social/"
className="climb-social-badge"
dangerouslySetInnerHTML={{__html: logo}}>
</a>
);
}
Expand Down
17 changes: 17 additions & 0 deletions src/img/climb_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/style/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ $color-grey-dark: #bcbcbc;
bottom: 20px;
right: 20px;
z-index: 9;
background: #A9CAE2 url('../img/climb.social_logo--small.png') center center no-repeat;
background-color: #A9CAE2;
width: 200px;
height: 80px;
height: 66px;
border-radius: 5px;

> span {
Expand Down
5 changes: 5 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ var webpackConfig = {
exclude: /node_modules/,
loader: 'file'
},
{
test: /\.svg$/,
exclude: /node_modules/,
loader: 'svg-inline'
},
{
test: /\.scss$/,
exclude: /node_modules/,
Expand Down

0 comments on commit e30ecdf

Please sign in to comment.