-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Implement auto-refresh code #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
bae46ce
d643cd4
a93d285
0ad0a3e
350470c
73a8771
0df4ba6
4646123
1d2ec21
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,123 @@ | ||
| /* Custom Styling for NetViz on top of Pico CSS v2 */ | ||
|
|
||
| :root { | ||
| --pico-font-family: "Inter", system-ui, -apple-system, sans-serif; | ||
| --pico-primary: #3b82f6; | ||
| --pico-primary-background: #3b82f6; | ||
| --pico-primary-hover: #2563eb; | ||
| --pico-primary-underline: rgba(59, 130, 246, 0.5); | ||
|
|
||
| --pico-border-radius: 0.5rem; | ||
| --pico-form-element-spacing-vertical: 0.75rem; | ||
| --pico-form-element-spacing-horizontal: 1rem; | ||
| } | ||
|
|
||
| /* Typography */ | ||
| @import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"); | ||
|
Comment on lines
+3
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move CSS 🔧 Proposed fix /* Custom Styling for NetViz on top of Pico CSS v2 */
+/* Typography */
+@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
+
:root {
--pico-font-family: "Inter", system-ui, -apple-system, sans-serif;
--pico-primary: `#3b82f6`;
--pico-primary-background: `#3b82f6`;
--pico-primary-hover: `#2563eb`;
--pico-primary-underline: rgba(59, 130, 246, 0.5);
--pico-border-radius: 0.5rem;
--pico-form-element-spacing-vertical: 0.75rem;
--pico-form-element-spacing-horizontal: 1rem;
}
-/* Typography */
-@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
-
body {🧰 Tools🪛 Biome (2.1.2)[error] 16-16: This Any (lint/correctness/noInvalidPositionAtImportRule) 🤖 Prompt for AI Agents |
||
|
|
||
| body { | ||
| font-weight: 400; | ||
| } | ||
|
|
||
| h1, | ||
| h2, | ||
| h3, | ||
| h4, | ||
| h5, | ||
| h6 { | ||
| font-weight: 600; | ||
| margin-bottom: 1rem; | ||
| } | ||
|
|
||
| /* Component Overrides & Custom Utilities */ | ||
|
|
||
| .card { | ||
| padding: var(--pico-block-spacing-vertical) | ||
| var(--pico-block-spacing-horizontal); | ||
| border-radius: var(--pico-border-radius); | ||
| background: var(--pico-card-background-color); | ||
| box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), | ||
| 0 2px 4px -1px rgba(0, 0, 0, 0.06); | ||
| margin-bottom: var(--pico-block-spacing-vertical); | ||
| border: 1px solid var(--pico-muted-border-color); | ||
| } | ||
|
|
||
| .stat-card { | ||
| text-align: center; | ||
| } | ||
|
|
||
| .stat-value { | ||
| font-size: 2.5rem; | ||
| font-weight: 700; | ||
| color: var(--pico-primary); | ||
| margin-bottom: 0.5rem; | ||
| } | ||
|
|
||
| .stat-label { | ||
| font-size: 0.875rem; | ||
| color: var(--pico-muted-color); | ||
| text-transform: uppercase; | ||
| letter-spacing: 0.05em; | ||
| } | ||
|
|
||
| /* Charts */ | ||
| .chart-container { | ||
| position: relative; | ||
| height: 400px; | ||
| width: 100%; | ||
| } | ||
|
|
||
| /* Grid adjustments */ | ||
| .grid-stats { | ||
| display: grid; | ||
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | ||
| gap: var(--pico-grid-column-gap); | ||
| margin-bottom: var(--pico-block-spacing-vertical); | ||
| } | ||
|
|
||
| /* Navbar */ | ||
| nav strong { | ||
| font-size: 1.25rem; | ||
| background: -webkit-linear-gradient(45deg, var(--pico-primary), #8b5cf6); | ||
| background: linear-gradient(45deg, var(--pico-primary), #8b5cf6); | ||
| -webkit-background-clip: text; | ||
| background-clip: text; | ||
| -webkit-text-fill-color: transparent; | ||
| } | ||
|
|
||
| /* Badge styled pills */ | ||
| .badge { | ||
| display: inline-block; | ||
| padding: 0.25em 0.5em; | ||
| font-size: 0.75em; | ||
| font-weight: 600; | ||
| line-height: 1; | ||
| text-align: center; | ||
| white-space: nowrap; | ||
| vertical-align: baseline; | ||
| border-radius: var(--pico-border-radius); | ||
| background-color: var(--pico-primary); | ||
| color: white; | ||
| margin-right: 0.25rem; | ||
| } | ||
|
|
||
| .badge-secondary { | ||
| background-color: var(--pico-secondary-background); | ||
| color: var(--pico-color); | ||
| } | ||
|
|
||
| /* Animations */ | ||
| @keyframes fadeIn { | ||
| from { | ||
| opacity: 0; | ||
| transform: translateY(10px); | ||
| } | ||
| to { | ||
| opacity: 1; | ||
| transform: translateY(0); | ||
| } | ||
| } | ||
|
|
||
| main > * { | ||
| animation: fadeIn 0.4s ease-out; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: crazyuploader/NetViz
Length of output: 81
Update polars to a current version.
Polars 0.45 is outdated. The latest stable version is 0.52.0. Update to a recent version to ensure access to latest features, improvements, and security patches.
🤖 Prompt for AI Agents