Skip to content

Commit

Permalink
Add global css
Browse files Browse the repository at this point in the history
  • Loading branch information
lbassin committed Nov 8, 2017
1 parent 03f9593 commit 34fcd19
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 8 deletions.
Binary file added app/assets/fonts/Raleway-Regular.woff2
Binary file not shown.
10 changes: 10 additions & 0 deletions app/global.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: local('Raleway'), local('Raleway-Regular'), url('./assets/fonts/Raleway-Regular.woff2') format('woff2');
}

body{
font-family: 'Raleway', sans-serif;
}
3 changes: 2 additions & 1 deletion app/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<meta name="description" content="Electron Angular Webpack Demo App">
<base href="./">
<title>Electron Angular Webpack</title>
</head>
<link rel="stylesheet" href="global.scss">
</head>

<body>
<demo-app>Loading ...</demo-app>
Expand Down
4 changes: 0 additions & 4 deletions app/menu/menu.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
Quick Start
</div>

<div class="button">
Action 2
</div>

<div class="button" routerLink="contributors">
Contributors
</div>
9 changes: 7 additions & 2 deletions app/menu/menu.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,22 @@
display: inline-block;
text-align: center;

margin-left: 13.5%;
margin-left: 10%;
padding: 15px 0;
width: 15%;

border: 1px solid #DC1E34;
border-radius: 15px;

transition: all 0.3s ease;

&:nth-child(1){
margin-left: 30%;
}

&:hover{
transform: scale(1.1) translateY(-5px);
cursor: pointer;
transition: all 0.3s ease;
}
}
}
11 changes: 10 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ let webpackConfig = {
loader: 'img-loader'
}],
exclude: /node_modules/
}, {
test: /\.hbs$/,
exclude: /node_modules/,
use: {
loader: 'html-loader',
options: {
attrs: ['img:src', 'link:href']
}
}
}]
},
// Configure how modules are resolved
Expand All @@ -111,7 +120,7 @@ let webpackConfig = {
// Customize the webpack build process with additionals plugins
plugins: [
new htmlWebpackPlugin(indexConfig)
]
],
};

// UglifyJs and clean output folder only for prod
Expand Down

0 comments on commit 34fcd19

Please sign in to comment.