tsparticles / 404-templates

tsParticles Auth Template for Websites
https://tsparticles.github.io/404-templates/
MIT License
155 stars 83 forks source link

Adding new 404 error template #103

Closed Ahasasjain closed 9 months ago

Ahasasjain commented 9 months ago

Details

Adding a new 404 template in the project please assign me this issue under hacktoberFest 2023.

Checklist - [X] ``new_template/404.html`` ✅ Commit [`719de93`](https://github.com/tsparticles/404-templates/commit/719de93bb390d8634d40247b3c5188d4d6e993a8) - [X] ``new_template/css/404.css`` ✅ Commit [`964d730`](https://github.com/tsparticles/404-templates/commit/964d730d33c0255a1465c4edb516ecadcf909e5d) - [X] ``new_template/js/404.js`` ✅ Commit [`00424f2`](https://github.com/tsparticles/404-templates/commit/00424f288fa9792525de8d4a7c2017340b9baf0a) - [X] ``data/pages.json`` ✅ Commit [`d4b45a2`](https://github.com/tsparticles/404-templates/commit/d4b45a2647d3a505d5b7e212955ad98402ef6a49)
sweep-nightly[bot] commented 9 months ago

Here's the PR! https://github.com/tsparticles/404-templates/pull/106.

⚡ Sweep Free Trial: I'm creating this ticket using GPT-4. You have 1 GPT-4 tickets left for the month and -1 for the day. For more GPT-4 tickets, visit our payment portal.

Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/tsparticles/404-templates/blob/5dfc27124d72886a5d502e99155953c80a2bee42/links/404.html#L1-L46

Step 2: ⌨️ Coding


Step 3: 🔁 Code Review

Here are my self-reviews of my changes at sweep/add-new-404-template_1.

Here is the 1st review

Hi there, great job on creating the new 404 error template! There's just one small issue that needs to be addressed: In the `new_template/js/new_template.js` file, you've added an event listener to an element with the class "home-button". However, this class is not assigned to any element in the `new_template/404.html` file. To fix this, you can either: - Add the "home-button" class to the appropriate element in the HTML file (likely the anchor tag that links to the homepage), or - Change the class name in the JS file to match the class of the appropriate element in the HTML file. Once this change is made, everything should work as expected. Keep up the good work!

I finished incorporating these changes.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord

sweep-ai[bot] commented 9 months ago

Here's the PR! https://github.com/tsparticles/404-templates/pull/108.

⚡ Sweep Free Trial: I'm creating this ticket using GPT-3.5. You have 1 GPT-4 tickets left for the month and 0 for the day. For more GPT-4 tickets, visit our payment portal.

Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/tsparticles/404-templates/blob/5dfc27124d72886a5d502e99155953c80a2bee42/CONTRIBUTING.md#L1-L67 https://github.com/tsparticles/404-templates/blob/5dfc27124d72886a5d502e99155953c80a2bee42/LICENSE#L1-L20

Step 2: ⌨️ Coding

trunk fmt `new_template/404.html` 1/2 ✓

 ✔ Formatted new_template/404.html
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix --print-failures `new_template/404.html` 2/2 ✓

Checked 1 file
✔ No issues

trunk fmt `new_template/css/404.css` 1/2 ✓

Checked 1 file
✔ No issues
trunk check --fix --print-failures `new_template/css/404.css` 2/2 ✓

Checked 1 file
✔ No issues

trunk fmt `new_template/js/404.js` 1/2 ✓

 ✔ Formatted new_template/js/404.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix --print-failures `new_template/js/404.js` 2/2 ✓

Checked 1 file
✔ No issues

trunk fmt `data/pages.json` 1/4 ✓

 ✔ Formatted data/pages.json
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix --print-failures `data/pages.json` 2/4 ✓

Checked 1 file
✔ No issues
trunk fmt `data/pages.json` 3/4 ✓

 ✔ Formatted data/pages.json
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix --print-failures `data/pages.json` 4/4 ✓

Checked 1 file
✔ No issues


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/add-404-template.

.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord

matteobruni commented 9 months ago

There is already an issue for that. Please use that