Skip to content

refactor: enhance modal component structure and styling #6337

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

Closed
wants to merge 35 commits into from

Conversation

Souradip121
Copy link
Contributor

@Souradip121 Souradip121 commented Mar 21, 2025

Description

This PR fixes #6292

Notes for Reviewers
image
image

Signed commits

  • Yes, I signed my commits.

@l5io
Copy link
Contributor

l5io commented Mar 21, 2025

🚀 Preview for commit 00a8240 at: https://67ddbf4b017ffe286b34e41d--layer5.netlify.app

@l5io
Copy link
Contributor

l5io commented Mar 23, 2025

🚀 Preview for commit 97afb04 at: https://67e03a9684018c4a5a759f22--layer5.netlify.app

Copy link
Contributor

@vishalvivekm vishalvivekm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Souradip121
please fix failing Eslist checks
https://github.com/layer5io/layer5/actions/runs/14020899270/job/39252725942?pr=6337

Also add it to agenda items for weekly websites meeting [Monday, 24th March | 5:30 PM IST]
meeting minutes.

@Souradip121
Copy link
Contributor Author

I am facing issues, I have ran using GATSBY_CPU_COUNT=2 make site and over github codespaces with 16GB RAM, with details as follows
image
Then after running with command GATSBY_CPU_COUNT=2 make site
image

I really want to contribute, anyone who can help kindly help I have read both blogs
https://discuss.layer5.io/t/problems-with-setting-up-layer5-for-development/6613
https://discuss.layer5.io/t/problems-with-running-local-development-server-for-layer5-development/6780

@l5io
Copy link
Contributor

l5io commented Mar 24, 2025

🚀 Preview for commit 3f70933 at: https://67e1c3f417b1b30e64351e3a--layer5.netlify.app

@Souradip121
Copy link
Contributor Author

I have updated the PR @vishalvivekm you can check

@Souradip121
Copy link
Contributor Author

I have added the guidance section, also the getting started containing the import statements are as below

image

image

@l5io
Copy link
Contributor

l5io commented Mar 27, 2025

🚀 Preview for commit eeb4c0c at: https://67e5584754c6b33a415c1750--layer5.netlify.app

@vishalvivekm
Copy link
Contributor

@Souradip121
Thank you for your contribution!
Let's discuss this during the website call today at 5:30 PM IST

adding it as an agenda item to the meeting minutes.

@l5io
Copy link
Contributor

l5io commented Mar 31, 2025

🚀 Preview for commit afdca78 at: https://67ea6050f55cc03954f740b8--layer5.netlify.app

Comment on lines 210 to 247
<thead>
<tr>
<th style={{ textAlign: "left", padding: "8px 12px", borderBottom: "2px solid #ddd" }}>Prop</th>
<th style={{ textAlign: "left", padding: "8px 12px", borderBottom: "2px solid #ddd" }}>Type</th>
<th style={{ textAlign: "left", padding: "8px 12px", borderBottom: "2px solid #ddd" }}>Default</th>
<th style={{ textAlign: "left", padding: "8px 12px", borderBottom: "2px solid #ddd" }}>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}><code>open</code></td>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>boolean</td>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>false</td>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>Controls the visibility of the modal</td>
</tr>
<tr>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}><code>closeModal</code></td>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>function</td>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>required</td>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>Callback function triggered when the modal is closed</td>
</tr>
<tr>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}><code>title</code></td>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>string</td>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>&quot;&quot;</td>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>Text displayed in the modal header</td>
</tr>
<tr>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}><code>children</code></td>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>node</td>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>required</td>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>Content to be rendered inside the modal</td>
</tr>
<tr>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}><code>disableBackdropClick</code></td>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>boolean</td>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>false</td>
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>If true, clicking the backdrop will not close the modal</td>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess, if we'd be better getting rid of these many repeated inline sytles @Souradip121, thoughts ?

</a>
<div className="showcase">
<div className="table-responsive">
<table style={{ width: "100%", borderCollapse: "collapse", marginBottom: "20px" }}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here and at any number of places in the changes @Souradip121

Copy link
Contributor

@vishalvivekm vishalvivekm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too many inline styles

@l5io
Copy link
Contributor

l5io commented Apr 1, 2025

🚀 Preview for commit d17d351 at: https://67eb9074054f9b7bf013f76d--layer5.netlify.app

MUzairS15 and others added 10 commits April 2, 2025 05:37
Signed-off-by: GARY121github <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Lee Calcote <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: vr-varad <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Aditya Raj <[email protected]>

This reverts commit 3ea772a.

Removed Extra = Appearing Before Email on Lee Calcote’s Bio Page

Signed-off-by: Aditya Raj <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: vr-varad <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
vishalvivekm and others added 23 commits April 2, 2025 05:37
Signed-off-by: Vivek Vishal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
This reverts commit 439e517.

Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: GitHub <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Rian Cteulp <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Aditya Raj <[email protected]>

fix: run eslint

Signed-off-by: Aditya Raj <[email protected]>

Remove unnecessary files

Signed-off-by: Aditya Raj <[email protected]>

Updated my blog as everyone suggested

Signed-off-by: Aditya Raj <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Aditya Raj <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

[Sistent] Enhance Component Documentation and Ensure Default Button Styling Consistency