-
Notifications
You must be signed in to change notification settings - Fork 0
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 #66 from Vizzuality/client/about-page
Add about page
- Loading branch information
Showing
52 changed files
with
698 additions
and
738 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,5 @@ | ||
import Home from '@/containers/home'; | ||
|
||
export default function HomePage() { | ||
return <Home />; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
client/src/containers/home/filters/item.tsx → client/src/containers/globe/filters/item.tsx
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,74 @@ | ||
'use client'; | ||
|
||
import { useEffect } from 'react'; | ||
|
||
import { useSetAtom } from 'jotai'; | ||
|
||
import { layersAtom, tmpBboxAtom } from '@/store/map'; | ||
import { useSyncStep } from '@/store/stories'; | ||
|
||
import { DEFAULT_MAP_BBOX, DEFAULT_MAP_STATE } from '@/constants/map'; | ||
|
||
import Sidebar from '@/containers/globe/sidebar'; | ||
|
||
import Card from '@/components/ui/card'; | ||
import GradientLine from '@/components/ui/gradient-line'; | ||
|
||
import Header from '../header'; | ||
|
||
import Categories from './categories'; | ||
import Dashboard from './dashboard'; | ||
import { Filters } from './filters'; | ||
import TopStories from './top-stories'; | ||
|
||
export default function Home() { | ||
const setTmpBbox = useSetAtom(tmpBboxAtom); | ||
const setLayers = useSetAtom(layersAtom); | ||
const { removeStep } = useSyncStep(); | ||
|
||
useEffect(() => { | ||
const tmpbbox: [number, number, number, number] = DEFAULT_MAP_BBOX; | ||
setTmpBbox({ bbox: tmpbbox, options: DEFAULT_MAP_STATE }); | ||
}, [setTmpBbox]); | ||
|
||
useEffect(() => { | ||
setLayers([]); | ||
removeStep(); | ||
}, []); | ||
|
||
return ( | ||
<div className="home text-primary flex h-screen w-screen flex-col justify-between overflow-y-hidden px-12"> | ||
<Header /> | ||
<Filters /> | ||
<div className="flex max-h-full flex-1 justify-between overflow-hidden pb-6 pt-12"> | ||
<Sidebar> | ||
<div className="2xl:w-70 w-[280px]"> | ||
<Dashboard /> | ||
</div> | ||
</Sidebar> | ||
<div className="2xl:w-70 flex h-full w-[280px] flex-col"> | ||
<div className="flex max-h-[calc(100%-110px)] flex-col justify-between"> | ||
<Card title="Top stories" className="max-h-[calc(100%-33px)]"> | ||
<TopStories /> | ||
</Card> | ||
<GradientLine /> | ||
</div> | ||
<div className="h-fit"> | ||
<Card title="Programme Dashboard"> | ||
<a | ||
target="_blank" | ||
className="font-open-sans text-sm leading-snug" | ||
href="https://lookerstudio.google.com/reporting/b6d8f54c-558e-48dc-bc79-a7eca193da6f/page/p_2ehvdzg47c" | ||
> | ||
Detailed report dashboard on ESA GDA programme. | ||
</a> | ||
</Card> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="z-10"> | ||
<Categories /> | ||
</div> | ||
</div> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,61 @@ | ||
import Image from 'next/image'; | ||
|
||
import { Dialog, DialogContentHome, DialogTrigger } from '@/components/ui/dialog'; | ||
|
||
const About = () => { | ||
return ( | ||
<Dialog> | ||
<DialogTrigger className="text-sm font-bold uppercase tracking-widest">About</DialogTrigger> | ||
<DialogContentHome> | ||
<div className="space-y-4 p-10"> | ||
<div className="font-notes items-start justify-start text-2xl font-bold leading-9 text-white"> | ||
About the Impact Sphere | ||
</div> | ||
<div className="font-open-sans self-stretch text-base font-normal leading-normal text-white"> | ||
Lorem ipsum dolor sit amet consectetur. Commodo nulla interdum felis semper augue | ||
adipiscing. Massa elementum id venenatis viverra. Non lectus aliquam turpis at. Gravida | ||
enim suscipit aliquet erat imperdiet luctus gravida pellentesque. Diam urna amet | ||
habitasse sed eget semper pellentesque malesuada. Turpis. | ||
</div> | ||
<div className="inline-flex items-start justify-center gap-2 self-stretch"> | ||
<div className="inline-flex w-[418px] flex-col items-start justify-start gap-1"> | ||
<div className="inline-flex items-center justify-start gap-1"> | ||
<div className="font-notes text-sm font-bold uppercase leading-[21px] tracking-wide text-slate-400"> | ||
contatcs | ||
</div> | ||
</div> | ||
<div> | ||
<a | ||
className="font-open-sans self-stretch text-base font-normal leading-normal text-white underline" | ||
href="mailto:[email protected]" | ||
> | ||
[email protected] | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="flex items-center justify-end space-x-3"> | ||
<a href="https://gda.esa.int/" target="_blank" rel="noreferrer"> | ||
<Image | ||
src={`${process.env.NEXT_PUBLIC_BASE_PATH}/images/logos/GDA-logo.png`} | ||
alt="Impact Sphere" | ||
width={50} | ||
height={50} | ||
/> | ||
</a> | ||
<a href="https://www.esa.int/" target="_blank" rel="noreferrer"> | ||
<Image | ||
src={`${process.env.NEXT_PUBLIC_BASE_PATH}/images/logos/esa-logo.png`} | ||
alt="Impact Sphere" | ||
width={69} | ||
height={32} | ||
/> | ||
</a> | ||
</div> | ||
</div> | ||
</DialogContentHome> | ||
</Dialog> | ||
); | ||
}; | ||
|
||
export default About; |
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 @@ | ||
'use client'; | ||
import Link from 'next/link'; | ||
import { usePathname } from 'next/navigation'; | ||
|
||
const HeaderLink = () => { | ||
const pathname = usePathname(); | ||
|
||
const link = pathname.includes('/landing') | ||
? { name: 'About', href: '/about' } | ||
: { name: 'About', href: '/about' }; | ||
|
||
return ( | ||
<Link href={link.href} className="text-sm font-bold uppercase tracking-widest"> | ||
{link.name} | ||
</Link> | ||
); | ||
}; | ||
|
||
export default HeaderLink; |
Oops, something went wrong.