chore: track sqlite database file and remove from gitignore
This commit is contained in:
1 parent
31f087b0ba
commit
26bd48a005
6 files changed
+27
-14
No files matched your search
+1
-1
@@ -41,7 +41,7 @@ yarn-error.log*
|
|||||||
next-env.d.ts
|
next-env.d.ts
|
||||||
|
|
||||||
# local databases & temporary files
|
# local databases & temporary files
|
||||||
backend/netify_data.db*
|
|
||||||
temp.json
|
temp.json
|
||||||
/scratch
|
/scratch
|
||||||
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
+4
-3
@@ -418,7 +418,7 @@ body::after {
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
transition: opacity 500ms ease-in-out;
|
transition: opacity 150ms ease-in-out;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-attachment: fixed;
|
background-attachment: fixed;
|
||||||
@@ -480,11 +480,12 @@ body::after {
|
|||||||
*::after {
|
*::after {
|
||||||
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, background-image;
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, background-image;
|
||||||
transition-timing-function: ease-in-out;
|
transition-timing-function: ease-in-out;
|
||||||
transition-duration: 500ms;
|
transition-duration: 150ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* View Transitions API (For perfect whole-screen crossfade including WebGL/Canvas) */
|
/* View Transitions API (For perfect whole-screen crossfade including WebGL/Canvas) */
|
||||||
::view-transition-old(root),
|
::view-transition-old(root),
|
||||||
::view-transition-new(root) {
|
::view-transition-new(root) {
|
||||||
animation-duration: 500ms;
|
animation-duration: 150ms;
|
||||||
animation-timing-function: ease-in-out;
|
animation-timing-function: ease-in-out;
|
||||||
}
|
}
|
||||||
@@ -173,7 +173,7 @@ export const GlobeMap = ({ data }: GlobeMapProps) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return points;
|
return points;
|
||||||
}, [arcsData]);
|
}, [arcsData, isLight]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
@@ -230,15 +230,27 @@ export const GlobeMap = ({ data }: GlobeMapProps) => {
|
|||||||
ringPropagationSpeed={3}
|
ringPropagationSpeed={3}
|
||||||
ringRepeatPeriod={1000}
|
ringRepeatPeriod={1000}
|
||||||
|
|
||||||
// Labels configuration
|
// HTML Labels configuration for better readability with text-shadow
|
||||||
labelsData={pointsData}
|
htmlElementsData={pointsData}
|
||||||
labelLat="lat"
|
htmlLat="lat"
|
||||||
labelLng="lng"
|
htmlLng="lng"
|
||||||
labelText="name"
|
htmlAltitude={0.03}
|
||||||
labelSize={1.2}
|
htmlElement={(d: any) => {
|
||||||
labelDotRadius={0.5}
|
const el = document.createElement('div');
|
||||||
labelColor={() => isLight ? '#0f172a' : 'rgba(255, 255, 255, 0.8)'}
|
el.innerHTML = d.name;
|
||||||
labelResolution={2}
|
el.style.color = isLight ? '#0f172a' : '#f8fafc';
|
||||||
|
el.style.fontSize = '12px';
|
||||||
|
el.style.fontWeight = '700';
|
||||||
|
el.style.fontFamily = 'Inter, sans-serif';
|
||||||
|
// Creates a thick outline effect so text doesn't blend into arcs/continents
|
||||||
|
el.style.textShadow = isLight
|
||||||
|
? '0 0 4px #ffffff, 0 0 6px #ffffff, 0 0 8px #ffffff'
|
||||||
|
: '0 0 4px #000000, 0 0 6px #000000, 0 0 8px #000000';
|
||||||
|
el.style.pointerEvents = 'none';
|
||||||
|
el.style.whiteSpace = 'nowrap';
|
||||||
|
el.style.transform = 'translate(-50%, -100%)'; // shift slightly up
|
||||||
|
return el;
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user