-
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.
* Remove github button from lib * Add pages to demo app * Fix dark theme * Include components themes * Fix demo selector prefix * Fix lib module import in demo app * Remove reference to github button module * Remove reference to github button module * Describe how to use lib in an app * Add section Previews to README
- Loading branch information
1 parent
6d936ac
commit 6287abd
Showing
52 changed files
with
385 additions
and
173 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
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
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,7 +1,30 @@ | ||
@import '../styles/constants'; | ||
|
||
demo-app { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100vh; | ||
} | ||
|
||
sage-navbar { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
z-index: 2; | ||
} | ||
|
||
demo-app > router-outlet + .main-content, | ||
demo-app > router-outlet + app-component-sidenav { | ||
margin-top: 56px; | ||
overflow-y: auto; | ||
-webkit-overflow-scrolling: touch; | ||
} | ||
|
||
@media (max-width: $extra-small-breakpoint-width) { | ||
demo-app > router-outlet + .main-content, | ||
demo-app > router-outlet + app-component-sidenav { | ||
margin-top: 92px; | ||
overflow-y: visible; | ||
} | ||
} |
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
7 changes: 7 additions & 0 deletions
7
projects/sage-angular-demo/src/app/pages/explore/_explore-theme.scss
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,7 @@ | ||
@mixin explore-theme($theme) { | ||
$primary: map-get($theme, primary); | ||
$accent: map-get($theme, accent); | ||
$warn: map-get($theme, warn); | ||
$background: map-get($theme, background); | ||
$foreground: map-get($theme, foreground); | ||
} |
5 changes: 5 additions & 0 deletions
5
projects/sage-angular-demo/src/app/pages/explore/explore.component.html
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,5 @@ | ||
<main> | ||
<p>explore works!</p> | ||
</main> | ||
|
||
<sage-footer></sage-footer> |
3 changes: 3 additions & 0 deletions
3
projects/sage-angular-demo/src/app/pages/explore/explore.component.scss
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,3 @@ | ||
main { | ||
min-height: 100vh; | ||
} |
12 changes: 6 additions & 6 deletions
12
...ub-button/github-button.component.spec.ts → ...p/pages/explore/explore.component.spec.ts
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
14 changes: 14 additions & 0 deletions
14
projects/sage-angular-demo/src/app/pages/explore/explore.component.ts
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,14 @@ | ||
import { Component, HostBinding, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'demo-explore', | ||
templateUrl: './explore.component.html', | ||
styleUrls: ['./explore.component.scss'] | ||
}) | ||
export class ExploreComponent implements OnInit { | ||
@HostBinding('class.main-content') readonly mainContentClass = true; | ||
|
||
constructor() {} | ||
|
||
ngOnInit(): void {} | ||
} |
22 changes: 22 additions & 0 deletions
22
projects/sage-angular-demo/src/app/pages/explore/explore.module.ts
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,22 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { RouterModule, Routes } from '@angular/router'; | ||
|
||
import { FooterModule } from '@sage-bionetworks/sage-angular/src/lib/footer'; | ||
|
||
import { ExploreComponent } from './explore.component'; | ||
|
||
const routes: Routes = [ | ||
{ path: '', component: ExploreComponent } | ||
]; | ||
|
||
@NgModule({ | ||
declarations: [ExploreComponent], | ||
imports: [ | ||
CommonModule, | ||
RouterModule.forChild(routes), | ||
FooterModule | ||
], | ||
exports: [ExploreComponent] | ||
}) | ||
export class ExploreModule {} |
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 @@ | ||
export * from './explore.component'; | ||
export * from './explore.module'; |
7 changes: 7 additions & 0 deletions
7
projects/sage-angular-demo/src/app/pages/homepage/_homepage-theme.scss
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,7 @@ | ||
@mixin homepage-theme($theme) { | ||
$primary: map-get($theme, primary); | ||
$accent: map-get($theme, accent); | ||
$warn: map-get($theme, warn); | ||
$background: map-get($theme, background); | ||
$foreground: map-get($theme, foreground); | ||
} |
5 changes: 4 additions & 1 deletion
5
projects/sage-angular-demo/src/app/pages/homepage/homepage.component.html
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,2 +1,5 @@ | ||
<p>homepage works!</p> | ||
<main> | ||
<p>homepage works!</p> | ||
</main> | ||
|
||
<sage-footer></sage-footer> |
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,3 @@ | ||
main { | ||
min-height: 100vh; | ||
} |
6 changes: 4 additions & 2 deletions
6
projects/sage-angular-demo/src/app/pages/homepage/homepage.component.ts
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
6 changes: 6 additions & 0 deletions
6
projects/sage-angular-demo/src/app/pages/homepage/homepage.module.ts
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
7 changes: 7 additions & 0 deletions
7
projects/sage-angular-demo/src/app/pages/signin/_signin-theme.scss
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,7 @@ | ||
@mixin signin-theme($theme) { | ||
$primary: map-get($theme, primary); | ||
$accent: map-get($theme, accent); | ||
$warn: map-get($theme, warn); | ||
$background: map-get($theme, background); | ||
$foreground: map-get($theme, foreground); | ||
} |
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 @@ | ||
export * from './signin.component'; | ||
export * from './signin.module'; |
Oops, something went wrong.