- ๐ Hi, Iโm Andres
- ๐ Iโm interested in ...
- ๐ฑ Iโm currently learning ReactJS, React NAtive, VueJS, Vuex.
- ๐๏ธ Iโm looking to collaborate on what ever I can be useful :)
- ๐ซ How to reach me [email protected]
react-photogram's Introduction
react-photogram's People
react-photogram's Issues
Suggestions
howdy ๐ค
finally got around to taking a look and I must say, the code structure looks vaguely familiar ๐ looks good though! only a few things I wanted to point out. I'm not totally sure what you intend on doing with this or how far you're planning on going, but off the top of my head, here are a few things (feel free to ignore, of course!):
- I'm seeing most everything is hardcoded styles (which makes total sense, most of my side stuff is the same). just noting that moving some of the shared styles and things (like font sizes, colors, margin sizes, etc.) to a common
styles
folder/file sooner than later will help adding to it in the future. I know this from experience ๐คช - related: I see most everything is set up for desktop view (which also makes sense). but similar to the above, establishing some of those mobile view styles sooner than later will save you some headache later on - unless you don't intend on doing mobile, which is totally fine too!
- I noticed uploading an image isn't tied to a user? (at least that I could find). that might be good - if you have users, you might as well track who uploaded it and then you could display the person who added the image (or at least the email for now) and then have the ability to do things like see all images from a user, or prevent deletes from a different user.
- I see you're using
<i>
tags for the icons - I know bootstrap and some libraries use that to stand for icon but<i>
is generally for italicized text (or otherwise text that should standout). I recommend moving these to be eitherdiv
s orspan
s to be a bit more semantically correct - you could also move those common icon buttons to a separate component and pass in aninline
prop ๐ something like:
// CloseIcon.tsx
const CloseIcon = ({ inline, ...props }) => (
inline
? <span className='icofont-bin' />
: <div className='icofont-bin' />
)
or you could take it further and make an Icon.tsx
with a name
prop that'll map to either ...-bin
or ...-close
, etc.
but, that's getting a little nitpicky ๐
it looks good and works well from my playing around with it ๐
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.