-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from srikanth716/injiver-705-persist-page-reload
Injiver 705 persist page reload
- Loading branch information
Showing
9 changed files
with
132 additions
and
55 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,28 +1,23 @@ | ||
import React from 'react'; | ||
import VerificationProgressTracker from "../components/Home/VerificationProgressTracker"; | ||
import VerificationSection from "../components/Home/VerificationSection"; | ||
import React from "react"; | ||
import PageTemplate from "../components/PageTemplate"; | ||
import Header from "../components/Home/Header"; | ||
import VerificationSection from "../components/Home/VerificationSection"; | ||
import VerificationProgressTracker from "../components/Home/VerificationProgressTracker"; | ||
|
||
|
||
function Home() { | ||
|
||
function Home(props: any) { | ||
return ( | ||
<PageTemplate> | ||
<div> | ||
<div className="w-full bg-pageBackGroundColor text-center"> | ||
<Header/> | ||
</div> | ||
<div className="grid grid-cols-12"> | ||
<div | ||
className="col-start-1 col-end-13 lg:col-start-1 lg:col-span-6 lg:bg-pageBackGroundColor xs:w-[100vw] lg:max-w-[50vw]"> | ||
<VerificationProgressTracker/> | ||
</div> | ||
<div className="col-start-1 col-end-13 lg:col-start-7 lg:col-end-13 xs:[100vw] lg:max-w-[50vw]"> | ||
<VerificationSection/> | ||
</div> | ||
</div> | ||
</div> | ||
</PageTemplate> | ||
); | ||
return ( | ||
<PageTemplate> | ||
<div className="grid grid-cols-12"> | ||
<div className="col-start-1 col-end-13 lg:col-start-1 lg:col-span-6 lg:bg-pageBackGroundColor xs:w-[100vw] lg:max-w-[50vw]"> | ||
<VerificationProgressTracker /> | ||
</div> | ||
<div className="col-start-1 col-end-13 lg:col-start-7 lg:col-end-13 xs:[100vw] lg:max-w-[50vw]"> | ||
<VerificationSection /> | ||
</div> | ||
</div> | ||
</PageTemplate> | ||
); | ||
} | ||
|
||
export default Home; |
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,19 @@ | ||
import React from "react"; | ||
import PageTemplate from "../components/PageTemplate"; | ||
import VerificationSection from "../components/Home/VerificationSection"; | ||
import VerificationProgressTracker from "../components/Home/VerificationProgressTracker"; | ||
|
||
export const Scan = () => { | ||
return ( | ||
<PageTemplate> | ||
<div className="grid grid-cols-12"> | ||
<div className="col-start-1 col-end-13 lg:col-start-1 lg:col-span-6 lg:bg-pageBackGroundColor xs:w-[100vw] lg:max-w-[50vw]"> | ||
<VerificationProgressTracker /> | ||
</div> | ||
<div className="col-start-1 col-end-13 lg:col-start-7 lg:col-end-13 xs:[100vw] lg:max-w-[50vw]"> | ||
<VerificationSection /> | ||
</div> | ||
</div> | ||
</PageTemplate> | ||
); | ||
}; |
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,37 @@ | ||
import React from "react"; | ||
import { QrIcon } from "../utils/theme-utils"; | ||
import { UploadQrCode } from "../components/Home/VerificationSection/UploadQrCode"; | ||
import { ScanOutline } from "../utils/theme-utils"; | ||
import { useTranslation } from "react-i18next"; | ||
|
||
export const Upload = () => { | ||
const {t} = useTranslation('Upload') | ||
|
||
return ( | ||
<div className="flex flex-col pt-0 pb-[100px] lg:py-[42px] px-0 lg:px-[104px] text-center content-center justify-center"> | ||
<div className="xs:col-end-13"> | ||
<div | ||
className={`relative grid content-center justify-center w-[275px] h-auto lg:w-[360px] aspect-square my-1.5 mx-auto bg-cover`} | ||
style={{ backgroundImage: `url(${ScanOutline})` }} | ||
> | ||
<div className="grid bg-lighter-gradient rounded-[12px] w-[250px] lg:w-[320px] aspect-square content-center justify-center"></div> | ||
<div className="absolute top-[58px] left-[98px] lg:top-[165px] lg:left-[50%] lg:translate-x-[-50%] lg:translate-y-[-50%]"> | ||
<QrIcon className="w-[78px] lg:w-[100px]" /> | ||
</div> | ||
<UploadQrCode | ||
className="absolute top-[160px] left-[33px] w-[205px] lg:w-[223px] lg:left-[63px] lg:top-[231px]" | ||
displayMessage="Upload" | ||
/> | ||
</div> | ||
<div className="grid text-center content-center justify-center pt-2"> | ||
<p | ||
id="file-format-constraints" | ||
className="font-normal text-normalTextSize text-uploadDescription w-[280px]" | ||
> | ||
{t('format')} | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
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