לקחת על עצמך אתגר מנטור בפרונטאנד | רכיב כרטיס תצוגת מוצר תגובתית
דרג סרטון זה
התחבר כדי לדרג
תיאור
Today, I'm taking on a popular Frontend Mentor challenge. We'll look at doing everything from downloading the files to putting the challenge together with HTML & CSS, and finally putting it on GitHub and getting it online using Netlify.
If you're thinking of signing up for Frontend Mentor PRO account, you can get 10% off with the code KEVINPOWELL10
🔗 Links
✅ The project I’m working on: https://www.frontendmentor.io/challenges/product-pre...
✅ My finished code: https://github.com/kevin-powell/product-preview-card...
✅ Live server extension: https://marketplace.visualstudio.com/items?itemName=...
✅ How to use heading levels (h1 - h6): https://youtu.be/NexL5_Vdoq8
✅ Josh Comeau’s CSS reset: https://www.joshwcomeau.com/css/custom-css-reset/
✅ Custom Properties in-depth playlist: https://youtu.be/PHO6TBq_auI
✅ More on visually-hidden: https://www.scottohara.me/blog/2017/04/14/inclusivel...
✅ More on :is(): https://youtu.be/McC4QkCvbaY
✅ More on the picture element: https://youtu.be/Rik3gHT24AM
Some links may be affiliate links. When you click on these links and make a purchase, we may receive a small commission at no additional cost to you. This helps support my work and allows me to continue providing valuable content. I only recommend products and services I use myself.
⌚ Timestamps
00:00 - Introduction
00:34 - What we’re starting with
02:18 - Setting things up
05:34 - Writing the HTML
16:30 - Responsive Mode
17:30 - CSS Reset
20:00 - Setting up the custom properties
23:33 - Getting the fonts
25:33 - General styling
28:54 - Styling the flex-group class
30:07 - Styling the product content
39:58 - The prices
44:56 - The button
50:28 - The button icon
54:50 - The desktop version
56:45 - Changes images with the picture element
59:15 - Fixing the layout at large sizes
1:01:52 - Putting our project online with GitHub and Netlify
#css
--
Come hang out with other dev's in my Discord Community
💬 https://discord.gg/nTYCvrK
Keep up to date with everything I'm up to
✉ https://www.kevinpowell.co/newsletter
Come hang out with me live every Monday on Twitch!
📺 https://www.twitch.tv/kevinpowellcss
---
Help support my channel
👨🎓 Get a course: https://www.kevinpowell.co/courses
👕 Buy a shirt: https://teespring.com/stores/making-the-internet-awe...
💖 Support me on Patreon: https://www.patreon.com/kevinpowell
---
My editor: VS Code - https://code.visualstudio.com/
---
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.
Twitter: https://twitter.com/KevinJPowell
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell
---
And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!