-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* improved UX/UI for landing page * Address PR review feedback * detele unused video * replace unsupported characters * adjust layout responsiveness * fix unsupported character * fix responsiveness issues * add slide-in animation * update What is HIERR textbox and add About this engagement and Why create an account #128 #70 #126 * fix unsupported character * Fixing okinas in Hawaii * add consistant page styling and improve UX * Updating portal information Co-authored-by: Alexandra Haynes <[email protected]> * Updating cursor types on info links * temporarily commenting out sign in page to keep email sign in functionality * improve hover effect for info links * improve UX for map interaction * add cohesive styling across pages * polis survey page title margin * add progress bar on each step * Fixing local responsive issues * Removing sign in page to fix deployment * Removing background gradient for now * Updating progress bar to be 100% on the last step * Refactoring to use info popup component * Putting census map info in an info popup * Fixing okinas * Fixing info popup z-index * Moving what do we use this data for to the top * migrating progress bar to TypeScript * change checkbox's color for consistency --------- Co-authored-by: avenmia <[email protected]> Co-authored-by: Alexandra Haynes <[email protected]>
- Loading branch information
1 parent
f4c35c1
commit 960ca3f
Showing
23 changed files
with
590 additions
and
133 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from "react"; | ||
|
||
const AboutThisEngagementPortal = () => { | ||
return ( | ||
<> | ||
<h3 className="text-md p-4 pl-2 text-center font-semibold 2xl:text-xl"> | ||
About this Engagement Portal | ||
</h3> | ||
<p className="mb-2 mt-4 pb-4 2xl:text-lg"> | ||
This engagement portal is designed to help our project team understand:{" "} | ||
</p> | ||
|
||
<ol className="ml-4 mb-2 list-decimal pb-4 2xl:text-lg"> | ||
<li className="md:mb-2"> | ||
Demographic information of those who participate in the project. | ||
</li> | ||
<li className="md:mb-2"> | ||
What Hawaiʻi residents value and envision for our State's | ||
economic future. | ||
</li> | ||
<li className="md:mb-2"> | ||
Hardships faced by residents during the COVID-19 pandemic and economic | ||
shutdown. | ||
</li> | ||
</ol> | ||
</> | ||
); | ||
}; | ||
|
||
export default AboutThisEngagementPortal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from "react"; | ||
|
||
export default function CensusMapInfo() { | ||
return ( | ||
<> | ||
<h3 className="text-md pb-2 pl-2 text-center font-semibold 2xl:text-xl"> | ||
What do we use this information for? | ||
</h3> | ||
<p | ||
className="mx-auto mt-4 w-[90%] p-1 | ||
text-center text-sm md:m-4 2xl:text-lg" | ||
> | ||
We use this information to report on the diverse representation of | ||
people in our community. By collecting and analyzing demographic data, | ||
we aim to include perspectives from a wide range of individuals. This | ||
helps us ensure that our processes are inclusive and reflect the voices | ||
of our community as much as possible. | ||
</p> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import React, { useState } from "react"; | ||
import { BsChevronDown } from "react-icons/bs"; | ||
import { IoCloseSharp } from "react-icons/io5"; | ||
|
||
interface InfoPopupProps { | ||
title: string; | ||
PopupInfo: React.FC; | ||
} | ||
|
||
const InfoPopup = ({ title, PopupInfo }: InfoPopupProps) => { | ||
const [showMore, setShowMore] = useState(false); | ||
|
||
const toggleMoreInformation = () => { | ||
setShowMore(!showMore); | ||
}; | ||
return ( | ||
<> | ||
<div | ||
className="flex cursor-pointer flex-row items-center justify-center gap-2 | ||
hover:scale-[102%] | ||
" | ||
onClick={toggleMoreInformation} | ||
> | ||
<p | ||
className="text-md border-white py-1 text-white underline-offset-4 | ||
hover:text-yellowGreen 2xl:text-xl" | ||
> | ||
{title} | ||
</p> | ||
{!showMore && ( | ||
<div className="text-lg text-white"> | ||
<BsChevronDown /> | ||
</div> | ||
)} | ||
</div> | ||
|
||
{showMore && ( | ||
<div | ||
className="md:bottom-22 lg:bottom-18 fixed bottom-2 z-[1500] w-[98%] | ||
animate-slide-in rounded-md | ||
bg-white/90 p-1 text-sm | ||
shadow-xl | ||
backdrop-blur-md ease-in-out sm:bottom-8 | ||
sm:w-[94%] sm:p-2 | ||
md:p-8 lg:w-[84%] | ||
xl:bottom-12 xl:w-[80%] | ||
2xl:bottom-20 2xl:w-[60%]" | ||
> | ||
<button | ||
onClick={toggleMoreInformation} | ||
className="absolute top-4 right-4 text-2xl lg:text-4xl" | ||
> | ||
<IoCloseSharp /> | ||
</button> | ||
<PopupInfo /> | ||
</div> | ||
)} | ||
</> | ||
); | ||
}; | ||
|
||
export default InfoPopup; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from "react"; | ||
|
||
interface ProgressBarProps { | ||
completed: number; | ||
} | ||
|
||
const ProgressBar = ({ completed }: ProgressBarProps) => { | ||
const fillerStyles = { | ||
height: "100%", | ||
width: `${completed}%`, | ||
backgroundColor: "yellowGreen", | ||
borderRadius: "inherit", | ||
transition: "width 1s ease-in-out", | ||
}; | ||
|
||
return ( | ||
<div className="border-radius-10 m-2 h-2 w-[400px] bg-white opacity-70"> | ||
<div style={fillerStyles}></div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ProgressBar; |
Oops, something went wrong.
960ca3f
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.
Successfully deployed to the following URLs:
hierr – ./
hierr.vercel.app
hierr-codeforhawaii.vercel.app
hierr-git-main-codeforhawaii.vercel.app