jay, novice human (
10billionghosts) wrote2024-03-28 05:22 pm
Entry tags:
code: PEEPERS, a collapsing muse list code

Took a wee coding break after releasing SALAD, and now I'm BACK! I'm dipping my toes into canon/quasi-canon PSLing for the first time, and so I made this character list/muse box code for me (rather than the spirit of the internet taking control of my consciousness and compelling me to create and release something, as is usually the case). Here's PEEPERS!
PEEPERS is a character/muse list code for people like me, who hate taking up space but still want to make dumbfuck jokes for folks to find if they're willing to click around. Each "card" (the character bars) will expand down when clicked, providing a space for additional content. By default, I've provided three prestyled options:
To start, grab the outer wrapper code here. It also contains one copy of the header code I made, but you can replace that with any text header/horizontal divider!
OUTER WRAPPER (grab me first!):
Once you've grabbed the outer wrapper above, check the HOW TO USE section, and pick up the code for the card style you want at the bottom of this post.
HOW TO USE:
❣️ Mind those lj-raw tags!!
❣️ This code is mobile compatible and insanejournal friendly! It is not comment compatible.
❣️ Be sure to grab the OUTER WRAPPER code above first! This code will ... lmao SO super not work without it. I'm not kidding.
❣️ Once you've got the outer wrapper pasted into a fresh new post, paste as many cards as you'd like into the code where indicated.
❣️ By default, this code stacks three cards across on wider displays and will shuffle down to one per line on mobile. You can set it to max two across by going to the top of the OUTER WRAPPER code and changing
❣️ Feel free to delete the default header entirely!
❣️ I'd definitely suggest editing the code comments on this one; each card is labeled ITEM: name, where name is meant to be changed to a title for that particular card. This'll make it easier for you to edit stuff later. I swear.
❣️ READ THIS PART, IT'S ABOUT MAKING SURE THE IMAGE LOOKS GOOD EASILY: While you can put ANY image url into the IMG_URL placeholder and it will technically work, for BEST AND EASIEST RESULTS, you'll want to resize and crop an image yourself for best fit.
❣️ There are 5 total code snippet types in PEEPERS:
❣️ For the song snippet, you can completely delete the song lyrics part of the code if you just want song name and artist.
❣️ CUSTOMIZING THE PROGRESS BAR CODE:
❣️
❣️
❣️ This code contains a credit link. I'd appreciate if you'd left it in!
❣️ I love peeking at what people do with my codes, so feel free to comment if you use! If you'd like, you can also donate to my ko-fi!
Pick up individual card codes below
PEEPERS is a character/muse list code for people like me, who hate taking up space but still want to make dumbfuck jokes for folks to find if they're willing to click around. Each "card" (the character bars) will expand down when clicked, providing a space for additional content. By default, I've provided three prestyled options:
- OC BAR - Prioritizes line items over text space, comes with a link list.
- CANON BAR - Prioritizes block text space, comes with a progress bar.
- PLAYLIST BAR - Simple styling for a song list + link.
To start, grab the outer wrapper code here. It also contains one copy of the header code I made, but you can replace that with any text header/horizontal divider!
Once you've grabbed the outer wrapper above, check the HOW TO USE section, and pick up the code for the card style you want at the bottom of this post.
HOW TO USE:
❣️ Mind those lj-raw tags!!
❣️ This code is mobile compatible and insanejournal friendly! It is not comment compatible.
❣️ Be sure to grab the OUTER WRAPPER code above first! This code will ... lmao SO super not work without it. I'm not kidding.
❣️ Once you've got the outer wrapper pasted into a fresh new post, paste as many cards as you'd like into the code where indicated.
❣️ By default, this code stacks three cards across on wider displays and will shuffle down to one per line on mobile. You can set it to max two across by going to the top of the OUTER WRAPPER code and changing
max-width:900px to max-width:600px.❣️ Feel free to delete the default header entirely!
❣️ I'd definitely suggest editing the code comments on this one; each card is labeled ITEM: name, where name is meant to be changed to a title for that particular card. This'll make it easier for you to edit stuff later. I swear.
❣️ READ THIS PART, IT'S ABOUT MAKING SURE THE IMAGE LOOKS GOOD EASILY: While you can put ANY image url into the IMG_URL placeholder and it will technically work, for BEST AND EASIEST RESULTS, you'll want to resize and crop an image yourself for best fit.
- Firstly, if you're using fanart, please be sure to check the original artist's use policy. Not every artist wants you using their art, let alone editing it/cropping it. Please respect artist use policies!
- Take the image you'd like to use, resize and crop it so that it is 275px width x 75px height. A quick search of "image cropping" will turn up a ton of online resources to accomplish this if you don't have access to an image editing program!
- Host your image somewhere like imgur, and replace IMG_URL with the URL to that image.
- Try adjusting the background-size: value. By default it is set to cover. What value works best depends entirely on the image, but you'll most likely want to change it to a percent value. For example, 350%.
- Try adjusting the background positioning. Background positioning is sort of math-y, and I am absolutely not equipped to explain it well lmao, but you can read about it here.
- A combination of both of these can get you very nice results! To test the code, on my own personal musebox I used a combination of cropped images and code-positioned images, and I don't think it's obvious from a glance which is which.
- All of this is done under the part of the code that says "character name / title"
- By default, the title text will align to the right side of the card. To change this, change
justify-content:from end to either start (for left aligned title) or center (for centered title). - You may need to change the font color for visibility reasons. If so, change the hex value of
color:#fffto whatever color you'd like to use. - You may need to fiddle with the
text-shadow:0 0 1px #000value to improve visibility or just cuz. A good alternative is1px 1px 0 #000. Here's a text-shadow value generator that you can use if you aren't sure how text shadow works. I'd recommend keeping all number values small. - If you are a small caps hater, delete
font-variant:small-capsentirely to restore normie letters.
❣️ There are 5 total code snippet types in PEEPERS:
- line item, a single line for a short string of text, like "name", "canon", "pronouns", etc.
- blurb, a space for a block of text; put as much text as you want.
- links, coding for a simple link list; links will size themselves automatically as you add them, max 3 per line. Found in the OC BAR by default.
- progress, a progress bar that you can customize; use it for Confidence or Interest or CR or whatever you'd like.
- song, a single line styled for song/artist, specifically, but I bet you could use it as a thread tracker too if you wanted.
❣️ For the song snippet, you can completely delete the song lyrics part of the code if you just want song name and artist.
❣️ CUSTOMIZING THE PROGRESS BAR CODE:
- It's set to 50% by default.
- Under the part of the code that says 'adjust width value here', change the default
width:50%to another % value. - If you want to set it to 100%, change
border-radius:15px 0 0 15px;toborder-radius:15px;. - Don't forget to update the labeling under the part of the code that says 'describe value here'; it's INTEREST and 50% by default.
- hex code #fff, white, is used throughout the code in a variety of different ways, so don't use find-replace on this one.
- hex code #000, black, is used throughout the code, mostly for default shadows. should be safe to find-replace.
- hex code #347a99, is the default color for text backgrounds, the progress bar, and the text in the default header. Safe to use find-replace to change these quick.
- hex code #134b63, default text code, declared at the top of each card.
- hex code #b9d8e5, used only in the header bar, as the line color.
- hex code #d7ecf7, a very light blue, used only in the header bar, as the drop shadow on the text.
- radial-gradient(circle, rgba(246,246,246,1) 0%, rgba(235,235,235,1) 100%), this is a gray gradient used in the background of the details dropdown; use a css gradient generator to change this color, if you'd like.
font-family: to adjust it.❣️
font-size: is declared once in the outer wrapper and again in certain parts of the individual cards. Use the search function to make sure you've updated all font sizes if you want to change them.❣️
text-align:justify is the default alignment setting. Feel free to change this to left/right/center! I just like justified text.❣️ This code contains a credit link. I'd appreciate if you'd left it in!
❣️ I love peeking at what people do with my codes, so feel free to comment if you use! If you'd like, you can also donate to my ko-fi!
warrior of light
veritas ratio
canon:
honkai star rail
confidence
75% (voice testing)
playlist
SONG TITLE ○ Artist Name
song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics
SONG TITLE ○ Artist Name
song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics
SONG TITLE ○ Artist Name
song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics

no subject
no subject
no subject
no subject
no subject
no subject
no subject
This will be a fantastic little cr chart/character blurb thing to work on in the future, I appreciate you so much LMAO
no subject
YESS it feels very handy for CR/blurb stuff. It's a pretty simple code but I'm so happy it's turned out fairly dynamic.
no subject
no subject
no subject
no subject
no subject
no subject
You can customize URL, color, etc. :]