-
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.
- Loading branch information
1 parent
28c70fc
commit c4c6d1e
Showing
10 changed files
with
36 additions
and
41 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 was deleted.
Oops, something went wrong.
10 changes: 6 additions & 4 deletions
10
src/app/components/inputs/submit-button/submit-button.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,11 +1,13 @@ | ||
<button | ||
[disabled]="disabled" | ||
class="w-full rounded-lg border border-transparent bg-blue-700 px-5 py-2.5 text-center text-sm font-medium | ||
text-white | ||
hover:bg-blue-800 | ||
focus:outline-none focus:ring-4 focus:ring-blue-300 | ||
disabled:cursor-not-allowed disabled:border-gray-200 disabled:bg-white disabled:text-gray-400 | ||
dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 | ||
disabled:dark:border-red-400 disabled:dark:bg-gray-950 sm:w-auto" | ||
focus:outline-none | ||
focus:ring-4 focus:ring-blue-300 disabled:cursor-not-allowed | ||
disabled:border-gray-200 disabled:bg-white disabled:text-gray-400 dark:bg-blue-600 | ||
dark:hover:bg-blue-700 dark:focus:ring-blue-800 | ||
disabled:dark:border-gray-400 disabled:dark:bg-gray-950 sm:w-auto" | ||
type="submit"> | ||
<ng-content></ng-content> | ||
</button> |
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
File renamed without changes.
File renamed without changes.
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,19 @@ | ||
<pap-h1>Würfeln</pap-h1> | ||
|
||
<form class="mx-auto max-w-sm"> | ||
<div class="mb-5"> | ||
<label class="mb-2 block text-sm font-medium" for="dice">Definition</label> | ||
<input | ||
[(ngModel)]="dice" | ||
class="block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500" | ||
id="dice" | ||
name="dice" | ||
placeholder="2d20" | ||
required | ||
type="text" /> | ||
</div> | ||
<pap-submit-button (click)="roll()" [disabled]="!dice"> Würfeln! </pap-submit-button> | ||
|
||
<div class="mt-4">Ergebnis: {{ result }}</div> | ||
</form> | ||
<canvas class="mt-4 w-full border" id="dice-canvas"></canvas> |
4 changes: 3 additions & 1 deletion
4
src/app/components/dice/dice.component.ts → ...p/components/tools/dice/dice.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
This file was deleted.
Oops, something went wrong.