Skip to content

Conversation

@GauravGupta993
Copy link
Contributor

#13 Solved.
Made a new PR because some conflicts were appearing due to which I had to discard the commit that closed the previous PR.

@vercel
Copy link

vercel bot commented Oct 24, 2023

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

Name Status Preview Comments Updated (UTC)
acm-fun ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2023 1:40pm

<h1>Random Meme Generator</h1>
<div>Enter the name of Reddit community you want to get memes from.</div>
<div> Some examples are animememes, dankmemes, wholesomememes, etc. Submit empty box to get random memes</div>
<input className="rmeme-text" placeholder="Enter name of community here" id="text" type="text" onChange={GetName}></input>
Copy link
Contributor

Choose a reason for hiding this comment

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

use a more unique id than text, rest lgtm

Copy link
Contributor

@Ishwarendra Ishwarendra left a comment

Choose a reason for hiding this comment

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

The input doesn't seem to work. I searched by writing chess but it still returned random meme not related to chess in any way

Also, there is CLS (Cumulative layout shift), on hovering submit button. You can take inspiration for button from Random Quote generator activity.

@Ishwarendra
Copy link
Contributor

Also, there is CLS (Cumulative layout shift), on hovering submit button. You can take inspiration for button from Random Quote generator activity.

By CLS, I mean other div move due to increase in size of button. This side-effect is not good.

@GauravGupta993
Copy link
Contributor Author

Also, there is CLS (Cumulative layout shift), on hovering submit button. You can take inspiration for button from Random Quote generator activity.

By CLS, I mean other div move due to increase in size of button. This side-effect is not good.

Ok, will do so. Also, API used searches for memes from posts in Reddit communities. The community name for getting chess memes is r/chessmemes so putting chessmemes in the input box should work. Also, it produces related memes after clicking generate memes after clicking submit. Just after clicking submit it produces meme related to previous topic. To solve this what I can do is not generate any meme on clicking submit and generate meme only when clicking generate meme.

Copy link
Contributor

@Ishwarendra Ishwarendra left a comment

Choose a reason for hiding this comment

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

@GauravGupta993 While you are at the cls issue, write in small font about the example.
For example, if user has to type r/chessmemes then there should be a text For example: r/chessmemes will return chess memes, so that user knows what to type in the box.

Ishwarendra

This comment was marked as off-topic.

Ishwarendra

This comment was marked as off-topic.

@Ishwarendra Ishwarendra merged commit 071908d into PEC-CSS:master Oct 30, 2023
Ishwarendra pushed a commit that referenced this pull request Oct 31, 2023
* Meme generator #13

* Meme generator #13

* Meme generator #13 Made changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants