Skip to content

Commit bee67e7

Browse files
committed
feat: change font
1 parent 7928210 commit bee67e7

File tree

5 files changed

+26
-20
lines changed

5 files changed

+26
-20
lines changed

src/app/app.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CUSTOM_ELEMENTS_SCHEMA, Component } from "@angular/core";
22
import { CommonModule } from "@angular/common";
3-
import { TextComponent } from "./elements/buttons/text/text.component";
3+
import { ButtonTextComponent } from "./elements/buttons/text/text.component";
44
import "@material/web/button/elevated-button";
55
import "@material/web/button/filled-button";
66
import "@material/web/button/outlined-button";
@@ -10,7 +10,7 @@ import "@material/web/button/filled-tonal-button";
1010
@Component({
1111
selector: "app-root",
1212
standalone: true,
13-
imports: [CommonModule, TextComponent],
13+
imports: [CommonModule, ButtonTextComponent],
1414
schemas: [CUSTOM_ELEMENTS_SCHEMA],
1515
template: `
1616
<h3>@material/web components</h3>

src/app/elements/buttons/text/text.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import "@material/web/icon/icon";
1919
styles: [],
2020
schemas: [CUSTOM_ELEMENTS_SCHEMA],
2121
})
22-
export class TextComponent {
23-
@Input() icon: string | undefined = "";
22+
export class ButtonTextComponent {
23+
@Input() icon = "";
2424
@Input() trailingIcon = false;
2525
@Input() disabled = false;
2626
}

src/index.html

+22-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8">
5-
<title>MaterialWebNg</title>
6-
<base href="/">
7-
<meta name="viewport" content="width=device-width, initial-scale=1">
8-
<link rel="icon" type="image/x-icon" href="favicon.ico">
9-
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet" />
10-
</head>
11-
<body>
12-
<app-root></app-root>
13-
</body>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>MaterialWebNg</title>
6+
<base href="/" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1" />
8+
<link rel="icon" type="image/x-icon" href="favicon.ico" />
9+
<link
10+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined"
11+
rel="stylesheet"
12+
/>
13+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
14+
<link rel="preconnect" href="https://fonts.googleapis.com" />
15+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
16+
<link
17+
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"
18+
rel="stylesheet"
19+
/>
20+
</head>
21+
<body>
22+
<app-root></app-root>
23+
</body>
1424
</html>

src/styles.css

-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
@font-face {
2-
font-family: Roboto;
3-
src: url("/assets/fonts/RobotoFlex-VariableFont_GRAD\,XTRA\,YOPQ\,YTAS\,YTDE\,YTFI\,YTLC\,YTUC\,opsz\,slnt\,wdth\,wght.ttf");
4-
}

0 commit comments

Comments
 (0)