Build a responsive website in React using Styled Components - Intermediate React Project

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • In this episode you will see how to build a website in React.js using styled components. You can learn how to create a smooth scroll effect, react router, carousel and a responsive layout.
    0:00 - Introduction
    1:37 - Start
    3:05 - Packages
    3:50 - Global styles
    8:05 - Components
    9:18 - App.js and Router
    11:03 - Hero section
    15:03 - Fonts
    16:14 - Navbar
    23:59 - Features
    26:43 - Content section
    31:10 - Carousel
    34:58 - Finishing up
    LinkedIn: / aldarwizard
    Patreon: www.patreon.com/user?u=62764356
    Github: github.com/itSatoriCode/react...
    ******************************************************************
    Find more about framer motion here: www.framer.com/motion/
    **************************************************************************************
    Learn Styled Components here: • Styled Components in 1...

Комментарии • 68

  • @thatsalot3577
    @thatsalot3577 Год назад

    this video taught me more about how to actually use styled components in a project instead of a lot of those half baked tutorials whose code don't scale up at all.

  • @Versole
    @Versole Год назад +5

    Guys new version of react replaces to and exact component = {Home} to element={}

  • @abdulkadirmete1198
    @abdulkadirmete1198 2 года назад

    I think best styled components video I have ever seen.

  • @julian_pp
    @julian_pp 2 года назад +1

    Thank you, I love this short tutorials! Subscribed

  • @emmanuelfabiani8435
    @emmanuelfabiani8435 2 года назад

    Great Job. Really impressive. Well done!

  • @pratikbankar4757
    @pratikbankar4757 2 года назад +1

    You are awesome. This is a content worth subscribing. Please keep making such wonderful content.

    • @aldarsatori7764
      @aldarsatori7764  2 года назад

      Thanks for your comments, it's really motivating!

  • @andrejkling3886
    @andrejkling3886 2 года назад +2

    Excellent tutorial… thank you

  • @abrarfahim64
    @abrarfahim64 2 года назад

    You have done a great job

  • @mathiasmuniz8453
    @mathiasmuniz8453 2 года назад

    Very good tutorial!

  • @jesustzinon
    @jesustzinon 2 года назад +2

    Nice tutorial bro, you winned another sub

    • @aldarsatori7764
      @aldarsatori7764  2 года назад

      Thanks for subscribing, there will be more projects!

  • @BlackishFam
    @BlackishFam Год назад

    earned a follower...really impressive

  • @mathis-meth4229
    @mathis-meth4229 Год назад

    i liked your video and made it 1K. Feels great!

  • @ATIWatchReviews
    @ATIWatchReviews 2 года назад

    love the react vids this is great

  • @jjorer2030
    @jjorer2030 Год назад

    great work

  • @mrprashant8144
    @mrprashant8144 2 года назад +2

    Keep teaching.... Subscribed

  • @mrtasty5261
    @mrtasty5261 2 года назад

    Bro thanks for your time

  • @ol1175
    @ol1175 2 года назад +2

    Wow super one ☝️

  • @safalthapa4795
    @safalthapa4795 Год назад

    thank you

  • @HuyNguyen-fq2pe
    @HuyNguyen-fq2pe 2 года назад +1

    Love this video- i have a question tho hopefully you can help- im using react router dom v6 and in Navbar.js it is not rendering any of the pages from the navbardata.js do you have any insight?

  • @georgegeorgio70
    @georgegeorgio70 Год назад

    Great video ! subed, liked and please more!! :) love u bro

  • @juanfranciscogarciatrejo4816
    @juanfranciscogarciatrejo4816 2 года назад +1

    Nice website, I´m trying to learn react for the frontend and flask in the backend. This helps me a lot. Although I get an error with the navbar when I click on "About". It shows me this error: TypeError: Cannot read properties of null (reading 'scrollIntoView'). Thanks for the hardwork and hope you can help me.

  • @PriXss
    @PriXss Год назад

    Great Video, helped me so much in learning new React skills. Anyway i have a question i cant figure out alone it seems.
    In the Content Section, where the colors change and the text changes from left to right, the section with the animated svg´s: How can i configure seperate Linking in the buttons? How can i give the buttons seperate addresses to skip to, somehow the "linkTo" wont do what it should do and i cant imagine a different solution. Any ideas? Thank you so much anyway

  • @jousufjacob8251
    @jousufjacob8251 Год назад

    nice job

  • @thecoder2441
    @thecoder2441 5 месяцев назад

    Thanks for the video. Where did you get the vector images for the Hero Data?

  • @JuNe-rm6pk
    @JuNe-rm6pk 2 года назад

    Awsome! 👏 ✌ 👍

  • @danneytee
    @danneytee 2 года назад +1

    hey buddy, im interested in how you setup your global style. can you explain a little?

  • @CirrusMJ
    @CirrusMJ 2 года назад +1

    Absolutely love the videos man. Question though on this one - I want to have my nav links centered on the screen, not aligned to the right side in full desktop view. I have gone through every single parameter I can imagine in each folder to try and find what is making them align to the right and cannot seem to find it! I even followed the same coding from your other intermediate react tutorial where they are aligned in the center and all of my navbarstyles data matches completely, and it's still aligned to the right! I'm assuming this is probably a very easy fix, so any help you can give me would be greatly appreciated!

    • @aldarsatori7764
      @aldarsatori7764  2 года назад +2

      Hey, thanks for the feedback. The trick is margin-left:auto property on the line 82 in NavbarStyles.js
      Basically what it does is pushes everything to the left. In my other video I had a button on the right side of the navbar that also had a margin-left: auto, that pushed everything to its left, therefore centering those navlinks.
      To solve the problem for this specific project you need to add:
      > li:last-child {
      margin-right: auto;
      }
      after line 84 in NavbarStyles.js
      This video will be of help ruclips.net/video/Azfj1efPAH0/видео.html&ab_channel=KevinPowell
      It explains how to use margins well.

    • @CirrusMJ
      @CirrusMJ 2 года назад

      ​@@aldarsatori7764 holy christmas tree that response time was impressive! lol
      I actually removed the original text of the navlogo, changed the navicon to my own image but had to make it bigger so it would look like a normal size, so just doing what you said puts the navlinks slightly off center to the right - but, I am able to now adjust the "margin-left" parameter by a pixel value in order to get it perfectly centered on the screen.
      I'm sure there's a way to do this automatically which I'll try and see if the video you referenced might explain it, because while I use the pixel value to center it, it loses it's responsiveness until it transitions to mobile.
      Since my company logo is just text, I guess I could install the custom font into the template and go back to just using the text which should keep it centered perfectly without the additional sizing of the navicon.
      Either way, thank you SO much! I look forward to learning much more from your videos!

  • @deepak8586
    @deepak8586 2 года назад +1

    Sugoii!!

  • @takudzwakanonhuwa9741
    @takudzwakanonhuwa9741 Год назад

    Excellent vid. But mine is not displaying anything else except for the navbar and footer. I can't seem to find the solution

  • @Easy_Talent
    @Easy_Talent 2 года назад +2

    Keep up. bro

  • @eduardoguedes6760
    @eduardoguedes6760 Год назад

    good work!!!! but how can i use buttonLabel: 'View Project' redirect to other link/page

  • @barkaouimohamed
    @barkaouimohamed 2 года назад

    You are awesome

  • @nezarsaababouhamdan1841
    @nezarsaababouhamdan1841 2 года назад

    where u got the deal.avg and other svg files ??

  • @personzen8028
    @personzen8028 2 года назад +1

    great content, unfortunately I'm not yet able to understand every single line but i can see the light at the end of the tunnel. +1 sub

    • @aldarsatori7764
      @aldarsatori7764  2 года назад +1

      Hey person, I know this website maybe a lot of code. I would say this tutorial is targeted for people who have some react knowledge. I will be releasing some short videos regarding react as well, e.g. how to build a modal, react hooks, styled components and scss.

    • @personzen8028
      @personzen8028 2 года назад

      @@aldarsatori7764 best of luck, keep going

  • @astyartelgaming5015
    @astyartelgaming5015 2 года назад

    Hey , I am currently enrolled in a bootcamp - we just completed react , although i could follow along would relly appreciate it if you could make this video with regualar javascript.

  • @1000guerra
    @1000guerra Год назад

    did you create this design or did you get the figma ready?

  • @kayalvr3607
    @kayalvr3607 2 года назад +1

    getting this error when trying to build the carousel
    ./src/components/Carousel/CarouselStyles.js
    Module not found: Can't resolve 'react-slick' .seems like problem with react-slick. anybody experienced it.

    • @aldarsatori7764
      @aldarsatori7764  2 года назад

      Hey, this problem can mean a lot of things. However, my guess is try to run 'npm uninstall react-slick' and then 'npm install react-slick'

  • @Leo-es3fq
    @Leo-es3fq 2 года назад

    how can i build multiple modals for auth in react? (Register modal , login modal , forgot password modal )

    • @aldarsatori7764
      @aldarsatori7764  2 года назад +1

      Hey, I will have a separate tutorial about a building a modal. Stay tuned!

    • @Leo-es3fq
      @Leo-es3fq 2 года назад

      @@aldarsatori7764 Waiting Impatiently

  • @vaniad555
    @vaniad555 2 года назад

    Thank you for the great tutorial, I am getting a weird bug, checked all info and nothing Can't import the named export 'Children' from non EcmaScript module (only default export is available), my guess is a have to delete a dist file that was previously created the error ../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs., in any event, any help would be appreciated.

    • @aldarsatori7764
      @aldarsatori7764  2 года назад +1

      Hey, are you using TypeScript any chance, or do you have a custom WebPack. If you configured your own WebPack try adding
      {
      type: 'javascript/auto',
      test: /\.mjs$/,
      use: []
      }.
      I think the problem is your project cannot read .mjs files for some reason(there could be various reasons)

    • @vaniad555
      @vaniad555 2 года назад

      @@aldarsatori7764 not in this project but it might be webpack I confined in typescript this is where the dist file is coming from and also in visual code I might have enabled TS something lol that now reads each build as a typescript. I tried configuring already:
      const createExpoWebpackConfigAsync = require('@expo/webpack-config');
      // Expo CLI will await this method so you can optionally return a promise.
      module.exports = async function (env, argv) {
      const config = await createExpoWebpackConfigAsync(env, argv);
      // Allow named imports from CJS into ESM modules
      config.module.rules.push({
      type: 'javascript/auto',
      test: /\.mjs$/,
      use: []
      });
      return config;
      };

    • @vaniad555
      @vaniad555 2 года назад

      @@aldarsatori7764 Yes, copy/paste fixed the problem I just used your package.json, next.js 12 came out ( I got no issues there) and it just makes our lives easier, Thank you again!

  • @anyanwuemeka7985
    @anyanwuemeka7985 Год назад

    Great for lazy programmers who'd love to just copy and paste your repo. I love coding along.

  • @casualtrips9571
    @casualtrips9571 2 года назад

    Could you build a nft project website with a minter.

    • @aldarsatori7764
      @aldarsatori7764  2 года назад

      Sounds interesting, I might take a look into it and build it =)

  • @raghunathprabhakar2166
    @raghunathprabhakar2166 2 года назад +1

    commenting for the algorithm

  • @sigmagang
    @sigmagang Год назад

    11:15

  • @jacksto123
    @jacksto123 2 года назад +1

    Sponsored by me. Hahahaha

  • @henriquegarcia8664
    @henriquegarcia8664 2 года назад

    You didn't show the Navbar styling, lol, otherwise the video would be perfect

    • @aldarsatori7764
      @aldarsatori7764  2 года назад

      Hey, navbar component had quite a bit of things going on. I will upload a separate 40 minute video that will explain exactly how it works :)
      Stay tuned!

  • @bhopalinaman
    @bhopalinaman 9 месяцев назад

    too much fast & not explained properly its seems complicated for a beginner like me please try to go slow & try to explain properly I watched almost the full video but still not able to understand

    • @laponiec
      @laponiec 5 месяцев назад

      I highly doubt you would ever find a proper tutorial for a responsive website. They are all the same, the people making them DO NOT understand, that explaining what their CSS is doing is crucial for others wanting to learn it to understand what is going on. Also, a good tutorial should show a change in the code and the reflection of that change in the behavioiur/look of the webiste. Here the fella i just typing lots of gibberish, never opening the webiste and thinks he is doing a good job. Massive thumbs down.