Skip to content

Commit

Permalink
optimize page by lighthouse advise
Browse files Browse the repository at this point in the history
  • Loading branch information
AW-AlanWu committed Apr 16, 2024
1 parent 78c6f39 commit f127ca5
Show file tree
Hide file tree
Showing 22 changed files with 100 additions and 3,274 deletions.
2 changes: 1 addition & 1 deletion assets/css/font-awesome.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/css/iconfont.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
url('../fonts/bootstrapThemesCo-icon.svg?dcpptv#bootstrapThemesCo-icon') format('svg');
font-weight: normal;
font-style: normal;
font-display: swap;
}

.icon {
Expand Down
69 changes: 68 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1306,4 +1306,71 @@ nav.navbar.bootsnav.footer-menu ul li a:hover{
.scrollup:hover {
background-color: blueviolet;
color:#fff;
}
}

/* google fonts */

/* ubuntu-300 - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Ubuntu';
font-style: normal;
font-weight: 300;
src: url('../google_fonts/ubuntu-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ubuntu-300italic - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Ubuntu';
font-style: italic;
font-weight: 300;
src: url('../google_fonts/ubuntu-v20-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ubuntu-regular - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Ubuntu';
font-style: normal;
font-weight: 400;
src: url('../google_fonts/ubuntu-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ubuntu-italic - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Ubuntu';
font-style: italic;
font-weight: 400;
src: url('../google_fonts/ubuntu-v20-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ubuntu-500 - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Ubuntu';
font-style: normal;
font-weight: 500;
src: url('../google_fonts/ubuntu-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ubuntu-500italic - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Ubuntu';
font-style: italic;
font-weight: 500;
src: url('../google_fonts/ubuntu-v20-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ubuntu-700 - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Ubuntu';
font-style: normal;
font-weight: 700;
src: url('../google_fonts/ubuntu-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ubuntu-700italic - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Ubuntu';
font-style: italic;
font-weight: 700;
src: url('../google_fonts/ubuntu-v20-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
Binary file added assets/google_fonts/ubuntu-v20-latin-300.woff2
Binary file not shown.
Binary file not shown.
Binary file added assets/google_fonts/ubuntu-v20-latin-500.woff2
Binary file not shown.
Binary file not shown.
Binary file added assets/google_fonts/ubuntu-v20-latin-700.woff2
Binary file not shown.
Binary file not shown.
Binary file added assets/google_fonts/ubuntu-v20-latin-italic.woff2
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit f127ca5

Please sign in to comment.