Skip to content

Commit

Permalink
235 bug blinking satellites (#238)
Browse files Browse the repository at this point in the history
* readd dependency array, lint and prettier

* fix width and height responsiveness

* fixed example data to not get ip banned

* fixed example data

* fix responsiveness

* fix styling of newGlobe

* lint and prettier

* remove deleted import
  • Loading branch information
Lukas Thrane authored and GitHub committed Apr 8, 2024
1 parent 2e6b256 commit fb97ce4
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 702 deletions.
6 changes: 3 additions & 3 deletions frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export default async function Home() {

return (
<>
<div className="flex flex-wrap bg-gray-600 p-0.5 md:flex-nowrap">
<div className="flex flex-col bg-gray-600 p-0.5 md:flex-row">
{/* Stats Container */}
<div className="flex w-full flex-col md:w-1/3">
<div className="flex w-full min-w-[320px] flex-col md:w-1/3">
<div className="bg-black p-5">
<SatelliteSelector />
</div>
Expand All @@ -29,7 +29,7 @@ export default async function Home() {

{/* Globe Container */}
<div className="ml-0.5 w-full md:w-2/3">
<div className="h-full bg-black md:flex md:items-center md:justify-center">
<div className="flex h-full items-center justify-center bg-black">
<SatelliteGlobe />
</div>
</div>
Expand Down
5 changes: 0 additions & 5 deletions frontend/src/app/satellites/[satelliteSlug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export const runtime = "edge";
import BlockRendererClient from "@/components/BlockRendererClient";
import SatelliteFetcher from "@/components/map/SatelliteFetcher";
import fetchSatelliteInfo from "@/lib/data/fetchSatelliteInfo";
import { BlocksContent } from "@strapi/blocks-react-renderer";
import RelatedProjectsAndSatellites from "@/components/RelatedProjectsAndSatellites";
Expand Down Expand Up @@ -31,10 +30,6 @@ export default async function SatelliteInfoPage({

return (
<div className="flex flex-col items-center">
<SatelliteFetcher
useExampleData={true}
filterList={[satelliteInfo.name]}
/>
<h1 className="mt-4 text-2xl font-bold">
{satelliteInfo.name}
</h1>
Expand Down
51 changes: 0 additions & 51 deletions frontend/src/components/map/MyCustomMap.tsx

This file was deleted.

148 changes: 0 additions & 148 deletions frontend/src/components/map/MyGlobe.tsx

This file was deleted.

98 changes: 0 additions & 98 deletions frontend/src/components/map/SatelliteFetcher.tsx

This file was deleted.

Loading

0 comments on commit fb97ce4

Please sign in to comment.