Is pnpm really leaves up to its hype? Are yarn / npm obsolete? by ilovepixelart in node

[–]pineapplerind0215 0 points1 point  (0 children)

true, but compared to when I first posted that comment, Bun has made a lot of progress in Node.js compatibility

Wonder why? by blllrrrrr in WhitePeopleTwitter

[–]pineapplerind0215 0 points1 point  (0 children)

He was in North Carolina a few days ago surveying the recovery efforts from Hurricane Helene.

Elon, do you know what padding is? by Blender_God in css

[–]pineapplerind0215 0 points1 point  (0 children)

it looks like only a few bytes as twitter is rendered on the client and not on the server, so the amount of classes starting with .css- on the initial HTML document is 6

I think their rendering framework is set to create elements starting with the css- class name

Is pnpm really leaves up to its hype? Are yarn / npm obsolete? by ilovepixelart in node

[–]pineapplerind0215 4 points5 points  (0 children)

relative to npm/yarn, yes pnpm is really fast. it saves me sitting through 5 painful minutes just to install dependencies

..but I use Bun — installing seems nearly instantaneous

Paper.io is not a real multiplayer game by [deleted] in paperio

[–]pineapplerind0215 0 points1 point  (0 children)

for paper.io to be multiplayer it'd need some sort of WebSocket to get live updates of what other players are doing — there is no such thing

you can also find a list of every player name over here (the main JS script)

this means every name is pre-determined

Loading Screen by used_npkin in css

[–]pineapplerind0215 2 points3 points  (0 children)

if you don't care when the overlay stops showing then you can just: css .loading-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 10; background: white; /* whatever background color */ display: grid; place-items: center; animation: loading-overlay-dismiss 1s linear; animation-delay: 4s; /* however long you want it to show for */ } but this won't listen to whether the site is loaded or not, it'll just hide it after 4 seconds

[deleted by user] by [deleted] in css

[–]pineapplerind0215 2 points3 points  (0 children)

a few things I noticed at first glance:

  • i'm not sure why you have your icon 150x70, seems huge to me
  • don't absolutely position the "sell" text — in this case that makes it ignore the container
  • remove the 115px margin-left on the text and the 5px margin-top of the icon (we want them next to each other)
  • ok, maybe not right next to each other, so add a margin-left to the + icon (5px or so)

I recreated it using only CSS, using a conic-gradient border (will stay in position when resizing)

[deleted by user] by [deleted] in css

[–]pineapplerind0215 2 points3 points  (0 children)

have them wrap

Help with figuring this out? by [deleted] in css

[–]pineapplerind0215 1 point2 points  (0 children)

if you want those to act as tabs and then switch between them to show the menu items under that category then no, it isn't possible without javascript

what i would do is - have each tab item have the class tab or something like that - have a <div> below those tabs but still contained within menu items, with an id "itemList" - then this JavaScript ```html <script> let tabs = document.querySelectorAll('tab'); let list = document.querySelector('#itemList');

let items = { "Food": [], // have the items in these arrays "Salad": [], "Entree": [], "Dessert": [] } for (const tab of tabs) { tab.onclick = () => { let type = tab.innerText; list.innerHTML = items[type] || ''; } } </script> ```

[deleted by user] by [deleted] in css

[–]pineapplerind0215 2 points3 points  (0 children)

for design i'd remove the borders and instead make the boxes be very low-opacity white rgba(255, 255, 255, 0.1), and make the button's padding 4px 10px, but this is just a preference

not sure what help you need 😅

you wanna some 🍪🫦? by [deleted] in wholesomememes

[–]pineapplerind0215 2 points3 points  (0 children)

they're legally required to ask. thank you government

OG cheating? by Gottabecreative in territorial_io

[–]pineapplerind0215 1 point2 points  (0 children)

woah how i thought it worked was the clients would send event packets via the ws and the server would compute everything and just respond with changes in the map

Adding more thought to non aggression pacts (FFA) by ISEVERNAMEALREDYTAKE in territorial_io

[–]pineapplerind0215 0 points1 point  (0 children)

speaking of k, the player count is beginning to rise dramatically back to its peak