Last active
April 18, 2021 09:20
-
-
Save ZacznijProgramowac/7941e69e8d0408d3f311e2d3baef9804 to your computer and use it in GitHub Desktop.
Kod startowy aplikacji "Easy Words"
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
"styles": [ | |
"src/styles.css", | |
"./node_modules/materialize-css/dist/css/materialize.css" | |
], | |
"scripts": [ | |
"./node_modules/materialize-css/dist/js/materialize.js" | |
] |
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
.incorrect { | |
background-color: brown; | |
} |
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
<ul class="collection with-header"> | |
<li class="collection-header"> | |
<h4>Verbs/Nouns</h4> | |
</li> | |
<li | |
class="collection-item" | |
> | |
Example Verb/Noun | |
</li> | |
<li | |
class="collection-item incorrect" | |
> | |
Example Verb/Noun | |
</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
<div class="row"> | |
<div class="col s12"> | |
<app-question></app-question> | |
</div> | |
<div class="col s6"> | |
<app-answers></app-answers> | |
</div> | |
<div class="col s6"> | |
<app-answers></app-answers> | |
</div> | |
</div> |
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
import { Type, WordType } from './models'; | |
export const WORDS: WordType[] = [ | |
{ | |
word: 'accept', | |
type: Type.VERB, | |
}, | |
{ | |
word: 'advice', | |
type: Type.NOUN, | |
}, | |
{ | |
word: 'blood', | |
type: Type.NOUN, | |
}, | |
{ | |
word: 'clear', | |
type: Type.VERB, | |
}, | |
{ | |
word: 'damage', | |
type: Type.VERB, | |
}, | |
{ | |
word: 'choice', | |
type: Type.NOUN, | |
}, | |
{ | |
word: 'educate', | |
type: Type.VERB, | |
}, | |
]; |
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
export interface WordType { | |
word: string; | |
type: Type; | |
correct?: boolean; | |
} | |
export enum Type { | |
NOUN, VERB | |
} |
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
"materialize-css": "1.0.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
.m5 { | |
margin-right: 10px; | |
} |
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
<div class="row center"> | |
<div class="col s12"> | |
<div class="card blue-grey darken-1"> | |
<div class="card-content white-text"> | |
<h2>Spoon</h2> | |
</div> | |
<div class="card-action"> | |
<button class="btn-large blue m5"> | |
Noun | |
</button> | |
<button class="btn-large blue"> | |
Verb | |
</button> | |
<button class="btn-large black"> | |
Sprawdź | |
</button> | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment