Have you ever wanted a place that can make all your profiles and links nicely organized, easily searchable and with super customizability?
Well, now you can!
Present all your links in style with an easily accessible and highly customizable web app! โจ
Needed a place to display all my profiles, used my project's repo as inspiration.
To get links, follow these steps:
git clone https://github.com/2kabhishek/links
cd linksYou can easily set up links to show your own profiles.
- Fork the repo
- Clone it
- Open up
script.jsand update theusernamevariable to your internet username. - Edit the
linksJSON array inscript.js, add/remove link elements as required. - Open up
index.htmland update thetitletag to make it your username. - You may also want to update the favicon, update the
linktag inindex.html - Push your changes
- Go to repo settings on GitHub and enable GitHub Pages.
The site should be live on https://<your-username>.github.io/links
Every link has the following properties:
name: The name of the linkdescription: Brief description about the linkurl: The URL to open when clicked on the linkicon: The icon of the link, font awesome classes in usecolor: The color of the link icon, hex code in use
If your username is different across sites, or you want to add a custom URL as a link just add the entire URL in the url field.
Presence of http in the URL string will override the URL building logic and present your link as is.
The order of links presented will be the same as their order in the links array in scrip.js.
Comes with a dark and light theme by default, depends upon your system configs.
Edit the variables under :root in styles.css to modify colorscheme.
This project uses Font Awesome Brand for adding icons, if the icon you are looking for is not available, try using the full version of Font Awesome.
Although, the original purpose of links is to create a web app for your profiles, it can also be used in some other scenarios.
- Portfolio Replacement: Adding just a little bit of information about yourself to the
index.htnlcan convert links to your full fledged Portfolio. - Link.tree Replacement: Combined with some basic tracking and metrics, links can easily be used as an alternative to link.tree.
- Custom Home Page: You can create a custom home page with your favourite links, just add the page's complete URL to
linksinscript.jsand set your live website's link as your browser homepage. - Sharing Resources: Links with overridden URLs can be easily used to share resources after talks and presentations.
Open index.html in your favorite browser or visit 2kabhishek.github.io/links.
links was built using HTML CSS & JavaScript.
It was built on neovim and the node live-server.
Uses font awesome for icons.
- Learned new use cases for
JSON Arrays
You tell me!
Hit the โญ button if you found this useful.
