Skip to content

A link in bio site, based on the Glitch in Bio template, on Glitch

License

Notifications You must be signed in to change notification settings

andypiper/my-glitch-in-bio

Repository files navigation

Glitch in Bio!

Important

the live code on Glitch is on the glitch branch.


Tip

I wrote about my original remix --> A quick Glitch bio break


Your links, your way. A link-in-bio app you can customize any way you want.

screen gif showing the header of the glitch-in-bio remix being updated to say "hello, world!"

Direct traffic to your own Glitch-in-bio app in 3 steps:

1. Remix this app for your own, live version in seconds

Then click Preview at the bottom of this window and then Preview in new window to see the live app in its own window, with a free glitch.me domain ready to share.

📝 Make sure to log into Glitch to save your new app or else it will expire in 5 days.

2. Edit settings.json to add your own info and links

Replace the meta info, links and social sites we added for you in settings.json and you'll see your changes instantly updated in real time!

If you want to include images, upload them in assets and copy the URLs into your settings JSON too–make sure you have a theme selected that shows images like gallery or menu.

3. Choose a theme

To help you make the site your own we've included some themes. In settings.json you can enter glitch, gallery, or menu as the value for theme.

📝 If you want to see how these themes are made, look in the public/styles/themes directory! If you don't have a valid theme entered, the site will default to the styles outlined in style.css.

...or create your own!

Customize your site by updating custom-theme.css inside the public/styles/themes folder with CSS to update colors, fonts, or any other style rules. Update your theme in settings.json to custom-theme to have the app use those new rules.

📝 You can rename custom-theme.css, just make sure you use the new file name as your theme value in settings.json.

🖼️ Check out examples of other themes the community has created in this Playlist and submit your own to share!

Other Tips & tricks

Get verified links by adding rel="me" to your anchor tags in templates/social.js like this for Mastodon:

{ "name": "mastodon", "altText": "Mastodon", "rel": "me" }

To use your Glitch in Bio site as a Bluesky handle, create a new file at .well-known/atproto-did and fill it in with the value provided by Bluesky in the change handle flow.

Screenshot of creating a new file

  • Check out the Glitch-in-bio section of our Help Center for more documentation on how to customize or troubleshoot your new app!
  • If you notice your preview is a little out of sync with your settings.json, hit the reload button in the preview window and it should update!
  • Looking for ways to extend your app, or for inspiration? Check out the official Glitch-in-bio page.

What's in this project?

README.md: That’s this file. You can delete it, or keep it handy so you don't lose the instructions.

index.html: This is the main page template vite uses to build your site. You'll see the template syntax for importing the data you specify in settings.json (built into the structures in scripts/render.js). You'll also find some tips on configuring the page in the HTML comments.

settings.json: Settings for your name, links, images, and social media. The index.html page includes the data.

templates/: HTML templates — you can edit every line of HTML or never even look at any of it. The data you specify in settings.json will be built into the page using the HTML in here using standard javascript templating wrapped in a html function.

public/styles/: Stylesheets for Glitch in Bio, including alternate themes. Change your theme in settings.json. You can create a new theme by adding a CSS file to this folder and specifying it using its name in the settings (e.g. glitch, gallery, menu, or whatever yours is called!)

public/manifest.json and public/sw.js: These set your site up to function as a Progressive Web App (PWA)–if you add new assets (e.g. stylesheets) you can include them in the list in sw.js to cache your site for offline viewing.

assets: Add images here and copy the links into settings.json to show them in your site.

Glitch

You built this with Glitch!

Glitch is a friendly community where millions of people come together to build web apps and websites.