Skip to content

Conversation

@jeetsh4h
Copy link

@jeetsh4h jeetsh4h commented Apr 6, 2025

Fixing the things that really bugged me in the website.

  • Made the logo animate when hovering or clicking on the title
    • just like the list below
  • Prevent default browser behavior when dragging links.
    • basically remove the weird dragging of text and it still staying active unless un-pressed again.

If people only used Chrome and Safari then the CSS snippet below would have sufficed.

a {
    -webkit-user-drag: none;
}

Refer to the docs here as to what it does and why.

There is another way of achieving the same result without using the <script> tag. However it is more tedious and I personally do not like it. It would essentially means that we would add the below attribute to every <a> tag where one would want to prevent the draggability of the anchor element.

<a ondragstart="event.preventDefault()" href="#">lorem ipsum</a>

@jeetsh4h
Copy link
Author

jeetsh4h commented Apr 6, 2025

Wanted to fix the CSS duplication, logo as a button, and the formatting but @ZYR0Z seems to have beet me to it for all of them in PR #3

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.

1 participant