diff --git a/app/page.tsx b/app/page.tsx
index 8584c51..cdccf4a 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -1,6 +1,7 @@
'use client';
import { CSSProperties, useEffect, useState } from 'react';
+import AllProjectsModal from '@/components/AllProjectsModal';
import Map from '@/components/Map';
import queryProjects from '../api/supabase/queries/query';
import { Project } from '../types/schema';
@@ -21,6 +22,7 @@ export default function Home() {
{error ? {error}
: null}
{projects ? : null}
+
);
}
diff --git a/components/AllProjectsModal/index.tsx b/components/AllProjectsModal/index.tsx
new file mode 100644
index 0000000..648eb18
--- /dev/null
+++ b/components/AllProjectsModal/index.tsx
@@ -0,0 +1,23 @@
+'use client';
+
+import React from 'react';
+import Modal from 'react-modal';
+import {
+ modalContentStyles,
+ modalOverlayStyles,
+ ProjectDetails,
+} from './styles';
+
+export default function AllProjectsModal() {
+ return (
+
+ hi
+
+ );
+}
diff --git a/components/AllProjectsModal/styles.ts b/components/AllProjectsModal/styles.ts
new file mode 100644
index 0000000..dcd1e41
--- /dev/null
+++ b/components/AllProjectsModal/styles.ts
@@ -0,0 +1,40 @@
+import { CSSProperties } from 'react';
+import styled from 'styled-components';
+import COLORS from '@/styles/colors';
+
+export const modalOverlayStyles: CSSProperties = {
+ width: '310px',
+ height: '100%',
+ backgroundColor: 'transparent',
+};
+
+export const modalContentStyles: CSSProperties = {
+ display: 'flex',
+ top: '85px',
+ left: '20px',
+ width: '90vw',
+ maxWidth: '356px',
+ height: '85vh',
+ borderRadius: 'var(--Spacing-Small, 16px)',
+ border: '0.75px solid var(--WorldPeas-White, #fff)',
+ background:
+ 'linear-gradient(180deg, rgba(250, 250, 250, 0.32) 0%, rgba(238, 238, 238, 0.65) 100%)',
+ backdropFilter: 'blur(7.5px)',
+ paddingTop: '0.625rem',
+ paddingBottom: '0.625rem',
+ boxSizing: 'border-box',
+ flexDirection: 'column',
+ alignItems: 'center',
+ overflow: 'hidden',
+};
+
+export const ProjectDetails = styled.div`
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ border-radius: var(--Spacing-Small, 16px);
+ height: 100%;
+ background: ${COLORS.white};
+ width: 340px;
+ overflow-y: auto;
+`;
diff --git a/components/ProjectModal/index.tsx b/components/ProjectModal/index.tsx
index d1935f1..39d0d05 100644
--- a/components/ProjectModal/index.tsx
+++ b/components/ProjectModal/index.tsx
@@ -123,61 +123,59 @@ export default function ProjectModal({
: 'No image available';
return (
-
-
-
-
-
-
- Developer ‣ {developer}
-
-
-
-
-
- {project_name?.toUpperCase()}
-
-
-
- {project_status}
-
-
- {renewable_energy_technology}
-
-
-
-
-
-
- {size}
-
- MW
-
-
- {KDMs}
-
-
- DETAILS
-
-
-
- {additional_information}
-
-
-
-
-
+
+
+
+
+
+ Developer ‣ {developer}
+
+
+
+
+
+ {project_name?.toUpperCase()}
+
+
+
+ {project_status}
+
+
+ {renewable_energy_technology}
+
+
+
+
+
+
+ {size}
+
+ MW
+
+
+ {KDMs}
+
+
+ DETAILS
+
+
+
+ {additional_information}
+
+
+
+
);
}