TheAlgorithms / TheAlgorithms/website

[FEATURE] Improve Codebox

Open
#303 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
1k
Forks
220
PR merge metrics
No merged PRs in 30d

Description

Summary

Add some margin to the "Try this code" button that currently borders the edge of the code box, making it look a bit out of place.

Motivation

Improves the design language of the website.

Detailed Description

Adding the same amount of margin as the Fullscreen/Expand button.

Screenshots/Mockups (if applicable)

Current button:
Screenshot 2024-10-28 at 21 38 07

With padding:
Screenshot 2024-10-28 at 21 43 49

Additional Context

No response

Existing Issues
  • I have checked existing issues (open and closed) for duplicates
Alternatives Considered

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the Codebox implementation and compare the “Try this code” button with the existing Fullscreen/Expand button styling. Add matching margin so the button no longer borders the code box edge, then verify the updated layout visually in the website.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
design, frontend, web-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.