-
Notifications
You must be signed in to change notification settings - Fork 0
Angular bootcamp
Vojtech Mašek edited this page Aug 19, 2019
·
2 revisions
Slidy: Google Slides
Zdroje:
- message.component.html
- message.component.css
- app.component.html
- app.component.css
- styles.css
- úprava
index.html
:
<html lang="en">
<head>
...
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet" />
</head>
...
</html>
Zdroje:
Zdroje:
const replacements = [
{ pattern: /:-?\)/g, emoji: '\uD83D\uDE42' },
{ pattern: /:-?D/g, emoji: '\uD83D\uDE04' },
{ pattern: /;-?\)/g, emoji: '\uD83D\uDE09' },
{ pattern: /XD/g, emoji: '\uD83D\uDE06' },
{ pattern: /:-?\*/g, emoji: '\uD83D\uDE18' },
{ pattern: /\^\^/g, emoji: '\uD83D\uDE0A' },
{ pattern: /:-?P/g, emoji: '\uD83D\uDE1B' },
{ pattern: /;-?P/g, emoji: '\uD83D\uDE1C' },
{ pattern: /:-?\|/g, emoji: '\uD83D\uDE10' },
{ pattern: /8-?\)/g, emoji: '\uD83D\uDE0E' },
{ pattern: /:-?\(/g, emoji: '\uD83D\uDE1E' },
{ pattern: /:-?[oO]/g, emoji: '\uD83D\uDE2E' },
{ pattern: /:'-?\(/g, emoji: '\uD83D\uDE22' },
{ pattern: /></g, emoji: '\uD83D\uDE16' },
{ pattern: /\+1/g, emoji: '\uD83D\uDC4D' },
{ pattern: /-1/g, emoji: '\uD83D\uDC4E' },
{ pattern: /<3/g, emoji: '\uD83D\uDC93' },
];
Zdroje:
- like.model.ts
- úprava
index.html
:
<html lang="en">
<head>
...
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
</head>
...
</html>
- úprava
message.component.html
:
<div class="message">
...
<div class="text-wrapper">
<div class="text">{{ message.text | emoji }}</div>
<div class="likes">
<i class="material-icons like-icon">thumb_up</i>
<span class="likes-count">LIKES</span>
</div>
</div>
</div>
Zdroje:
- úprava
message.component.css
:
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.message {
padding: 20px 25px;
animation: fade-in 1s ease-in;
}
...
-
FE / Angular
-
Golang
-
DevOps
-
Agile process and SCRUM
-
Internship
-
Bootcamp