Add DM Sans font integration and enhance dashboard context
- Added DM Sans font to the project, including multiple weights and styles for improved typography. - Updated package.json and package-lock.json to include @fontsource/dm-sans dependency. - Enhanced dashboard context to include current cluster CPU state, integrating new data into the context and API responses. - Updated relevant templates and JavaScript to utilize the new current cluster data for better visualization and user experience.
This commit is contained in:
@@ -1,3 +1,61 @@
|
||||
/* DM Sans – local webfonts (no external requests) */
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 400;
|
||||
src: url('../fonts/dm-sans-latin-400-normal.woff2') format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 500;
|
||||
src: url('../fonts/dm-sans-latin-500-normal.woff2') format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 600;
|
||||
src: url('../fonts/dm-sans-latin-600-normal.woff2') format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 700;
|
||||
src: url('../fonts/dm-sans-latin-700-normal.woff2') format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
font-weight: 400;
|
||||
src: url('../fonts/dm-sans-latin-400-italic.woff2') format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
font-weight: 500;
|
||||
src: url('../fonts/dm-sans-latin-500-italic.woff2') format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
font-weight: 600;
|
||||
src: url('../fonts/dm-sans-latin-600-italic.woff2') format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
font-weight: 700;
|
||||
src: url('../fonts/dm-sans-latin-700-italic.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@import "tailwindcss";
|
||||
@plugin "daisyui";
|
||||
|
||||
|
||||
BIN
static/fonts/dm-sans-latin-400-italic.woff2
Normal file
BIN
static/fonts/dm-sans-latin-400-italic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/dm-sans-latin-400-normal.woff2
Normal file
BIN
static/fonts/dm-sans-latin-400-normal.woff2
Normal file
Binary file not shown.
BIN
static/fonts/dm-sans-latin-500-italic.woff2
Normal file
BIN
static/fonts/dm-sans-latin-500-italic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/dm-sans-latin-500-normal.woff2
Normal file
BIN
static/fonts/dm-sans-latin-500-normal.woff2
Normal file
Binary file not shown.
BIN
static/fonts/dm-sans-latin-600-italic.woff2
Normal file
BIN
static/fonts/dm-sans-latin-600-italic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/dm-sans-latin-600-normal.woff2
Normal file
BIN
static/fonts/dm-sans-latin-600-normal.woff2
Normal file
Binary file not shown.
BIN
static/fonts/dm-sans-latin-700-italic.woff2
Normal file
BIN
static/fonts/dm-sans-latin-700-italic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/dm-sans-latin-700-normal.woff2
Normal file
BIN
static/fonts/dm-sans-latin-700-normal.woff2
Normal file
Binary file not shown.
Reference in New Issue
Block a user