-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add sidebar section #247
Add sidebar section #247
Conversation
…to ui-improvements
b50082a
to
c462df6
Compare
|
Thanks! It'll be better if the logo header is not stick but will disappear/reveal when scroll page up, as show in the example of this post The result looks like the example in the end of this article https://webdesign.tutsplus.com/how-to-hide-reveal-a-sticky-header-on-scroll-with-javascript--cms-33756t |
b8fd8ea
to
a1cdc59
Compare
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.
Had some questions, I have to admit I am very ignorant on css and jsx 😅
You even move elements to components, wonderful!
aiida-registry-app/src/App.jsx
Outdated
* It renders the Details component on the left side and the Sidebar component on the right side. | ||
* | ||
* @component | ||
* @example |
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.
What is this @example
?
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.
it is used to show how the component should be rendered, it is good for complex components with parameters. but it doesn't add much for simple components like <DetailsContainer />
so I'll delete it.
This is normal, I feel this all the time while working on tasks related to css and design🤣 |
can you check the preview page? it works now. |
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.
Looks all good to me. Let's wait all tests pass and we can merge. There is a small issue, but not related to this PR you can see if it easy to fix but just nitpick you can ignore it.
<h1 className='plugin-header'> | ||
AiiDA plugin package "<a href={value.code_home}>{value.name}</a>" | ||
</h1> | ||
<Link to={'/'}><p>< back to the registry index</p></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.
I notice that when the mouse hover not on the text but on the same line the hyperlink is still activated, this may cause coincidently trigger to go back to the /
. I guess this is the code related.
(You can check by moving the mouse not on the "back to the registry index" but on the same horizontal line.)
Thanks @unkcpz this is fixed now! let's wait another 40 minutes😄 |
Cheers! 🚀 |
This addresses #246 and introduces a sidebar with plugin content outlines. To implement the sidebar, several considerations were taken into account: * Keep the sidebar isolated from the header and footer * Disable the sidebar for small screens (mobile phones) * Make it in a fixed position, and allow for scrolling. We used Materials UI `Drawer` component, it handles most of the above with less code. Things are done in `App.jsx` and modulized to the have components in `components` folder. The project folder structure ``` - public - src -- assets -- Components ---MainIndex.jsx ---Details.jsx ---Sidebar.jsx --App.jsx --main.jsx -index.html ```
This addresses #246 and introduces a sidebar with plugin content outlines. To implement the sidebar, several considerations were taken into account: * Keep the sidebar isolated from the header and footer * Disable the sidebar for small screens (mobile phones) * Make it in a fixed position, and allow for scrolling. We used Materials UI `Drawer` component, it handles most of the above with less code. Things are done in `App.jsx` and modulized to the have components in `components` folder. The project folder structure ``` - public - src -- assets -- Components ---MainIndex.jsx ---Details.jsx ---Sidebar.jsx --App.jsx --main.jsx -index.html ```
This addresses #246 and introduces a sidebar with plugin content outlines. To implement the sidebar, several considerations were taken into account: * Keep the sidebar isolated from the header and footer * Disable the sidebar for small screens (mobile phones) * Make it in a fixed position, and allow for scrolling. We used Materials UI `Drawer` component, it handles most of the above with less code. Things are done in `App.jsx` and modulized to the have components in `components` folder. The project folder structure ``` - public - src -- assets -- Components ---MainIndex.jsx ---Details.jsx ---Sidebar.jsx --App.jsx --main.jsx -index.html ```
This addresses #246 and introduces a sidebar with plugin content outlines. To implement the sidebar, several considerations were taken into account: * Keep the sidebar isolated from the header and footer * Disable the sidebar for small screens (mobile phones) * Make it in a fixed position, and allow for scrolling. We used Materials UI `Drawer` component, it handles most of the above with less code. Things are done in `App.jsx` and modulized to the have components in `components` folder. The project folder structure ``` - public - src -- assets -- Components ---MainIndex.jsx ---Details.jsx ---Sidebar.jsx --App.jsx --main.jsx -index.html ```
This addresses #246 and introduces a sidebar with plugin content outlines. To implement the sidebar, several considerations were taken into account: * Keep the sidebar isolated from the header and footer * Disable the sidebar for small screens (mobile phones) * Make it in a fixed position, and allow for scrolling. We used Materials UI `Drawer` component, it handles most of the above with less code. Things are done in `App.jsx` and modulized to the have components in `components` folder. The project folder structure ``` - public - src -- assets -- Components ---MainIndex.jsx ---Details.jsx ---Sidebar.jsx --App.jsx --main.jsx -index.html ```
This addresses #246 and introduces a sidebar with plugin content outlines. To implement the sidebar, several considerations were taken into account: * Keep the sidebar isolated from the header and footer * Disable the sidebar for small screens (mobile phones) * Make it in a fixed position, and allow for scrolling. We used Materials UI `Drawer` component, it handles most of the above with less code. Things are done in `App.jsx` and modulized to the have components in `components` folder. The project folder structure ``` - public - src -- assets -- Components ---MainIndex.jsx ---Details.jsx ---Sidebar.jsx --App.jsx --main.jsx -index.html ```
This addresses #246 and introduces a sidebar with plugin content outlines. To implement the sidebar, several considerations were taken into account: * Keep the sidebar isolated from the header and footer * Disable the sidebar for small screens (mobile phones) * Make it in a fixed position, and allow for scrolling. We used Materials UI `Drawer` component, it handles most of the above with less code. Things are done in `App.jsx` and modulized to the have components in `components` folder. The project folder structure ``` - public - src -- assets -- Components ---MainIndex.jsx ---Details.jsx ---Sidebar.jsx --App.jsx --main.jsx -index.html ```
This addresses #246 and introduces a sidebar with plugin content outlines. To implement the sidebar, several considerations were taken into account: * Keep the sidebar isolated from the header and footer * Disable the sidebar for small screens (mobile phones) * Make it in a fixed position, and allow for scrolling. We used Materials UI `Drawer` component, it handles most of the above with less code. Things are done in `App.jsx` and modulized to the have components in `components` folder. The project folder structure ``` - public - src -- assets -- Components ---MainIndex.jsx ---Details.jsx ---Sidebar.jsx --App.jsx --main.jsx -index.html ```
This addresses #246 and introduces a sidebar with plugin content outlines. To implement the sidebar, several considerations were taken into account: * Keep the sidebar isolated from the header and footer * Disable the sidebar for small screens (mobile phones) * Make it in a fixed position, and allow for scrolling. We used Materials UI `Drawer` component, it handles most of the above with less code. Things are done in `App.jsx` and modulized to the have components in `components` folder. The project folder structure ``` - public - src -- assets -- Components ---MainIndex.jsx ---Details.jsx ---Sidebar.jsx --App.jsx --main.jsx -index.html ```
author AhmedBasem <demhamesab@gmail.com> 1687946371 +0300 committer Jusong Yu <jusong.yeu@gmail.com> 1692310651 +0200 Add PR preview action Initialize React app. Created the components and routes of the app. Updated The webpage.yml with the deploy script. Commit the plugins JSON file into git so that the React app can read the data from it. Reused the current stylesheet and svg images feat: sort plugins by commit count (aiidateam#241) Use github API to get the commits endpoint. To get the number of commits in the last year we specify the period in the params of the request and then extract the number of pages from the response header. For plugins not hosted on github, we clone the repository and use git directly. fix layout deploy only when merged to master Fix PR preview path issue update Display Entry points information & Add Sort feature (aiidateam#245) This commit introduces a new ranking of the yearly commits for sorting the plugins. It also includes the implementation of showing the plugin descriptions to the plugin detail page. Change checkbox icon (aiidateam#248) Using `CheckCircleIcon` from `@mui/icons-material/CheckCircle` Add sidebar section (aiidateam#247) This addresses aiidateam#246 and introduces a sidebar with plugin content outlines. To implement the sidebar, several considerations were taken into account: * Keep the sidebar isolated from the header and footer * Disable the sidebar for small screens (mobile phones) * Make it in a fixed position, and allow for scrolling. We used Materials UI `Drawer` component, it handles most of the above with less code. Things are done in `App.jsx` and modulized to the have components in `components` folder. The project folder structure ``` - public - src -- assets -- Components ---MainIndex.jsx ---Details.jsx ---Sidebar.jsx --App.jsx --main.jsx -index.html ``` Fix the website design on small screens (aiidateam#253)
This addresses #246 and introduces a sidebar with plugin content outlines. To implement the sidebar, several considerations were taken into account: * Keep the sidebar isolated from the header and footer * Disable the sidebar for small screens (mobile phones) * Make it in a fixed position, and allow for scrolling. We used Materials UI `Drawer` component, it handles most of the above with less code. Things are done in `App.jsx` and modulized to the have components in `components` folder. The project folder structure ``` - public - src -- assets -- Components ---MainIndex.jsx ---Details.jsx ---Sidebar.jsx --App.jsx --main.jsx -index.html ```
This addresses #246 and introduces a sidebar with plugin content outlines. To implement the sidebar, several considerations were taken into account:
I used Materials UI
Drawer
component, it handles most of the above with less code.A lot of things are done in
App.jsx
so I tried to modularize the code a little bit.The project folder structure
still facing styling issues so I'll open it as a draft until it is ready for review