-
Notifications
You must be signed in to change notification settings - Fork 10
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
Layers page #31
Layers page #31
Conversation
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.
@Yukino2002 Can you review this PR?
@maithili232 Can you put up screenshots of what this looks like?
@@ -227,3 +228,49 @@ footer { | |||
@apply pb-4; | |||
} | |||
} | |||
|
|||
/* layers page */ |
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.
If you are using the exact same styling, you can just reuse the classes. No need to redeclare with a different class name.
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.
done.
@@ -0,0 +1,53 @@ | |||
import Image from "next/image"; |
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.
This component is also exactly the same as Models/FilterButton.jsx
. Please reuse the component, maybe move it to a directory named Common
and use it in both models and layers page.
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.
done.
const Layers = () => { | ||
|
||
const [filteredLayers, setFilteredLayers] = useState(layers); | ||
const [models, setModels] = useState([]); |
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.
I am not sure what models exactly are in the layers page, is the naming intended?
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.
Models that use the layers so layers can be filtered with their respective models.
Please add the layers page as a card in the landing page or button in the navigation bar, so that it is accessible to users. |
@maithili232 Added a few comments, will check on local once the comments have been addressed. |
@@ -0,0 +1,59 @@ | |||
import Image from "next/image"; | |||
import Link from "next/link"; |
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.
This component is also very similar. I think some part has been omitted out, but I think can be reused.
|
Added layers page to the website. Followed the same pattern of model page.