r/reactjs • • Apr 16 '21

Show /r/reactjs macOS finder clone with React

662 Upvotes

28 comments sorted by

37

u/Guy676767 Apr 16 '21 edited Apr 18 '21

I originally built this with only CSS and HTML to practice styling, but decided eventually to rebuild this in react to add interactivity.

I first wrote all the stateful logic in class components, and later refactored to hooks.

This is obviously a very bare-bone kind of clone, I realize a ton features are missing.

Link to the app: https://finder-clone.netlify.app

Link to the GitHub repository: https://github.com/guyariely/finder-clone

25

u/not_trevor Apr 16 '21

The icon-size slider is what really volleys this into perfection.

5

u/Guy676767 Apr 16 '21

Thanks lol, the react-slider package + CSS variables made it super easy.

15

u/jegodin Apr 16 '21

4

u/Guy676767 Apr 16 '21

Cool repo, I’ll make a pull request to add this

12

u/cuongtd Apr 16 '21 edited Apr 16 '21

look great. this could be a good idea to start with frontend web development

4

u/Guy676767 Apr 16 '21

Definitely. A lot of the classic UI problems to solve and play with

6

u/cannamorphosis Apr 16 '21

Nice comps you just rendered! Congrats! Did you use any library?

9

u/Guy676767 Apr 16 '21

Except react itself, I used react-modal and react-slider. You check out the code at https://github.com/Guy6767/finder-clone

6

u/cannamorphosis Apr 16 '21

ty, I will take a look. Have you already tried using React w/ CSS grid-template-column/row rule along with the grid-template-area for layouts? It will save you tons of time when positioning the components. Just a lil tip.

4

u/Guy676767 Apr 16 '21

Yes, it’s exactly what I used :) CSS grid is fantastic

2

u/chandrarishabh Apr 16 '21

amazing work!! try implementing rich text editor for creating pages file.

1

u/Guy676767 Apr 17 '21

I made one a few years ago with DraftJS! (it’s called noteworthy on my GitHub) but I never got around to finishing it. I can probably finish it in a few days and then maybe incorporate it into the app in some form

1

u/chandrarishabh Apr 18 '21

yeah that would be amazing.. i am making a similar app like yours.. was wondering if you implemented functionalities like copy paste etc?

2

u/Vitya_Schel Apr 17 '21

Exactly what I needed but couldn't find in the web! It would be awesome if you share it as component via npm!

1

u/Guy676767 Apr 17 '21

What part would you like to be shared as a component?

1

u/Vitya_Schel Apr 17 '21

the whole browser so we can load files as object in and browse them on page

2

u/Tasty_Reason_688 Apr 16 '21

I am sorry i am new...where is you stored files hosted? Isn't netlify for frontend pages only...again i am newbie

3

u/Guy676767 Apr 17 '21

You’re correct about netlify. I’m using localStorage to persist the data. You can check out the code in GitHub and DM if you have any question

4

u/192_168_1_x Apr 16 '21

Nailed it. ⭐️⭐️⭐️⭐️⭐️

2

u/EIGRP_OH Apr 16 '21

Awesome. I did a Windows 10 one but its not nearly as good as yours!

2

u/Nick337Games Apr 17 '21

Very cool idea!

2

u/rsupanta Apr 17 '21

Wow! Cool

2

u/[deleted] Sep 03 '22

Hi, are you looking for a new role?

1

u/[deleted] Apr 16 '21

Finder > Explorer 🤤