Coder Social home page Coder Social logo

dimitrisraptis96 / underline-generator Goto Github PK

View Code? Open in Web Editor NEW
17.0 1.0 1.0 4.34 MB

๐Ÿคบ Generate neat CSS underlines

Home Page: https://underline-generator.netlify.com/

License: MIT License

JavaScript 96.98% HTML 3.02%
css js underline gradient

underline-generator's Introduction

Underline Generator

Netlify Status

ย 

fencer emoji

Generate neat CSS undelines and embed them in your project. Check the app now.

ย 

๐Ÿป Usage

Customize your fancy underline and press the copy button to get your CSS class.

Then, just wrap your text with a <span> element and paste the generated CSS.

๐Ÿ”ฅ TODO

  • Redesign app using Sketch
  • Add css for the text inside the input element
  • Polish copy button (functionality & effects)
  • Hover text effect
  • Update icons
  • Gradient picker
  • Add animations
  • Add code modal
  • Special version that generates abstarct underlines

๐Ÿ›๏ธ License

Copyright (c) 2019-present Jim Raptis. All rights reserved.

The code, design and idea in this repository are intellectual property of the individual mentioned above (unless otherwise stated) and as such CANNOT be copied, modified, sublicensed or redistributed without permission from the author.

underline-generator's People

Contributors

dimitrisraptis96 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ismailnguyen

underline-generator's Issues

Let's collaborate!

Hey!

I was recently looking into implementing those fancy underlines so they can span to multiple lines. Most of the implementations I had seen were relying on ::after, which doesn't work without white-space: nowrap. So I ended up with something similar to what you are doing (you can see it on gabinaureche.com). Still, your implementation is way better.

I was thinking about open sourcing my findings until I came across your project. And so I thought I'd rather contribute ๐Ÿ™‚

I like everything about your implementation and design (especially the lightsaber ๐Ÿ˜›). I don't want to change anything but rather suggest a few additions. Let me know which one you'd be ok to add and I'll submit a PR:

  1. The button to copy the CSS code doesn't have the "pointer" on hover (partly because it's a div). I'd suggest to turn it into a button with cursor: pointer for accessibility.
  2. I like the hover styles but I'd like to make it optional. Would you be ok to add a checkbox for that? So it would toggle on/off the hover styles.
  3. It'd be great to be able to pick a plain color. Perhaps the gradient picker could be a dropdown to switch between "gradient" and "color"?
  4. I was thinking about creating a widget that could be used through a bookmarklet. The idea is to be able to use the generator on any site so users could design an underline that works with their font, font size, and line-height. It's not so hard but definitely requires some work, we can probably think about that later.

In terms of communication, I was thinking about:

  1. Publishing the project to npm so developers could use the library like so: generateUnderline({ colors: string[], position: number, weight: number }).
  2. Creating a few demos on Codepen and add a link in the repository's README (e.g demos of using this library with hover styles, animating the background, changing the color on hover, etc.).
  3. Submitting the project to some newsletters (e.g sidebar.io).

Let me know what you think!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.