Coder Social home page Coder Social logo

kevin-mwole / entertainment-web-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.12 MB

CHALLENGE: for a Netflix style media app

Home Page: https://entertainment-web-app.vercel.app/

License: MIT License

CSS 18.65% TypeScript 80.15% JavaScript 1.20%

entertainment-web-app's Introduction

Frontend Mentor Challenge- Entertainment web app

Users should be able to:

  • View the optimal layout for the app depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Navigate between Home, Movies, TV Series, and Bookmarked Shows pages
  • Add/Remove bookmarks from all movies and TV series
  • Search for relevant shows on all pages
  • Bonus: Build this project as a full-stack application
  • Bonus: If you're building a full-stack app, we provide authentication screen (sign-up/login) designs if you'd like to create an auth flow

Screenshot

My process

Built with

What I learned

This was my first time trying out Remix on a project. I really enjoyed the focus on web fundamentals, and server-side data loading. The Remix architecture means that except for the bookmarking functionality, the entire app will work with javascript disabled (or before javascript has loaded).

I also used this project to focus on working with an image-heavy site. Most of my work is normally with data-intensive applications, so images were not something I had explored in depth. I created responsive images that would serve appropriate files for the user's device. This was complicated by the images having different aspect ratios. I wanted to create a solution that would minimize layout shift but still allow the different aspect ratios. I achieved this with a combination of CSS Grid, CSS custom properties and object-fit:cover. The code was a bit more convoluted than I'd like. It's definitely a technique I'd like to refine.

I used plain cookie-based authentication for the first time too. Previously I'd always used a provider like OAuth but a simple username and password based approach was very straightforward to build.

Continued development

This was the fist time I've used vanilla CSS on a large project for a while. I splilt up the CSS by component, but I think that was not the best idea. It was good to co-locate the styles, but results in a lot of network requests to get many small individual CSS files. I plan on experimenting with integrating SASS and remix to try and mitigate some of these problems.

Remix is super fast to load a site, as everything works before the javascript has loaded and the site is hydrated. But when there's data requirements, that data fetching can take time. This impacts the lighthouse scores for the site. The benefits of Remix's data-loading architecture seems like they will only work with colocated servers and data. I used Supabase with Vercel, and so there's a fair bit of network latency making the database queries. One option would be to try out using Fly.io for hosting, as they provide long running servers, not just serverless, and their own postgres databases.

entertainment-web-app's People

Contributors

kevin-mwole avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.