Lurker News

Comments (191) 59 threads

oh-renovamen10 replies#
Hi! I'm recently working on a portfolio website simulating macOS using React and tailwindcss. The style is between macOS Big Sur and Catalina (in another word, I picked out and combined my favorite parts from these two versions).

Here's the link to website and Github:
Website: https://portfolio.zxh.io
Github: https://github.com/Renovamen/playground-macos
I appreciate any feedback or suggestions.

monkey_monkey#
Very nicely done!
da39a3ee1 reply#
Wow, this is impressive and quite crazy! Ok so how does the VS Code thing work? I browsed the source (in VS Code in your website of course) and found the VS code component but I didn't quite understand -- it seemed to just be an iframe pointing at the README src. And yet it appeared sufficiently like I was actually in a VSCode instance to fool me.
da39a3ee#
Ohhh right, thanks! I did see that HN discussion so I should have spotted the github1s URL. Lots of fun tricks going on...
oh-renovamen#
Yeah, github1s is amazing!
log1013 replies#
It seems awesome. But dock animation seems to stagger a bit, why is that? And can you solve it?
oh-renovamen2 replies#
You are right, but I'm not good at frontend so I'm sure I can solve it hhh. Hope I can find out a solution one day. Thanks!
borski#
I’m going to challenge your assertion of “not being good at frontend” based on this submission heh. You should try to stop seeing yourself that way.

I dont’t like frontend work, but that’s different from being bad at it. :)

iseanstevens#
You must be absurdly exceptional at whatever it is you ARE good at!
tyingq#
I know, Art. And thanks for noticing.
exikyut#
FWIW, in Chrome (Dev) on Linux, with hardware decode and 2D GPU raster enabled, on a fairly old laptop that occasionally sees GPU process hangs, it's _perfectly smooth_, and try as I might I can't make it skip frames. The icons jitter around a tiny bit as they change size, but I can't get it to produce jank.

What browser/hardware?

unlimit1 reply#
This is crazy impressive. How many hours did it take?
nefitty1 reply#
10 days!! You might be a real life example of a 10x dev...

Continue this thread — 1 reply

OzzyB3 replies#
At first I was like: Oh, ok, another one of these "here's my portfolio that looks like an OS" deals.

Then I was like: Cool, look how he got the nice Dock animation down, I bet it took him hours to sort that out.
And then I opened VS Code and I had to write to tell you how my mind was blown.
Kudos, senpai.

smoldesu1 reply#
Like the other commenter said, it's not that impressive considering that VS Code was already written in Javascript and open-source, so the porting effort required here isn't as big as it seems. Still a neat project though!
texasbigdata#
Come on way to buzzkill
FabHK1 reply#
(Without distracting from your eulogy: "she" and "her", apparently.)
OzzyB#
Thanks for the correction :*
Terretta1 reply#
This is fantastic, and it should help you get hired!

In late 90s, I got a gig in part by demo-ing my own personal MS Outlook emulator web front end (backed by ColdFusion POP3/SMTP calls). It was entertaining getting a 1996 browser to look and behave like Outlook — had to love frames and multipart server push.
Seeing Bear, Terminal, and VSCode here are all both delightful and impressive.
Typo feedback:
“In the last sever days, Safari has prevent 95 tracker from profiling you” —> “In the last several [seven?] days, Safari has prevented 95 trackers from profiling you”

oh-renovamen#
Thank you for your nice words!

It sounds amazing and quite hard to achieve that in 90s, awesome job!
I'll fix the typo later, thanks!

aeoleonn#
it's beautiful, innovative, and inspiring! well done!
gabereiser1 reply#
I’ve been building sites for 20 years, I’ve recently picked up react and seeing the code, it’s a great example of react so thanks for this! Second, kudos for recreating macos! The design is really where macOS shines along with the subtle animations and you nailed it. I grew up on System8/9 and miss that aesthetic but still cool none the less. Now, support dark mode ;)

Continue this thread — 1 reply

Continue this thread — 2 more replies

Liskni_si4 replies#
First thing that came to my mind when I opened this: hey let's test if maximization is just as broken as in real MacOS. And oh my god it is indeed! Safari won't maximize to the entire screen, just like in the real thing, and other apps like the terminal maximize correctly. Wow, this level of attention to detail is really crazy! :-)
fiddlerwoaroof3 replies#
macOS’s zoom functionality isn’t broken, it’s just content-size based rather than screen-size based: I like this, but some applications to implement the necessary hints and so it falls back to zooming to full screen.

macOS’s resizing has some useful functionality here: dragging an edge resizes in that direction, double-clicking an edge maximizes in that direction (including diagonally) and option+any of these resizes the opposite side of the window as well. So, if you hold option and double-click a corner, it’ll do a Windows-style maximize.

jeroenhd1 reply#
> So, if you hold option and double-click a corner, it’ll do a Windows-style maximize.

I've used Linux command lines with more discoverability than that. Good to know if I ever need to use macOS, though, that's a nice trick.

fiddlerwoaroof7 replies#
It depends what you mean by discoverable: option+mouse action is a pretty standard macOS convention for alternate behavior and “double-click == drag all the way” isn’t unreasonable. The behavior of option+double-click is discoverable by simple composition of these features.

Also, most of this sort of functionality is documented in the built-in help system accessible through the help menu.

Continue this thread — 7 replies

thiht2 replies#
> macOS’s zoom functionality isn’t broken, it’s just content-size based rather than screen-size based

So it is indeed broken. The fact that it's not humanly possible to fullscreen Safari without Spectacle/Rectangle clearly means it's broken, whether it's what th ey wanted or not.

fiddlerwoaroof18 replies#
I generally prefer the content-based zoom functionality. This is a case of people not used to the Mac conventions disliking that Macs don't work like Windows.

And, as I've pointed out, both behaviors are possible on macOS out of the box.

Continue this thread — 18 replies

tambourine_man6 replies#
The Mac has behaved like that since the classic days. This is the platform that invented overlapping windows. They aren't supposed to be maximized, as it's almost always a waste of screen real estate.

You're just used to other platforms.

Continue this thread — 6 replies

dreamer71 reply#
Best to just install Rectangle app (formerly Spectacle) and use sane shortcuts like alt+option+enter for full screen.
jorvi2 replies#
I use and like Rectangle a lot, but fullscreening an app on macOS brings real performance and battery benefits. It's not just fancy for being fancy.

Continue this thread — 2 replies

charrondev#
I quite like window management through https://magnet.crowdcafe.com/ magnet.

You get keyboard shortcuts for tiling things and can drag/snap to edges of the screen.

resist_futility#
Double click the top/title bar to maximize a window, it's easier to hit since you have one giant area at the top of the window to click on too
LaputanMachine3 replies#
You can even open the website recursively within its own "Safari" window. The recursion depth seems to be limited to one though. Nice easter egg nonetheless.

Edit: It's possible to bypass the recursion limit. First open the "Blog" bookmark on the Safari start page. Use Inspect Element on the "portfolio" link at the top right, and remove

    target="_blank"
from the HTML. Open the portfolio and enjoy infinite recursion.
h4l03 replies#
I didn't experience a recursion limit when I just tried it. Maybe the site was updated after your comment? I'm using Firefox.

Continue this thread — 3 replies

Continue this thread — 2 more replies

frereubu11 replies#
This is fun, but in some ways it's too good - after a minute playing around with it I went to use command + W to close a terminal window and of course it closed the browser window!

Continue this thread — 11 replies

Load more comments