Skip to content

Commit

Permalink
build an initial framework for the report page
Browse files Browse the repository at this point in the history
  • Loading branch information
shree-venkatesh committed Nov 10, 2023
1 parent 909a2fc commit 46a2aa5
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 3 deletions.
3 changes: 2 additions & 1 deletion houston/src/pages/Control.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
margin-bottom: 20px;
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75) inset;
overflow: hidden;
user-select: none
}

.data {
Expand Down Expand Up @@ -85,7 +86,7 @@
background-color: var(--highlight);
border-top-left-radius: 3dvh;
border-bottom-left-radius: 3dvh;
user-select: none
user-select: none
}

.unit:last-child {
Expand Down
76 changes: 76 additions & 0 deletions houston/src/pages/Report.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
.report-page {
display: flex;
flex: 1;
flex-direction: row;
justify-content: center;
align-items: center;
border: 1px solid black;
padding: 50px;
overflow-y: hidden;
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75) inset;
}

.gallery-container {
display: flex;
flex: 50%;
height: 100%;
border-radius: 20px;
flex-direction: column;
}

.unmatched-gallery {
display: flex;
justify-content: center;
align-items: center;
flex: 65%;
height: 100%;
width: 100%;
background-color: aliceblue;
border-radius: 20px;
margin: 5px;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.75);
flex-wrap: wrap;
overflow-y: scroll;
}

::-webkit-scrollbar {
display: none;
}

.matched-gallery {
display: flex;
justify-content: center;
align-items: center;
flex: 35%;
width: 100%;
height: 100%;
background-color: cadetblue;
border-radius: 20px;
margin: 5px;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.75);
flex-wrap: wrap;
overflow-y: scroll;
}

.report-page-map {
display: flex;
flex: 50%;
width: 100%;
height: 100%;
border-radius: 20px;
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
margin: 50px;
margin-right: 0px;
}

.image {
display: flex;
flex: 1;
border-radius: 10px;
background-color: blueviolet;
margin: 5px;
min-width: 18dvh;
max-width: 18dvh;
min-height: 22dvh;
max-height: 22dvh;
}
59 changes: 57 additions & 2 deletions houston/src/pages/Report.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,62 @@
import React from "react"
import TuasMap from '../components/TuasMap.tsx'
import "./Report.css"

const Report: React.FC = () => {
return <h1>todo</h1>
/**
* @returns report page
*/
function Report() {
return (
<main className="report-page">
<div className="gallery-container">
<div className="unmatched-gallery">
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
</div>
<div className="matched-gallery">
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
<div className="image">
</div>
</div>
</div>
<TuasMap className={'report-page-map'} lat={1.3467} lng={103.9326}/>
</main>
)
}

export default Report;

0 comments on commit 46a2aa5

Please sign in to comment.