Skip to content

Quiz #1229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 210 commits into
base: master
Choose a base branch
from
Open

Quiz #1229

Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
dd5197e
quiz component -- worked on accordion
marvinrusinek Dec 25, 2019
4addcf1
quiz assets
marvinrusinek Dec 25, 2019
a23a7be
added styles.scss
marvinrusinek Dec 25, 2019
6b2b4c9
fixed completionTime and percentage in results
marvinrusinek Jan 2, 2020
a1cac0c
quiz updated
marvinrusinek Jan 2, 2020
b1ba90d
quiz update
marvinrusinek Jan 9, 2020
9e2f984
quiz update2
marvinrusinek Jan 10, 2020
7e5026c
moved percentage to ResultsComponent
marvinrusinek Jan 10, 2020
3012a77
moved percentage to ResultsComponent
marvinrusinek Jan 10, 2020
3c183d7
changed text in mat-card-content paragraph
marvinrusinek Jan 10, 2020
93ccd90
edited elapsedTime formula
marvinrusinek Jan 10, 2020
c255d5f
added % to social media section in results
marvinrusinek Jan 10, 2020
3ad1f7a
refactored code in countdown function
marvinrusinek Jan 10, 2020
ebe830b
refactored countdown some more
marvinrusinek Jan 10, 2020
920dda8
transfer data via state
marvinrusinek Jan 12, 2020
b72cc4e
transfer data via state
marvinrusinek Jan 12, 2020
3c7f416
added more questions back
marvinrusinek Jan 12, 2020
61f94ba
added dynamic accordion to ResultsComponent
marvinrusinek Jan 14, 2020
972684e
made questions inside accordion +/-
marvinrusinek Jan 15, 2020
e11cfb0
added elapsedTime function
marvinrusinek Feb 2, 2020
4bc3ea0
added addElapsedTime function
marvinrusinek Feb 4, 2020
ca6a904
quiz update after first code review
marvinrusinek Feb 27, 2020
d819b7f
quiz app files uploaded 04/02/20
marvinrusinek Apr 2, 2020
9b1c1cd
Initial commit
marvinrusinek Jul 2, 2020
9be7272
Delete README.md
marvinrusinek Jul 2, 2020
2fbbc47
upload quiz app
marvinrusinek Jul 2, 2020
66bfa2c
Created README.md
marvinrusinek Jul 2, 2020
8e40052
Add files via upload
marvinrusinek Jul 2, 2020
a8ca3f6
Update README.md
marvinrusinek Jul 2, 2020
42a2bf1
Update README.md
marvinrusinek Jul 2, 2020
6ec881a
fixed condition inside checkIfAnsweredCorrectly
marvinrusinek Jul 2, 2020
4928b8f
add Angular 9 RxJS quiz app files
marvinrusinek Jul 2, 2020
a2e4c9c
add getters to dependency-injection-quiz.component.ts
marvinrusinek Jul 3, 2020
92fef5c
removed this.quizMetadata.totalQuestions from ngOnInit
marvinrusinek Jul 3, 2020
4e79b9a
simplify multipleAnswer assignment in ngOnChanges
marvinrusinek Jul 3, 2020
53e81d5
add empty promise to this.router.navigate statements
marvinrusinek Jul 3, 2020
c54b1d6
add .then() to this.router.navigate
marvinrusinek Jul 3, 2020
816c923
add .then() to this.router.navigate
marvinrusinek Jul 3, 2020
a99d01c
add .then()
marvinrusinek Jul 3, 2020
ad211c0
simplify this.multipleAnswers assignment
marvinrusinek Jul 3, 2020
7ec6574
add .then() to this.router.navigate routes
marvinrusinek Jul 3, 2020
ac932b0
add .then() to this.router.navigate route
marvinrusinek Jul 3, 2020
2b102ef
remove this.quizMetadata.totalQuestions from ngOnInit
marvinrusinek Jul 3, 2020
cb4e0c4
add explanationText and numberOfCorrectOptions getters to declarations
marvinrusinek Jul 3, 2020
c301d85
Update README.md
marvinrusinek Jul 3, 2020
4196160
Update README.md
marvinrusinek Jul 10, 2020
887e2ed
quiz app after quiz-selection component is added and the routing works
marvinrusinek Jul 18, 2020
1ef4a1a
base app almost done
marvinrusinek Jul 31, 2020
eb793d4
Update README.md
marvinrusinek Jul 31, 2020
c7bf3c4
Update README.md
marvinrusinek Jul 31, 2020
f61bee5
Update README.md
marvinrusinek Jul 31, 2020
06aa7ef
Update README.md
marvinrusinek Jul 31, 2020
9bd6a6d
Update README.md
marvinrusinek Jul 31, 2020
74b8239
removed onClick in QuizSelectionComponent
marvinrusinek Aug 1, 2020
472ff86
Update README.md
marvinrusinek Aug 1, 2020
011a797
previous answer text showing in new quiz
marvinrusinek Aug 4, 2020
f34b1bd
Update README.md
marvinrusinek Aug 6, 2020
4e03d28
added mat-checkbox to shuffle questions/answers in IntroductionComponent
marvinrusinek Aug 6, 2020
db360b7
made some changes to QuizComponent ts file
marvinrusinek Aug 6, 2020
e748bb8
fixed Twitter URL in ResultsComponent
marvinrusinek Aug 6, 2020
6ec2ffe
upload of latest quiz app
marvinrusinek Aug 10, 2020
9fdaef3
Update README.md
marvinrusinek Aug 14, 2020
e531d86
Update README.md
marvinrusinek Aug 14, 2020
17f6d4a
fixed scoring issue for multiple-answer questions
marvinrusinek Aug 14, 2020
84dda0b
Update README.md
marvinrusinek Aug 14, 2020
d055215
Update README.md
marvinrusinek Aug 14, 2020
cb5835f
Update README.md
marvinrusinek Aug 14, 2020
5734ed2
Update README.md
marvinrusinek Aug 14, 2020
1e1a3ab
Update README.md
marvinrusinek Aug 16, 2020
99ca552
Update README.md
marvinrusinek Aug 16, 2020
0f3f0bf
Update README.md
marvinrusinek Aug 16, 2020
b5fca62
Update README.md
marvinrusinek Aug 17, 2020
5da7f18
Update README.md
marvinrusinek Aug 18, 2020
1405e7d
Update README.md
marvinrusinek Aug 18, 2020
74c8109
Update README.md
marvinrusinek Aug 18, 2020
e1e359e
Update README.md
marvinrusinek Aug 19, 2020
6acf547
made some more changes to the app
marvinrusinek Aug 19, 2020
17e0890
Update README.md
marvinrusinek Aug 19, 2020
bbd84ca
Update README.md
marvinrusinek Aug 19, 2020
93858bf
backup of quiz 08-22-20
marvinrusinek Aug 22, 2020
da3f67c
quiz 08-22-20, fixed saveHighScores function
marvinrusinek Aug 22, 2020
590e130
quiz uploaded 08-22-20
marvinrusinek Aug 22, 2020
c668a96
Update README.md
marvinrusinek Aug 22, 2020
0912e23
Update README.md
marvinrusinek Aug 22, 2020
90d5bc2
Update README.md
marvinrusinek Aug 22, 2020
b50edc2
Add files via upload
marvinrusinek Aug 22, 2020
84a1d15
quiz upload 08-23-20
marvinrusinek Aug 23, 2020
e1f5630
Update README.md
marvinrusinek Aug 23, 2020
533c602
Update README.md
marvinrusinek Aug 23, 2020
94d4740
Update README.md
marvinrusinek Aug 24, 2020
c381b03
quiz upload 08-24-20
marvinrusinek Aug 24, 2020
ca4fc4e
fixed completed quiz icon issue
marvinrusinek Aug 24, 2020
50ab27f
Update README.md
marvinrusinek Aug 24, 2020
4f180d3
Update README.md
marvinrusinek Aug 24, 2020
7b31ba7
Update README.md
marvinrusinek Aug 24, 2020
adb8f7d
Update README.md
marvinrusinek Aug 24, 2020
c2cc6d7
fixed the setPreviousUserAnswersText function in QuizService
marvinrusinek Aug 24, 2020
8438a92
Update README.md
marvinrusinek Aug 24, 2020
12f20f9
fixed opacity for completed quizzes in QuizSelectionComponent
marvinrusinek Aug 24, 2020
080630a
Update README.md
marvinrusinek Aug 24, 2020
aed971d
Update README.md
marvinrusinek Aug 24, 2020
896ca7c
Update README.md
marvinrusinek Aug 24, 2020
12eb86c
Update README.md
marvinrusinek Aug 24, 2020
17b357f
Update README.md
marvinrusinek Aug 24, 2020
a57b934
Update README.md
marvinrusinek Aug 25, 2020
0015152
quiz upload 08-27-2020
marvinrusinek Aug 27, 2020
4eabf0e
Merge branch 'master' into quiz
marvinrusinek Aug 27, 2020
bd30a54
Update README.md
marvinrusinek Aug 27, 2020
e507c26
2nd quiz upload 08-27-2020
marvinrusinek Aug 27, 2020
b11d123
Delete app.component.ts
marvinrusinek Aug 27, 2020
44f712b
Delete app.component.html
marvinrusinek Aug 27, 2020
bf5bc85
Delete app.module.ts
marvinrusinek Aug 27, 2020
ad20d20
Delete quiz.module.ts
marvinrusinek Aug 27, 2020
f637654
Delete dependency-injection-quiz.component.html
marvinrusinek Aug 27, 2020
4b6518e
Delete dependency-injection-quiz.component.scss
marvinrusinek Aug 27, 2020
3ded868
Delete dependency-injection-quiz.component.ts
marvinrusinek Aug 27, 2020
a9ac9b9
Update README.md
marvinrusinek Aug 27, 2020
970bc9f
uploading codelab files from 02-27-2020
marvinrusinek Aug 30, 2020
46f5f25
upload files to quiz branch 08-31-20
marvinrusinek Aug 31, 2020
3bcd0f9
upload quiz app folder 09-05-20
marvinrusinek Sep 5, 2020
6c31000
upload app.module.ts, assets folder and index.html
marvinrusinek Sep 5, 2020
afcd29a
Update README.md
marvinrusinek Sep 5, 2020
a455213
screenshot of app
marvinrusinek Sep 5, 2020
cf7a1ae
Update README.md
marvinrusinek Sep 5, 2020
289b922
Update README.md
marvinrusinek Sep 5, 2020
396d4a0
Update README.md
marvinrusinek Sep 5, 2020
f84f338
Update README.md
marvinrusinek Sep 5, 2020
6207c98
Update README.md
marvinrusinek Sep 5, 2020
aa43ea2
Update README.md
marvinrusinek Sep 5, 2020
c286267
Update README.md
marvinrusinek Sep 5, 2020
b3a9941
Update README.md
marvinrusinek Sep 5, 2020
769f3d6
commit before merging
marvinrusinek Sep 6, 2020
f1291a7
commit before merging
marvinrusinek Sep 6, 2020
ad769ba
commit before merge
marvinrusinek Sep 6, 2020
fc2b63d
quiz upload 09-06-20
marvinrusinek Sep 6, 2020
2fe3349
upload assets and index.html
marvinrusinek Sep 6, 2020
04dcb5e
upload app.module.ts 09-06-20
marvinrusinek Sep 6, 2020
fa69698
upload quiz app 09-06-20
marvinrusinek Sep 6, 2020
931316b
commit 09-07-20
marvinrusinek Sep 7, 2020
3a4dddf
upload files
marvinrusinek Sep 7, 2020
824aac3
add .gitignore .editorconfig
marvinrusinek Sep 7, 2020
ae360ed
upload files
marvinrusinek Sep 7, 2020
3dcd241
add files
marvinrusinek Sep 7, 2020
17375f3
Removed submodule
marvinrusinek Sep 7, 2020
97ad2a7
add .gitignore .editorconfig
marvinrusinek Sep 7, 2020
c9fb50b
removed submodule
marvinrusinek Sep 7, 2020
c3b8f0a
commit before merge 09-07-20
marvinrusinek Sep 7, 2020
04e807d
add .git/config
marvinrusinek Sep 7, 2020
c086c90
upload quiz files on codelab/quiz
marvinrusinek Sep 7, 2020
035150f
upload files to codelab/quiz 11-16-20
marvinrusinek Nov 16, 2020
736c144
upload quiz 11-16-20
marvinrusinek Nov 16, 2020
a869d94
commit before merging
marvinrusinek Nov 16, 2020
2efc61b
Add files via upload
marvinrusinek Nov 17, 2020
a7f34ba
got rid of unnecessary variables in QuizSelectionComponent
marvinrusinek Nov 18, 2020
ed66260
removed unncessary unsubscribe and onDestroy
marvinrusinek Nov 18, 2020
6afbc40
get this.quizId using dependency injection, remove OnDestroy
marvinrusinek Nov 18, 2020
d35dd0e
remove unsubscribe$, Subject, activatedRoute from results components
marvinrusinek Nov 18, 2020
eb70025
fix - use semicolons in interfaces
marvinrusinek Nov 20, 2020
cbdbf8b
add currentQuestionIndex back to quiz-selection TS
marvinrusinek Nov 22, 2020
efba79f
remove toString().concat() in setCorrectOptions in QuizService
marvinrusinek Nov 24, 2020
ba76282
move justify into css
marvinrusinek Nov 24, 2020
30cda8a
remove duplicate code using inheritance
marvinrusinek Nov 25, 2020
33aebb1
change public to private in constructor
marvinrusinek Nov 25, 2020
dce7cae
make changes to scss in results containers
marvinrusinek Nov 26, 2020
1c542cc
move next message up a little
marvinrusinek Nov 26, 2020
c300c81
remove sendCurrentQuestion, this.question, this.quizStarted
marvinrusinek Nov 26, 2020
892b962
work on high scores table
marvinrusinek Nov 26, 2020
a3eead2
fixed some html in statistics template
marvinrusinek Nov 26, 2020
edbb5bf
remove class from ul
marvinrusinek Nov 26, 2020
b04e5f8
remove section tag from statistics template
marvinrusinek Nov 26, 2020
74d01a4
remove section tag from summary report
marvinrusinek Nov 26, 2020
f04fa1a
remove section tag from challenge
marvinrusinek Nov 26, 2020
64e795d
simplify the question components some more
marvinrusinek Nov 26, 2020
4aa8fed
move duplicate css into question.component.scss
marvinrusinek Nov 26, 2020
ffc01f2
move next message down a bit
marvinrusinek Nov 26, 2020
99f4837
simplify the css some more
marvinrusinek Nov 26, 2020
f6f25ec
align content inside mat-card-header
marvinrusinek Nov 27, 2020
752d146
move next message up
marvinrusinek Nov 27, 2020
edc25ef
combine styles together
marvinrusinek Nov 27, 2020
55b9273
use mat-card-title-group in quiz
marvinrusinek Nov 27, 2020
7b302b8
move paging up for the last question
marvinrusinek Nov 27, 2020
19b6b7b
fix bootstrap classes and styling in mat-card-header
marvinrusinek Nov 27, 2020
f54e51d
remove display: inline from mat-grid-tile
marvinrusinek Nov 27, 2020
1198744
remove justify-content from mat-grid-tile
marvinrusinek Nov 28, 2020
b50f1c6
use ng-container in form templates
marvinrusinek Nov 28, 2020
bfceccd
use section element for message in form templates
marvinrusinek Nov 28, 2020
1ebd1c4
use mat-card-title-group in introduction component
marvinrusinek Nov 28, 2020
da48800
use conditional two-way binding for elapsedMinute(s)
marvinrusinek Nov 28, 2020
5007ecc
use conditional two-way binding for totalQuestions
marvinrusinek Nov 28, 2020
7bfec42
use conditional 2-way binding with elapsedMinutes in summary report
marvinrusinek Nov 28, 2020
05fda98
rename variables for localStorage
marvinrusinek Nov 28, 2020
72729fc
moved saveHighScores to QuizService
marvinrusinek Nov 29, 2020
9c2adb3
made some changes to quiz service and quiz data files
marvinrusinek Nov 30, 2020
8deb25f
declared enum status globally and refactored
marvinrusinek Nov 30, 2020
ba76a90
fix path for models in imports and use bootstrap for header in quiz c…
marvinrusinek Nov 30, 2020
b2099fc
remove class binding from mat-card-footer and fix scss
marvinrusinek Dec 1, 2020
a171e91
fix last question logic in quiz component and center the quiz-selecti…
marvinrusinek Dec 23, 2020
5d509ad
update mat-card css for centering in styles.scss
marvinrusinek Dec 24, 2020
08cd06c
move start$, reset$ and stop$ variables inside constructor
marvinrusinek Dec 25, 2020
b2b5045
use ngOnInit inside TimerComponent
marvinrusinek Dec 25, 2020
f94426f
remove unused checkedShuffle
marvinrusinek Dec 28, 2020
4864f46
add concat$ observable
marvinrusinek Dec 28, 2020
ab28119
reorder variables in ScoreComponent
marvinrusinek Dec 28, 2020
3f399a5
added void to ngOnChanges
marvinrusinek Dec 28, 2020
067410b
use conditional 2-way binding for number of questions in Introduction…
marvinrusinek Jan 4, 2021
c7a18d9
change matTooltipPosition from below to above for next question
marvinrusinek Jan 7, 2021
844b3e7
remove superfluous heading text in the statistics section of results
marvinrusinek Jan 7, 2021
aab2d21
move currentQuestion variable down
marvinrusinek Jan 15, 2021
e42ec67
added space before closing brace
marvinrusinek Jan 16, 2021
197fa7c
made some changes for responsive quiz app using CSS Grid and media qu…
marvinrusinek May 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added apps/playground/assets/DjbUpOnTheScoreboard.ttf
Binary file not shown.
Binary file added apps/playground/assets/alarm-clock.ttf
Binary file not shown.
Binary file added apps/playground/assets/images/DIDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/playground/assets/images/angular.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions apps/playground/assets/images/angular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/playground/assets/images/congratulations.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions apps/playground/assets/images/email.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/playground/assets/images/facebook.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/playground/assets/images/headgears.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/playground/assets/images/ngtrophy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/playground/assets/images/notbad.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/playground/assets/images/tryagain.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions apps/playground/assets/images/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/playground/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<router-outlet></router-outlet>
<router-outlet></router-outlet>
266 changes: 133 additions & 133 deletions apps/playground/src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -1,133 +1,133 @@
/*
* Remove template code below
*/
:host {
display: block;
font-family: sans-serif;
min-width: 300px;
max-width: 1600px;
margin: 50px auto;
}

.gutter-left {
margin-left: 9px;
}

.col-span-2 {
grid-column: span 2;
}

.flex {
display: flex;
align-items: center;
justify-content: center;
}

header {
background-color: #143055;
color: white;
padding: 5px;
border-radius: 3px;
}

main {
padding: 0 36px;
}

p {
text-align: center;
}

h1 {
text-align: center;
margin-left: 18px;
font-size: 24px;
}

h2 {
text-align: center;
font-size: 20px;
margin: 40px 0 10px 0;
}

.resources {
text-align: center;
list-style: none;
padding: 0;
display: grid;
grid-gap: 9px;
grid-template-columns: 1fr 1fr;
}

.resource {
color: #0094ba;
height: 36px;
background-color: rgba(0, 0, 0, 0);
border: 1px solid rgba(0, 0, 0, 0.12);
border-radius: 4px;
padding: 3px 9px;
text-decoration: none;
}

.resource:hover {
background-color: rgba(68, 138, 255, 0.04);
}

pre {
padding: 9px;
border-radius: 4px;
background-color: black;
color: #eee;
}

details {
border-radius: 4px;
color: #333;
background-color: rgba(0, 0, 0, 0);
border: 1px solid rgba(0, 0, 0, 0.12);
padding: 3px 9px;
margin-bottom: 9px;
}

summary {
cursor: pointer;
outline: none;
height: 36px;
line-height: 36px;
}

.github-star-container {
margin-top: 12px;
line-height: 20px;
}

.github-star-container a {
display: flex;
align-items: center;
text-decoration: none;
color: #333;
}

.github-star-badge {
color: #24292e;
display: flex;
align-items: center;
font-size: 12px;
padding: 3px 10px;
border: 1px solid rgba(27, 31, 35, 0.2);
border-radius: 3px;
background-image: linear-gradient(-180deg, #fafbfc, #eff3f6 90%);
margin-left: 4px;
font-weight: 600;
}

.github-star-badge:hover {
background-image: linear-gradient(-180deg, #f0f3f6, #e6ebf1 90%);
border-color: rgba(27, 31, 35, 0.35);
background-position: -0.5em;
}
.github-star-badge .material-icons {
height: 16px;
width: 16px;
margin-right: 4px;
}
/*
* Remove template code below
*/
:host {
display: block;
font-family: sans-serif;
min-width: 300px;
max-width: 1600px;
margin: 50px auto;
}
.gutter-left {
margin-left: 9px;
}
.col-span-2 {
grid-column: span 2;
}
.flex {
display: flex;
align-items: center;
justify-content: center;
}
header {
background-color: #143055;
color: white;
padding: 5px;
border-radius: 3px;
}
main {
padding: 0 36px;
}
p {
text-align: center;
}
h1 {
text-align: center;
margin-left: 18px;
font-size: 24px;
}
h2 {
text-align: center;
font-size: 20px;
margin: 40px 0 10px 0;
}
.resources {
text-align: center;
list-style: none;
padding: 0;
display: grid;
grid-gap: 9px;
grid-template-columns: 1fr 1fr;
}
.resource {
color: #0094ba;
height: 36px;
background-color: rgba(0, 0, 0, 0);
border: 1px solid rgba(0, 0, 0, 0.12);
border-radius: 4px;
padding: 3px 9px;
text-decoration: none;
}
.resource:hover {
background-color: rgba(68, 138, 255, 0.04);
}
pre {
padding: 9px;
border-radius: 4px;
background-color: black;
color: #eee;
}
details {
border-radius: 4px;
color: #333;
background-color: rgba(0, 0, 0, 0);
border: 1px solid rgba(0, 0, 0, 0.12);
padding: 3px 9px;
margin-bottom: 9px;
}
summary {
cursor: pointer;
outline: none;
height: 36px;
line-height: 36px;
}
.github-star-container {
margin-top: 12px;
line-height: 20px;
}
.github-star-container a {
display: flex;
align-items: center;
text-decoration: none;
color: #333;
}
.github-star-badge {
color: #24292e;
display: flex;
align-items: center;
font-size: 12px;
padding: 3px 10px;
border: 1px solid rgba(27, 31, 35, 0.2);
border-radius: 3px;
background-image: linear-gradient(-180deg, #fafbfc, #eff3f6 90%);
margin-left: 4px;
font-weight: 600;
}
.github-star-badge:hover {
background-image: linear-gradient(-180deg, #f0f3f6, #e6ebf1 90%);
border-color: rgba(27, 31, 35, 0.35);
background-position: -0.5em;
}
.github-star-badge .material-icons {
height: 16px;
width: 16px;
margin-right: 4px;
}
66 changes: 33 additions & 33 deletions apps/playground/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
import { async, TestBed } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { RouterTestingModule } from '@angular/router/testing';
import { AppModule } from './app.module';

describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [RouterTestingModule, AppModule]
}).compileComponents();
}));

it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
});

it(`should have as title 'playground'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('playground');
});

it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
expect(compiled.querySelector('h1').textContent).toContain(
'Welcome to playground!'
);
});
});
import { async, TestBed } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { RouterTestingModule } from '@angular/router/testing';
import { AppModule } from './app.module';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [RouterTestingModule, AppModule]
}).compileComponents();
}));
it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
});
it(`should have as title 'playground'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('playground');
});
it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
expect(compiled.querySelector('h1').textContent).toContain(
'Welcome to playground!'
);
});
});
20 changes: 10 additions & 10 deletions apps/playground/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Component } from '@angular/core';

@Component({
selector: 'codelab-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'playground';
}
import { Component } from '@angular/core';
@Component({
selector: 'codelab-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'playground';
}
Loading