-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some editor settings and base styles
- Loading branch information
Showing
15 changed files
with
115 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{ | ||
"tslint.autoFixOnSave": true, | ||
"csscomb.preset": { | ||
}, | ||
"csscomb.formatOnSave": false, | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
<header class="header"> | ||
<div class="container"> | ||
<div class="left"> | ||
<ng-content></ng-content> | ||
</div> | ||
<div class="left"> | ||
<h1 class="title">{{ title }}</h1> | ||
<p>{{ subTitle }}</p> | ||
</div> | ||
|
||
<div class="center"> | ||
<a routerLink="/login" routerLinkActive="active">Login</a> | ||
<a routerLink="/games" routerLinkActive="active">Games</a> | ||
</div> | ||
|
||
<div class="right"> | ||
<a routerLink="/login" routerLinkActive="active">Login</a> | ||
<a routerLink="/games" routerLinkActive="active">Games</a> | ||
</div> | ||
<div class="right"> | ||
[ account ] | ||
</div> | ||
</header> | ||
|
||
<main class="main"> | ||
<div class="container"> | ||
--/ router-outlet \-- | ||
<router-outlet></router-outlet> | ||
--\ router-outlet /-- | ||
</div> | ||
<router-outlet></router-outlet> | ||
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@import '~styles/variables' | ||
|
||
|
||
.header | ||
display: flex | ||
align-items: center | ||
margin-bottom: $spacing-xxl | ||
padding: $spacing-sm $spacing-default | ||
border-bottom: $border-light-double | ||
|
||
.center | ||
flex: 1 | ||
text-align: center | ||
|
||
.title | ||
font-size: $font-size-lg | ||
margin-bottom: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
<app-layout> | ||
<h1>Games</h1> | ||
<h2>Made with Angular by hetty82</h2> | ||
</app-layout> | ||
<app-layout [title]="title" [subTitle]="subTitle"></app-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<h2>Game list</h2> | ||
<section class="container"> | ||
<h1 class="page-title">Game list</h1> | ||
|
||
<ul> | ||
<li *ngFor="let game of (games$ | async)">{{ game.name }}</li> | ||
</ul> | ||
</section> | ||
|
||
<ul> | ||
<li *ngFor="let game of (games$ | async)">{{ game.name }}</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<h2>User list</h2> | ||
<section class="container"> | ||
<h1 class="page-title">User list</h1> | ||
|
||
<ul> | ||
<li *ngFor="let user of (users$ | async)">{{ user.name }}</li> | ||
</ul> | ||
<ul> | ||
<li *ngFor="let user of (users$ | async)">{{ user.name }}</li> | ||
</ul> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.container | ||
max-width: $container-max | ||
margin: 0 auto | ||
padding: 0 $spacing-default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,40 @@ | ||
@import url(https://fonts.googleapis.com/css?family=Ubuntu:400,400i,700,700i) | ||
@import url(https://fonts.googleapis.com/css?family=Oswald:400,600) | ||
|
||
$font-family-sans: Ubuntu, Verdana, Geneva, sans-serif | ||
$font-family-serif: Georgia, serif | ||
// fonts | ||
$font-family-default: Ubuntu, Verdana, Geneva, sans-serif | ||
$font-family-special: Oswald, sans-serif | ||
|
||
$blue: lightblue | ||
$font-size-xs: 0.75em | ||
$font-size-sm: 0.875em | ||
$font-size-default: 1em | ||
$font-size-lg: 1.25em | ||
$font-size-xs: 1.5em | ||
|
||
$spacing-small: 0.5rem | ||
$spacing-default: 1rem | ||
|
||
$border-default: 1px solid #ddd | ||
// colors | ||
$blue: #00bfff | ||
|
||
$gray-darker-1: #333333 | ||
$gray: #666666 | ||
$gray-lighter-1: #999999 | ||
$gray-lighter-2: #dddddd | ||
|
||
// general | ||
$spacing-sm: 0.5em | ||
$spacing-default: 1em | ||
$spacing-lg: 1.5em | ||
$spacing-xl: 2em | ||
$spacing-xxl: 3em | ||
|
||
$border-default: 1px solid $gray | ||
$border-light: 1px solid $gray-lighter-2 | ||
$border-light-double: 2px solid $gray-lighter-2 | ||
|
||
$border-radius: 3px | ||
|
||
$container-max: 60rem | ||
|
||
// color mapping | ||
$text-color: $gray-darker-1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
@import "reset" | ||
@import "variables" | ||
@import "typography" | ||
@import 'reset' | ||
@import 'variables' | ||
@import 'mixins/index' | ||
@import 'typography' | ||
@import 'layout' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import 'layout' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// =container | ||
// max-width: $container-max | ||
// margin: 0 auto | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters