Skip to content
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

fixed:quickstart page responsiveness #95

Merged
merged 9 commits into from
Oct 21, 2024
Merged

Conversation

theajmalrazaq
Copy link
Contributor

just fixed the quickstart page responsivess it is subpart of issue #25:mobile view is broken
Screenshot_select-area_20241019124711
Screenshot_select-area_20241019124722

Copy link

vercel bot commented Oct 19, 2024

@theajmalrazaq is attempting to deploy a commit to the tscircuit Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

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

Change the number of grid cols not the display style (this is a good use case for grid, switching to flex isnt as good)

@theajmalrazaq
Copy link
Contributor Author

@seveibar Done!!

@seveibar
Copy link
Contributor

So it looks like youve changed the design on lg screens.

im mobile today so its harder to check work. Can you introduce a playwright snapshot test (see playwright-tests directory) for xs, md and lg sizes. This will also benefit the project because others will need to show their snapshot for future modifications

Copy link

vercel bot commented Oct 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
snippets ⬜️ Ignored (Inspect) Visit Preview Oct 19, 2024 6:36pm

@theajmalrazaq
Copy link
Contributor Author

@seveibar, this is how it looks on both devices. On large devices, there will be 3 columns, and on mobile, there will be 1 column. Furthermore, I am working on Playwright tests for 3 screen sizes: large, medium, and extra small, and I’m fixing the AI page UI. I will create their PR tomorrow. Also, I will work on setting the screen to ensure it is fixed across mobile. With all these updates, issue #25 will be closed. For now, please merge this.

Screenshot_select-area_20241020002600
Screenshot_select-area_20241020002546

@@ -159,11 +161,13 @@ export const QuickstartPage = () => {
<h2 className="text-xl font-semibold mb-4 mt-12">
Start from a Template
</h2>
<div className="grid grid-cols-3 gap-4">
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
<div className="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4">

@@ -73,14 +73,16 @@ export const QuickstartPage = () => {

<div className="mb-8">
<h2 className="text-xl font-semibold mb-4">Start Blank Snippet</h2>
<div className="grid grid-cols-4 gap-4">
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
<div className="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4">

@@ -46,7 +46,7 @@ export const QuickstartPage = () => {
{isLoading ? (
<div>Loading...</div>
) : (
<div className="grid grid-cols-4 gap-4">
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
<div className="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4">

Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

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

See comments, then good to go

@theajmalrazaq
Copy link
Contributor Author

@seveibar doing it right away.

@theajmalrazaq
Copy link
Contributor Author

@seveibar Done with this!

@seveibar seveibar merged commit 96eaf3a into tscircuit:main Oct 21, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants