r/reactjs • • May 12 '21

Show /r/reactjs Neomorphism digital clock

513 Upvotes

28 comments sorted by

24

u/albaneso May 12 '21

Hello everyone, I saw a video of this somewhere so I tried to create it in React.

You can check the code on my github repo

Let me know what you think!

6

u/MahiBadGal May 12 '21

Wow yet another interesting project kudos to you, love it and the code seems very slick and organized!!! đŸ‘đŸ»

5

u/albaneso May 12 '21

Thank you, appreciate it!

5

u/azangru May 12 '21

Yay, I didn't know you can do an Array.from from a string to split it into characters :-) I've been always doing string.split('') for that.

2

u/NoInkling May 12 '21

It's actually more reliable than string.split('') for most cases (assuming ES6 is available), because it doesn't break up UTF-16 surrogate pairs.

1

u/azangru May 13 '21

That's a very good point!

0

u/[deleted] May 12 '21

[deleted]

3

u/azangru May 12 '21

So, javascript strings implement the iterable interface. Well, well...

25

u/RelativeWrongdoer May 12 '21

Waaaaaay cool idea!! Don’t fancy the visibility toggle of the “circles” tho

7

u/[deleted] May 12 '21

Why does it only go to 19:59:59?

9

u/rbltaylor May 12 '21

I’m guessing it’s a 12-hour clock.

5

u/HyperbolicInvective May 12 '21

I'd heard of skeumorphism, thanks for introducing me to a new term!

Neumorphism originated by combining the old classic skeuomorphism (Interface objects that mimic their real-world counterparts in appearance e.g. recycle bin icon used for discarding files) with the flat design. Skeuomorphism laid the foundation of interface design and flat design emphasizing minimalism. It combines two revolutionary trends which makes it refreshing and an avant-garde design trend.

https://uxplanet.org/why-neumorphism-is-different-from-the-other-design-trends-efe40571b6b

1

u/IlMulo May 12 '21

Just you know, it looks cool etc but its widely considered bad from an accessibility point of view (contrast, shadows etc don’t work very well for people with accessibility issues)

9

u/whatloop May 12 '21

3

u/theredhype May 12 '21

When i view this, the time is correct, but the am/pm indicator is incorrect

1

u/whatloop May 12 '21

Hey, you're right! Oops.

3

u/Fidodo May 12 '21

Really cool. I think it would be extra satisfying if you added real gravity so it looks like they're actually falling.

2

u/Guisseppi May 12 '21

Cool idea, but damn Neumorphism hates contrast, I remember 2019/2020 when /r/ui_design was doing the most for this before the went to the next “morphism” (it was “glassmorphism”)

2

u/dshkodder May 12 '21

Great job!

2

u/willardwillson May 12 '21

NFT this thing, hang it on a wall, power it and you wil be rich...

1

u/kingluffy12_ May 12 '21

Good work !! Well done, looks great.

1

u/Elliot40404 May 12 '21

This is a wallpaper on wallpaper engine. Good job btw

1

u/IlMulo May 12 '21

This gave me anxiety

1

u/Houdinii1984 May 12 '21

I blocked off the top and bottom part with paper so all you could see was the single row with the time and it looked pretty awesome as well. It's rather inspiring.

1

u/zainsci May 13 '21

Great Project. I should try building something like this too.

1

u/Tasty_Reason_688 Oct 22 '21

hello mate are you available for some help?

1

u/Academic-Bonus2291 May 12 '21

Really awesome!!!