Skip to content

Commit

Permalink
feat: Add more brands
Browse files Browse the repository at this point in the history
  • Loading branch information
jar0s committed Sep 3, 2020
1 parent 45eac95 commit 22df07a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
28 changes: 28 additions & 0 deletions src/brands/acme/Button.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.component-button {
display: inline-flex;
width: 25%;
flex: 1 0 auto;
}

.component-button.wide {
width: 50%;
}

.component-button button {
background-color: #073642;
color: #fdf6e3;
border: 0;
font-size: 1.5rem;
margin: 0 1px 0 0;
flex: 1 0 auto;
padding: 0;
}

.component-button:last-child button {
margin-right: 0;
}

.component-button.orange button {
background-color: #586e75;
color: #b58900;
}
13 changes: 13 additions & 0 deletions src/brands/calc_co/Display.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.component-display {
background-color: #fdf6e3;
color: #586e75;
text-align: left;
font-weight: 200;
flex: 0 0 auto;
width: 100%;
}

.component-display > div {
font-size: 2.5rem;
padding: 0.2rem 0.7rem 0.1rem 0.5rem;
}
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const brandPath = `src/brands/${process.env.APP_BRAND}`;

module.exports = {
mode: 'production',
Expand Down Expand Up @@ -31,6 +32,6 @@ module.exports = {
})
],
resolve: {
modules: ['src/brands/default', 'node_modules']
modules: [brandPath, 'src/brands/default', 'node_modules']
}
};

0 comments on commit 22df07a

Please sign in to comment.