Skip to content

Commit

Permalink
Merge pull request #79 from Vizzuality/staging
Browse files Browse the repository at this point in the history
deployment to main
  • Loading branch information
anamontiaga authored Nov 27, 2023
2 parents 30ff467 + fe5bb65 commit 7dddfb7
Show file tree
Hide file tree
Showing 257 changed files with 3,481 additions and 3,815 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/test.yml

This file was deleted.

14 changes: 14 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"style": "default",
"rsc": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "app/globals.css",
"baseColor": "slate",
"cssVariables": true
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
1 change: 0 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const nextConfig = {

return config;
},

// ? https://nextjs.org/docs/advanced-features/compiler#why-swc
swcMinify: false,
// ? https://nextjs.org/docs/advanced-features/output-file-tracing#automatically-copying-traced-files
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
"@deck.gl/mapbox": "8.7.8",
"@deck.gl/mesh-layers": "8.7.8",
"@floating-ui/react-dom-interactions": "0.10.1",
"@headlessui/react": "1.7.17",
"@luma.gl/constants": "8.4.5",
"@popperjs/core": "2.9.2",
"@radix-ui/react-accordion": "^1.1.2",
"@react-aria/overlays": "3.10.0",
"@react-three/drei": "9.32.3",
"@react-three/fiber": "8.8.6",
Expand All @@ -45,6 +47,7 @@
"autoprefixer": "10.4.7",
"axios": "0.21.1",
"classnames": "2.3.1",
"clsx": "2.0.0",
"downshift": "6.1.3",
"final-form": "4.20.2",
"framer-motion": "7.4.0",
Expand All @@ -63,10 +66,12 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-final-form": "6.5.3",
"react-icons": "4.11.0",
"react-map-gl": "7.0.17",
"react-player": "2.11.0",
"react-popper": "2.2.5",
"react-use-cookie": "1.4.0",
"tailwind-merge": "1.14.0",
"tailwindcss": "3.1.7",
"three": "0.144.0",
"use-breakpoint": "^3.0.3",
Expand Down
Binary file added public/images/about/01.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/about/02.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/home/01.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 0 additions & 29 deletions public/images/home/about/background.svg

This file was deleted.

38 changes: 38 additions & 0 deletions public/images/home/background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/home/img-1.jpeg
Binary file not shown.
Binary file removed public/images/home/img-2.jpeg
Binary file not shown.
Binary file removed public/images/home/img-3.jpeg
Binary file not shown.
Binary file removed public/images/home/img-4.jpeg
Binary file not shown.
Binary file added public/images/home/mockup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
Binary file added public/images/involved/01.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/involved/mock-app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/logos/clarke_university.png
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.
Binary file added public/images/logos/cornell_university.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/logos/eth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/logos/nature_4_climate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/logos/nature_conservancy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/logos/sei.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/logos/slu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/logos/vizzuality.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/logos/woodwell_climate_research.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/logos/world_resources_institute.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/logos/wwf.png
File renamed without changes
Binary file added public/images/news/stories/panama-01.jpg
File renamed without changes
Binary file added public/images/news/stories/peru-ghana.jpg
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added public/images/science/01.jpg
Binary file added public/images/science/02.jpg
Binary file added public/images/science/03.jpg
2 changes: 1 addition & 1 deletion src/components/button/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const THEME = {
secondary:
'text-white bg-transparent border border-white whitespace-nowrap hover:bg-brand-800 hover:border-brand-800 transition ease-in-out delay-150 duration-300',
tertiary:
'text-black bg-transparent border border-black hover:text-white whitespace-nowrap hover:bg-brand-800 hover:border-brand-800 transition ease-in-out delay-150 duration-300',
'text-gray-900 bg-transparent border border-gray-900 hover:text-white whitespace-nowrap hover:bg-brand-800 hover:border-brand-800 transition ease-in-out delay-150 duration-300',
};

export const SIZE = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/select/toggle/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import THEME from 'components/forms/select/constants/theme';
import { SelectToggleProps } from 'components/forms/select/types';
import Icon from 'components/icon';

import ARROW_DOWN_SVG from 'svgs/ui/arrow-down.svg?sprite';
import ARROW_DOWN_SVG from 'svgs/ui/arrow-right.svg?sprite';

export const SelectToggle: FC<SelectToggleProps> = ({
options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import cx from 'classnames';

import Icon from 'components/icon';

import ARROW_RIGHT_SVG from 'svgs/arrow-right.svg?sprite';
import ARROW_RIGHT_SVG from 'svgs/ui/arrow-right.svg?sprite';

import type { LinkArrowProps } from './types';

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/modal/content/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { motion } from 'framer-motion';

import Icon from 'components/icon';

import CLOSE_SVG from 'svgs/close.svg?sprite';
import CLOSE_SVG from 'svgs/ui/close.svg?sprite';

import { CONTENT_CLASSES } from './constants';
import type { ModalContentProps } from './types';
Expand Down
8 changes: 4 additions & 4 deletions src/components/toast/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import SUCCESS_SVG from 'svgs/checkmark.svg?sprite';
import ERROR_SVG from 'svgs/checkmark.svg?sprite';
import INFO_SVG from 'svgs/checkmark.svg?sprite';
import WARNING_SVG from 'svgs/checkmark.svg?sprite';
import SUCCESS_SVG from 'svgs/ui/checkmark.svg?sprite';
import ERROR_SVG from 'svgs/ui/checkmark.svg?sprite';
import INFO_SVG from 'svgs/ui/checkmark.svg?sprite';
import WARNING_SVG from 'svgs/ui/checkmark.svg?sprite';

import type { ToastTheme } from './types';

Expand Down
97 changes: 97 additions & 0 deletions src/components/ui/accordion.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
'use client';

import * as React from 'react';

import * as AccordionPrimitive from '@radix-ui/react-accordion';
import { motion } from 'framer-motion';
import { HiMinusSmall, HiPlusSmall } from 'react-icons/hi2';
import { MdOutlineKeyboardArrowDown, MdOutlineKeyboardArrowUp } from 'react-icons/md';

import { IN_VIEW_PROPS } from 'constants/motion';
import { cn } from 'utils/cn';

const Accordion = AccordionPrimitive.Root;

const AccordionItem = React.forwardRef<
React.ElementRef<typeof AccordionPrimitive.Item>,
React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>
>(({ className, ...props }, ref) => (
<AccordionPrimitive.Item
ref={ref}
className={cn('border-none text-gray-800', className)}
{...props}
/>
));
AccordionItem.displayName = 'AccordionItem';

const AccordionTrigger = React.forwardRef<
React.ElementRef<typeof AccordionPrimitive.Trigger>,
React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>
>(({ className, children, ...props }, ref) => {
const [open, setOpen] = React.useState(false);

return (
<motion.div {...IN_VIEW_PROPS}>
<AccordionPrimitive.Header
className={cn({
flex: true,
'[&[data-state=open]>button]:bg-cream-700': className.includes('plus-minus'),
'[&[data-state=open]>button]:bg-cream-400': className.includes('default'),
})}
>
<AccordionPrimitive.Trigger
onClick={() => setOpen(!open)}
ref={ref}
className={cn(
'bg-cream-400 text-base md:text-lg rounded-lg flex flex-1 items-center justify-between p-6 text-left md:font-semibold transition-all [&[data-state=open]>svg]:rotate-180',
className
)}
{...props}
>
<div className="w-2/3 md:w-5/6">{children}</div>

{className.includes('plus-minus') && (
<>
{open && <HiMinusSmall size={24} className="fill-gray-800 h-7 w-7 shrink-0" />}
{!open && <HiPlusSmall size={24} className="fill-gray-800 h-7 w-7 shrink-0" />}
</>
)}

{className.includes('default') && (
<>
{open && (
<MdOutlineKeyboardArrowDown size={20} className="fill-gray-80 h-7 w-7 shrink-0" />
)}
{!open && (
<MdOutlineKeyboardArrowUp
size={20}
className="fill-gray-800 h-7 w-7 shrink-0 rotate-180"
/>
)}
</>
)}
</AccordionPrimitive.Trigger>
</AccordionPrimitive.Header>
</motion.div>
);
});
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;

const AccordionContent = React.forwardRef<
React.ElementRef<typeof AccordionPrimitive.Content>,
React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>
>(({ className, children, ...props }, ref) => (
<AccordionPrimitive.Content
ref={ref}
className={cn(
'-mt-2 overflow-hidden rounded-b-lg bg-cream-700 text-base p-6 transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down',
className
)}
{...props}
>
<div className="pb-4 pt-0 font-sans">{children}</div>
</AccordionPrimitive.Content>
));
AccordionContent.displayName = AccordionPrimitive.Content.displayName;

export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
Loading

1 comment on commit 7dddfb7

@vercel
Copy link

@vercel vercel bot commented on 7dddfb7 Nov 27, 2023

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:

ncs-go – ./

ncs-go.vercel.app
ncs-go-git-main-vizzuality1.vercel.app
ncs-go-vizzuality1.vercel.app

Please sign in to comment.