-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add footer component #30
Conversation
AdelineA
commented
Apr 18, 2024
- add footer component
src/components/footer/data-source.ts
Outdated
.filter((source) => source && !source.includes("Open Access")) | ||
.filter((source) => source) as string[]; | ||
|
||
export const uniqueDataSources = Array.from(new Set(dataSources)); |
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.
Can you change this name of this variable to name that give hint what it hold
src/components/footer/index.tsx
Outdated
<div | ||
key={index} | ||
className="flex gap-5 w-full justify-center items-center" | ||
> |
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.
Can you align the content to the right side as on the design
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.
LGTM
@@ -0,0 +1,9 @@ | |||
import output from "../../../public/data.json"; | |||
|
|||
const dataResources = output |
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.
these should be in the src/data
folder
src/data/footer/index.tsx
Outdated
import { getColorByAccess } from "../../utils/helpers"; | ||
import { filteredResources } from "./data-resources"; | ||
|
||
const Footer = () => { |
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.
Can you put this component inside components folder
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.
LGTM