Build a Simple Website with HTML, CSS, JavaScript - Course for Beginners

2024 ж. 16 Мам.
496 598 Рет қаралды

Improve your skills in JavaScript, HTML, and CSS by building a social media dashboard with a dark/light theme. Jess, who runs the popular Coder Coder KZhead channel, will guide you through a beginner Frontend Mentor challenge.
✏️ Course created by @TheCoderCoder
Resources:
🔗 Responsive Design for Beginners! coder-coder.com/responsive/
🔗 Source code on GitHub: github.com/thecodercoder/fem-...
🔗 Challenge on Frontend Mentor: www.frontendmentor.io/challen...
🔗 Andy Bell: Create a user controlled dark or light mode -- piccalil.li/tutorial/create-a...
⭐️ Contents ⭐️
Part 1
⌨️ (0:00:00) Intro
⌨️ (0:01:26) Functional requirements of design
⌨️ (0:11:31) Accessible form controls
⌨️ (0:15:37) Update CSS custom properties with JS
⌨️ (0:23:39) Screen reader-only text
Part 2
⌨️ (0:29:10) Creating GitHub repo
⌨️ (0:34:33) Set up SCSS and JS files
⌨️ (1:09:55) Set up Gulp workflow
Part 3
⌨️ (1:31:24) Studying the design
⌨️ (1:37:10) Building out the top bar
⌨️ (1:51:42) Using accessible markup
⌨️ (2:04:55) Styling top bar
⌨️ (2:23:26) Styling toggle and make accessible
Part 4
⌨️ (3:24:56) What is BEM? Planning out the class names
⌨️ (3:36:46) Adding the markup and the SCSS selectors for the cards
⌨️ (3:47:30) Styles for card
⌨️ (4:16:41) Layout for the card grid with flexbox, then CSS grid
⌨️ (4:33:26) Styling the top bars on the cards
⌨️ (4:49:36) Bottom cards markup and styles
Part 5
⌨️ (5:33:54) Changing the toggle based on comments
⌨️ (5:54:42) Use system preferences to load light or dark theme
⌨️ (6:18:24) Build the toggle logic to manually change light/dark theme
⌨️ (6:43:34) Save toggle settings in local storage
🎉 Thanks to our Champion and Sponsor supporters:
👾 davthecoder
👾 jedi-or-sith
👾 南宮千影
👾 Agustín Kussrow
👾 Nattira Maneerat
👾 Heather Wcislo
👾 Serhiy Kalinets
👾 Justin Hual
👾 Otis Morgan
--
Learn to code for free and get a developer job: www.freecodecamp.org
Read hundreds of articles on programming: freecodecamp.org/news

Пікірлер
  • Thanks so much for working with me on this video course! Hope it's helpful to people :D

    @TheCoderCoder@TheCoderCoder Жыл бұрын
    • u are professional coder, why didnt u make it in atmost lets say with explanation in 2 hours, Why 7 hours for simple single page??

      @mirjalol_shamsiddinov@mirjalol_shamsiddinov Жыл бұрын
    • Been following your channel for a long time, so happy to see you hear!

      @sidenote1459@sidenote1459 Жыл бұрын
    • @@mirjalol_shamsiddinov maybe teaching amateurs takes more time than doing on own.

      @vardhan8741@vardhan8741 Жыл бұрын
    • @@mirjalol_shamsiddinov 7 hrs is about 1 day of work, which is a pretty reasonable amount of time to build 1 webpage, from my work experience. Also, in addition to that, I make sure to take the time to explain all my thought processes and problem-solving. My goal isn't to just show you *what* I do so you just copy whatever I'm doing on screen, but *how* I do it-- that way you can learn and apply those principles in future projects. It does take longer, but I think it's worth it to be thorough. Hope this helps explain why it's this long!

      @TheCoderCoder@TheCoderCoder Жыл бұрын
    • @@TheCoderCoder yes, cool. Now i got u

      @mirjalol_shamsiddinov@mirjalol_shamsiddinov Жыл бұрын
  • I have learned so much from you guys in college that i decided i was gonna donate a small amount once i start earning! Kudos😄

    @ashwatirao3036@ashwatirao3036 Жыл бұрын
    • You did it. Good job.

      @abhisheksingh-np8yi@abhisheksingh-np8yi Жыл бұрын
  • Love seeing the actual process of googling and finding the right approach. Feels more immersive.

    @so_val@so_val Жыл бұрын
  • This is awesome seeing you work through real world problems in real time and not running some canned presentation that has been de-bugged. Good job Jess and strong work.

    @bryanlittle4647@bryanlittle46478 ай бұрын
  • I thoroughly enjoy watching informative videos that teach me how to approach and organize a project before beginning its construction. Your work is highly valued and appreciated. Thank you very much! 😊

    @mustafawael8617@mustafawael8617 Жыл бұрын
  • This is absolute gold! I'm only an hour in, but THANK YOU for taking us through your thought process for investigation and breaking down the problem and project setup. So so so valuable.

    @joelwalkley3902@joelwalkley3902 Жыл бұрын
    • Glad this was helpful for you!

      @TheCoderCoder@TheCoderCoder Жыл бұрын
  • As a PCB designer and C/C++ dev who only really works on WebGL/shaders when I get pulled into web projects, this was very useful for me to see how the other parts of a project are organised and compiled. My last actual web project where I added more than a canvas element in the html was over 10 years ago :)

    @Stabby666@Stabby666 Жыл бұрын
    • Which career is better now!? 😂

      @haiangtran2036@haiangtran20368 ай бұрын
  • Plain HTML, CSS and JS? What a breath of fresh air

    @illegalsmirf@illegalsmirf Жыл бұрын
  • Such a wonderful teacher! You make coding very interesting. I’m now one of your subscribers. Thank you so much.

    @emmanuelbinen6554@emmanuelbinen6554 Жыл бұрын
  • After working on it little by little every day I finally finished! Had a lot of fun and learned a lot on the way. Not the biggest fan of SCSS but always good to learn new things!

    @luissalazar8996@luissalazar899611 ай бұрын
  • The process is real, lol. I've been coding for about 6 years but since I've become used to frameworks I actually have to go back and review best practices for html and the like (I expect things to change, so I step back and learn again). This video is so refreshing :) And heads up to all the new coders out there - this process doesn't stop. Get used to always being a student in research mode (not a bad thing). Edit: I do her beginner thought process in Trello boards - maybe that's overkill? Having an in-project doc seems simpler...

    @danielleivy8180@danielleivy8180 Жыл бұрын
    • When you work with frameworks, SDks you forget core code:) same happens to me. Hahahahahaha

      @Kosseron@Kosseron5 ай бұрын
  • Stayed all the way from start till the end and man what a great video, just wanted to see how a developer does all the hard work when they get stuck. Very useful to see your thought process and the solutions that you made using internet. Overall great 7 hours for my coding career.

    @durwankurnaik1471@durwankurnaik1471 Жыл бұрын
    • Awesome, glad this was helpful!

      @TheCoderCoder@TheCoderCoder Жыл бұрын
  • Just wanted to take a minute while being 2 hours into this project... (So far so good!) Just to thank you for putting in the time on making this project and this video. I just wish I could recommend a thing, but it's been perfect so far. I liked how you searched for things, explained the short hands. You've been such a blessing. Thank you so much. I hope you keep these up. You've been my favorite tutor, professional, coder, master... the list goes on and on. 🙌🏼❤

    @keithrincon@keithrincon3 ай бұрын
  • As a designer with html/css coding abilities, I benefit from her channel, this is another great video thank you Jess and freeCodeCamp!

    @AkinsRealm@AkinsRealm Жыл бұрын
    • Thanks so much for watching this and following my channel!

      @TheCoderCoder@TheCoderCoder Жыл бұрын
    • @@TheCoderCoder Thank you! 🎉

      @AkinsRealm@AkinsRealm Жыл бұрын
  • You guys read minds now🥺🥺

    @Salano_Lolkirik@Salano_Lolkirik Жыл бұрын
    • Yeah, we read minds

      @Kidoshe_Amikuranyakish@Kidoshe_Amikuranyakish Жыл бұрын
  • Coder Coder is such a good teacher😄

    @mahad7966@mahad7966 Жыл бұрын
    • Thanks for watching!

      @TheCoderCoder@TheCoderCoder Жыл бұрын
  • i really like her real no nonsense way of teaching. shes really straight to the point and legit. i also really like the chill and relaxed style paired with the chill lofi music. super nice. too many tutorials hurt my ears and head just based on their style lol this one is chill tho. im an hour in and i really appreciate the slow pace as well. I don't know anything about web dev except what html, css, and javascript are. I've done game dev before tho. so the slow pace is really nice. i pause and look things up when she mentions things I dont understand

    @bonsaipropaganda@bonsaipropaganda10 ай бұрын
  • Made it the end! Great job Jessica! Enjoyed and learned: success.

    @kylecollie7813@kylecollie7813 Жыл бұрын
  • I never understand Css , now that i watch this i begin to understand how css properties work, thanks Jessica i have learn alot from...Love from India😊😊

    @reubenareang1817@reubenareang18174 ай бұрын
  • Another great course from Jess, thank you very much.

    @alexchinchay7600@alexchinchay7600 Жыл бұрын
  • Was searching for such a course yesterday. Thank you

    @KrishnaNinama@KrishnaNinama Жыл бұрын
  • Amazing video. Nowhere near done yet but I’m sure will be a great template for the project I’m working on. More of a back-end dev so your approach with functions and mixins seems like a totally sensible approach to me.

    @stnhld2841@stnhld28417 ай бұрын
  • The beautfy of this tutorial is the thought process and how it is in production(how devs actually operates).

    @solaraproject3614@solaraproject36146 ай бұрын
  • thank you for doing this! I followed all the way, took 4 days, learned a lot!

    @raviteja9298@raviteja92984 ай бұрын
  • Your work is amazing your teaching approach incredible keep going, really appreciated your work

    @gabrielgomesmabiala6707@gabrielgomesmabiala6707 Жыл бұрын
  • Thank you a lot - the most valuable thing in such a lesson that you can see real-time develpment process - to see different difficulties and how they are resolved. Not even so much the solutions themselves, but what their search looks like. It's just great! I'm just studying the frontend now, but let me make a couple of observations. Regarding the toggle - I rather percept it as a regular button (press to activate dark mode, and press to deactivate) - like a button on a flashlight. In the radiobutton case it must be two visible labels here without any options. And if its a button - the button label have to do the same work - activate/deactivate the dark mode - is the most logical behavior of this element on the page. So I implemented it this way - it could be a inside pushed outside by "position: relative" or it could be a for - that's simplier to stylize. In JS it seems to be better realization it you keep and pay attention whether the user has ever changed the color theme mannually or not: if yes - in the future we ignore the system settings, if not - we always follow the operating system. Also it seems for me that every card in the page should be not just , but rather a link - if it's hoverable - it's for sure clickable and also have to be navigated by tab (replacing by is a better decistion then inject "tabindex" into every div manually). Thanks again for such a valuable video tutorial!

    @user-kr9bc6tu8w@user-kr9bc6tu8w Жыл бұрын
  • There is actually a VScode extension that converts px to rem as you write css/scss. it's called: px to rem & rpx & vw (cssrem) by cipchk

    @twistedmetal7882@twistedmetal7882 Жыл бұрын
  • Awesome video. You demonstrated that it is okay to not know everything about a project. You did well at using the net to find credible solutions and not only copy and paste but study how each code works.

    @nigelbowie9957@nigelbowie9957Ай бұрын
  • In 15 minutes, I learned so much about the process of research and what resources can be helpful. Can't wait to finish this course, thank you!

    @ridingcoach3712@ridingcoach3712 Жыл бұрын
  • Whoa, feels good for jess to see her in this great channel ❤

    @jayeshlale1999@jayeshlale1999 Жыл бұрын
  • thanks for sharing! it was refreshing to watch you process. cheers

    @NkosiLion@NkosiLion3 ай бұрын
  • Jess is the best, I learn more from her than my teachers, I know about Git thanks to her

    @El_Bartto@El_Bartto Жыл бұрын
  • I followed all the way - super helpful - thanks!

    @geeboug@geeboug3 ай бұрын
  • Yeeiii, coder coder now I work as a programmer, since a year ago. Thanks for your videos!!❤

    @blasm1713@blasm1713 Жыл бұрын
    • Congrats!!

      @TheCoderCoder@TheCoderCoder Жыл бұрын
  • Thanks so much for the lesson!, see you again today.

    @BorisDiRocco@BorisDiRocco Жыл бұрын
  • that was something I learned a lot from!!! Thank you very much 💜💜💜

    @AhmadMaartmesrini@AhmadMaartmesrini3 ай бұрын
  • i was looking for an explanation like that for a long time

    @islamhe530@islamhe530 Жыл бұрын
  • Thanks for the great Tutorial, Jess and FCC ❤

    @maxfrischdev@maxfrischdev Жыл бұрын
  • A very interesting video about the creation of a website using HTML, CSS, and JavaScript, well explained. Congratulations!

    Жыл бұрын
    • Thanks for watching!

      @TheCoderCoder@TheCoderCoder Жыл бұрын
  • Love your teaching ❤❤

    @feranmiadegbola2921@feranmiadegbola2921 Жыл бұрын
  • Best method of teaching 👍👍

    @Qasimyousaf-zw5kw@Qasimyousaf-zw5kw Жыл бұрын
  • ❤️❤️❤️❤️❤️❤️ really enjoyed your class and the music... Thanks.. big fan

    @umehmoses8118@umehmoses8118 Жыл бұрын
  • You guys are literally theee best!!!

    @metalheadgamers6376@metalheadgamers6376 Жыл бұрын
  • I am 10 minutes in and LOVE the format of troubleshooting a problem or request like this from the bottom up. Wow!

    @EricsWormPlayground@EricsWormPlayground11 күн бұрын
    • I am an hour in and as a newbie intermediate I really wish she just built it using normal css vs the large scale scss. Love how she teaches as she does things. Note to self: learn scss asap.

      @EricsWormPlayground@EricsWormPlayground10 күн бұрын
    • 92 minutes in and she just finished the scss setup. Really wish she hit the project as a lower level coder would have. It was a beginner challenge wasnt it?

      @EricsWormPlayground@EricsWormPlayground9 күн бұрын
    • 3.5 hours in, and I am pretty confident she used advanced large site management skills on a beginner single site page. It’s helpful seeing her methods

      @EricsWormPlayground@EricsWormPlayground9 күн бұрын
  • Nice job!

    @grotsunfull@grotsunfull Жыл бұрын
  • Awesome course. Thanks a lot for it!

    @johnnymoore948@johnnymoore948 Жыл бұрын
    • Thanks for watching!

      @TheCoderCoder@TheCoderCoder Жыл бұрын
  • Insane, thank you for your effort and you time !

    @fuesto@fuesto Жыл бұрын
    • Thanks so much for watching!

      @TheCoderCoder@TheCoderCoder Жыл бұрын
  • i am at the 5:02:29 and being this far i think it would have been a bit easier if you wrap both section inside a single container so that it would be easy while developing and inside those section h2 tag and cards tag and other things. In addition to this border-top should have been done using pseudo element for all card not only for Instagram that way if again some card have gradient border-top then it can be easily managed as background with height can be used for gradient in pseudo element

    @rbedson8965@rbedson896511 ай бұрын
  • Great video , many thanks for your effort 🙏💚

    @naweendanushka3358@naweendanushka33586 ай бұрын
  • Thank you so much it was educational and also fun❤❤

    @manelslama4743@manelslama47435 ай бұрын
  • Thank you Great Content. Will you be Hooking up with backend API's next to make it fully functional?

    @rayturner1490@rayturner1490 Жыл бұрын
  • I really need this thank you very much

    @hamzaalbabeli5543@hamzaalbabeli5543 Жыл бұрын
  • really excellent thanks 👍

    @mohammedmohammedhassanseli1981@mohammedmohammedhassanseli1981 Жыл бұрын
  • Done. Thanks for the tutorial)

    @dancingstar1852@dancingstar1852 Жыл бұрын
  • This course is great !!!!

    @serignembackecoly5916@serignembackecoly5916 Жыл бұрын
  • This is amazing.

    @defo-codeakata@defo-codeakata Жыл бұрын
  • In the gulp file where you are importing sass, write const sass = require('gulp-sass')(require('dart-sass')); instead of const sass = require(gulp-sass)(require('sass') then everything will work like you set up in the beginning, and no need to install sass and the math library

    @MichaelHoumann@MichaelHoumann10 ай бұрын
    • Can you pls help with the error I get "ReferenceError: primordials is not defined" when I run gulp in the terminal?

      @CamaguNcoso@CamaguNcoso5 ай бұрын
  • Thanks!

    @chipmasteri93@chipmasteri937 ай бұрын
  • @TheCoderCoder you are back love your content and sass Course

    @mukeshodhano4094@mukeshodhano4094 Жыл бұрын
    • Thanks so much!

      @TheCoderCoder@TheCoderCoder Жыл бұрын
  • Starting out it looked really promising and she seems like a great mentor. When I started installing npm packages. Hell started. I Got 12 high vulnerability warnings. Some were depricated so i unfortunatley had to stop at that point after hours of debugging. This is rough on a beginner having to deal with all that before beeing able to code. Or in my case giving up on this tutorial.

    @pirlaikz@pirlaikz6 күн бұрын
  • Another marathon course 👍

    @hue_sane@hue_sane Жыл бұрын
  • Great tutorial for beginners, myself being one😅, thanks a lot! I have a doubt though, you haven't considered users with their OS theme set to custom, instead of Light or Dark🤔.

    @pranshulgupta7514@pranshulgupta751411 ай бұрын
  • Thank you again, freeCodeCamp!

    @sounmanhong6601@sounmanhong6601 Жыл бұрын
  • 💓💓 loveable & learnable 💓💓

    @kumarsanjay95@kumarsanjay95 Жыл бұрын
  • I like the dark-light toggle.

    @cbbcbb6803@cbbcbb68034 ай бұрын
  • Thank you for the course! Although I got stuck while installing pachages: 9 packages required funding and I got an error : UnauthorizedAcces while running gulp. Do we have to contribute to all the sources? Thank you!

    @Irusssha@Irusssha Жыл бұрын
  • Great job freecode 👍👍👍👍👍

    @RahulKumar-md5ml@RahulKumar-md5ml Жыл бұрын
  • Great tutorial ! I solved the gradient border of instagram card in much simpler way using border image without any pseudo elements

    @esraaabuallah@esraaabuallah2 ай бұрын
  • Hey if you rotate the toggle button I think this may help for dark mode

    @a.majidawan5974@a.majidawan5974 Жыл бұрын
  • omg didn't expect her here I'll definitely watch this one

    @rinzler749@rinzler749 Жыл бұрын
  • Excellent

    @Mariio-@Mariio- Жыл бұрын
  • Great Video. Thank You..

    @shahsuresh75@shahsuresh75 Жыл бұрын
  • My fav cod coder🎉🎉❤

    @xxxTentacion-UI8@xxxTentacion-UI8 Жыл бұрын
  • Hello and thanks for the demo. Current status of npm issue is: 11 vulnerabilities (3 high, 8 critical) What can we do with it now?

    @guy1407@guy1407 Жыл бұрын
  • Thought it would be a good practice building a website with js for a beginner I didn't know I need to learn Sass as well 😕 Appreciate the work though

    @wellumm@wellumm9 ай бұрын
  • Can u give a road map of graduating from CS ? Which topics are usually learn in this phase? Which skills and languages should we learn to complete on our own!?

    @s.m.2607@s.m.2607 Жыл бұрын
    • If you cannot get even a curriculum from any college of university, then how are you going to manage your studying on your own?

      @aammssaamm@aammssaamm Жыл бұрын
    • @@aammssaamm bro the curriculum is available on online for every uni But how they are completing it, which books they are completing, which approach they are taking, how many projects Etc etc

      @s.m.2607@s.m.2607 Жыл бұрын
    • @@s.m.2607 That's still just a google search task. You may want to look for a simpler career.

      @aammssaamm@aammssaamm Жыл бұрын
  • Do I have to take this course after Dave Gray's Html and Css?

    @rahmanmusah4470@rahmanmusah44708 ай бұрын
  • Looking at words so long they look wrong is something that happens to me ALL THE TIME at my job 🤣

    @zakuguriin4521@zakuguriin45213 ай бұрын
  • It is preferable to simply set font-site to 62.5% of the default font size, which is 16 px, making 1 rem equivalent to 10 px. No further functions should be written.simply suggestions :D

    @devdev513@devdev513 Жыл бұрын
    • That does work, but I wouldn't recommend it nowadays, as there are better alternatives out there. Search for Josh Comeau's article called "The Surprising Truth About Pixels and Accessibility" that talks about "The 62.5% trick". I highly recommend his blog 🔥

      @TheCoderCoder@TheCoderCoder Жыл бұрын
  • Hello fcc, thank for best computer science courses. I am wondering about space exploration courses with computer science? Do you have plan about that?

    @kokoaung2914@kokoaung2914 Жыл бұрын
  • had fun trying out this project and understanding a developer's workflow. The resources introduced in this video will be surely helpful in the future. Thank you again @freeCodeCamp and @CoderCoder for the guide!

    @abhirajsinha3186@abhirajsinha318611 ай бұрын
  • Thank you! Very informational vid. Just one question if anyone in the comments knows the answer. When I open the github repository in vsc I dont get the .gitatributes file??? Am I missing something. I installed git too.

    @abigbiscuit@abigbiscuit Жыл бұрын
  • the UI is crazy

    @LoL-hv6px@LoL-hv6px Жыл бұрын
  • I need this rn and it's pop 🎉😮

    @fudgeebear03@fudgeebear03 Жыл бұрын
  • ive dived with you and forgot that the one with screen reader cannot differentiate between dark or light mode :| (not all of them)

    @MotasemAli-jn5uh@MotasemAli-jn5uh8 ай бұрын
  • I would recommend to use the gap property for spacing div elements :) agree?

    @xstrikerxdr6177@xstrikerxdr617710 ай бұрын
  • Thanks so much

    @Gc7788m@Gc7788m10 ай бұрын
  • Hello, what theme do you use in visual studio code?

    @palazzoneguiseppe8281@palazzoneguiseppe8281 Жыл бұрын
  • I can’t wait to watch this. Ok I’m gonna go to bed so I can watch this

    @bonsaipropaganda@bonsaipropaganda10 ай бұрын
  • I remember the days like 10 years ago i used to code with notepad for fun not notepad+ :) I am back end developer now, i miss css html. I am not sure if SaSs still around for css? I used to work with that, amd bootstrap.

    @Kosseron@Kosseron5 ай бұрын
  • Thark you i lke this video.

    @CharlesSmall@CharlesSmall Жыл бұрын
  • You are so cute and sweet. thank you for having awareness and zooming in so we can actually see unlike everyone else

    @Dontgo5@Dontgo5 Жыл бұрын
  • Awesome

    @surajkumarsingh4857@surajkumarsingh4857 Жыл бұрын
  • Im quite experienced in JavaScript, but i Will love to refresh it with this video! :)

    @jakubfrei3757@jakubfrei3757 Жыл бұрын
  • HELP NEEDED !!!!! when light color is selected in my window then site is not loading the default state when I check everything is good but its taking the background color style from prefers-color-scheme: dark, what might be the reason anyone knows?

    @rbedson8965@rbedson896511 ай бұрын
  • She made it on code camp finally

    @stride0812@stride0812 Жыл бұрын
  • Coder coder!!! ❤

    @TheDTVOfficial@TheDTVOfficial Жыл бұрын
  • I want to open my blogging website where I put ads and also use it for affiliate marketing. Should I build website? I want full control on my website. Plz answer and if you have any other suggestions plz reply in comment box

    @rajbeersingh3426@rajbeersingh3426 Жыл бұрын
  • 🔥🤩

    @rohulahadi3990@rohulahadi3990 Жыл бұрын
  • whats the theme called i love those colors

    @ImKaijuLive@ImKaijuLive5 ай бұрын
KZhead