Frontend machine coding - Responsive Bar Chart Component Built a responsive, animated Bar Chart component as part of machine coding practice. Key insights: 1. Bar height is calculated using a scale function based on the max value in the dataset. "(value / maxValue) * chartHeight;" 2. Chart component designed using Compound Component Pattern + Context. 3. To animate bars from 0 to target height, use a 2-phase render with requestAnimationFrame so the browser can properly trigger CSS transitions. 4. Use outline instead of border to avoid reflow. (border on hover cause layout shift) #javascript #js #web #interview #reactjs #machinecoding #frontend #js #dsa
More Relevant Posts
-
Building a functional Tip Calculator! 🧮 I’ve been focusing on combining clean UI design with interactive JavaScript logic. This project features: ✅ Real-time calculations ✅ Custom tip percentages ✅ Responsive dark-mode UI Small projects, big learnings. On to the next one! 🚀 #WebDev #JavaScript #HTML #CSS #Coding #BuildInPublic
To view or add a comment, sign in
-
🚀 Mini Project of the Day: Password Strength Checker First, I show how it works: • Checks password strength • Animated strength bar • Show / Hide password button Then, you can see the code being written in **30x speed** (HTML + CSS + JS). Goal: to improve my frontend skills and create clean, interactive UI components. #frontend #javascript #webdevelopment #vuejs #coding #juniordeveloper #uiux #learntocode #portfolio
To view or add a comment, sign in
-
💡 Small project. Big lessons. I just finished building a Calculator from scratch using vanilla HTML, CSS & JavaScript — no frameworks, no shortcuts. Here's what I practiced: ✅ DOM Manipulation ✅ Event Listeners & Logic Handling ✅ Responsive UI Design Every line of code is a step forward. .🔗 Check out the code: https://lnkd.in/gVDHMwUp #JavaScript #Frontend #WebDev #CodingJourney #BuildInPublic
To view or add a comment, sign in
-
🚀 Just built a Rock–Paper–Scissors Game with a Clean UI ✊📄✂️ A small project, but a great exercise to strengthen core front-end skills using only HTML, CSS, and JavaScript — no frameworks, no libraries. Features: • Clean and minimal UI • Emoji-based hand buttons • Randomized computer moves • Live score tracking (User vs Computer) • Instant result feedback • Fully responsive design Building small projects like this is one of the best ways to practice DOM manipulation, UI design, and JavaScript logic. Try the game here: https://lnkd.in/d4YMjAZj Would love to hear your feedback! 💻 #webdevelopment #javascript #frontend #html #css #coding
To view or add a comment, sign in
-
-
Hi everyone.... 💻 Day 18 of #30DaysCodeChallenge Today I built a Random Quote Generator using HTML, CSS, and JavaScript as part of my daily frontend practice. This project helped me strengthen my understanding of DOM manipulation and event handling in JavaScript while also focusing on clean and responsive UI design. ✨ Key Features of the Project: 🔹 Displays a random motivational quote each time the user clicks the "New Quote" button 🔹 Shows the author name along with the quote 🔹 Added a Copy Quote button to copy the quote directly to the clipboard 🔹 Designed a simple and clean UI using CSS with a gradient background 🧠 What I Practiced: ✔️ Working with arrays and objects in JavaScript ✔️ DOM manipulation using getElementById ✔️ Event listeners for button interactions ✔️ Generating random quotes using JavaScript logic ✔️ Using the Clipboard API Consistent practice like this helps improve problem-solving skills and builds confidence in frontend development. Looking forward to continuing this journey and learning something new every day! 🚀 #30DaysCodeChallenge #Day18 #WebDevelopment #HTML #CSS #JavaScript #FrontendDevelopment #CodingJourney
To view or add a comment, sign in
-
🎨 CSS Gradients — Stop Using Images for Backgrounds Most developers still use image backgrounds for gradients… But CSS already provides 5 powerful gradient functions that are faster, scalable, and responsive. Here’s a complete quick guide to CSS Gradients every frontend developer should know. 👇 If you're a frontend developer or UI designer, this will definitely help. 🚀 #css #cssgradients #webdevelopment #frontenddevelopment #webdesign #uiux #programming #coding #webdev #javascript #reactjs #developer #softwaredeveloper #codinglife #designinspiration #uidesign #htmlcss #frontend #100daysofcode #techcommunity #learncoding #codingtips #webperformance #modernweb
To view or add a comment, sign in
-
Day 16 of my JavaScript journey 🚀 Built a Drag and Drop Interface using HTML, CSS, and JavaScript. Users can drag items and drop them into different containers with smooth interaction. This project helped me practice: • Drag and Drop API • Event handling • DOM manipulation • Building interactive UI 🔗 Live Demo: https://lnkd.in/gvWBT7tJ 💻 GitHub Repo: https://lnkd.in/gJDK4_AP Learning how to create more interactive and user-friendly web experiences. 💻 #JavaScript #WebDevelopment #FrontendDeveloper #100DaysOfCode #CodingJourney
To view or add a comment, sign in
-
Fixing "orphaned" words in headings used to require manual line breaks or complex JavaScript. Now, we have `text-wrap: balance` With just one line of CSS, the browser automatically calculates the best way to distribute text across lines so they have nearly equal widths. It’s perfect for hero sections and card titles where you want a clean, professional look on any screen size. It’s a small detail, but it’s these native CSS improvements that are slowly killing the need for dozens of tiny UI utility libraries. 😁 #css #frontend #webdesign #uiprolblems #modernweb
To view or add a comment, sign in
-
I built a fully functional calculator using HTML, CSS, and JavaScript. You can try it here: https://lnkd.in/eMK35_N9 Features: • Performs basic arithmetic operations • Clean and responsive interface • Interactive button functionality What I learned: - Handling user input with JavaScript - Structuring logic for calculations - Improving UI for better user experience It’s a simple project, but a solid step in my frontend journey. More projects coming 🚀 #frontenddeveloper #javascript #webdevelopment #buildinpublic
To view or add a comment, sign in
-
🚨 𝐂𝐒𝐒 𝐢𝐬 𝐧𝐨 𝐥𝐨𝐧𝐠𝐞𝐫 𝐣𝐮𝐬𝐭 𝐬𝐭𝐲𝐥𝐢𝐧𝐠. With CSS Wrapped 2025, we're seeing CSS evolve into something much closer to a UI programming language. Things that once required JavaScript can now be done natively with CSS and HTML: • 𝑩𝒖𝒊𝒍𝒅 𝒊𝒏𝒕𝒆𝒓𝒂𝒄𝒕𝒊𝒗𝒆 𝒄𝒂𝒓𝒐𝒖𝒔𝒆𝒍𝒔 𝒘𝒊𝒕𝒉 ::𝒔𝒄𝒓𝒐𝒍𝒍-𝒃𝒖𝒕𝒕𝒐𝒏 𝒂𝒏𝒅 ::𝒔𝒄𝒓𝒐𝒍𝒍-𝒎𝒂𝒓𝒌𝒆𝒓 • 𝑺𝒕𝒚𝒍𝒆 𝒏𝒂𝒕𝒊𝒗𝒆 <𝒔𝒆𝒍𝒆𝒄𝒕> 𝒆𝒍𝒆𝒎𝒆𝒏𝒕𝒔 (𝒇𝒊𝒏𝒂𝒍𝒍𝒚!) • 𝑪𝒓𝒆𝒂𝒕𝒆 𝒉𝒐𝒗𝒆𝒓 𝒑𝒓𝒆𝒗𝒊𝒆𝒘𝒔 𝒂𝒏𝒅 𝒕𝒐𝒐𝒍𝒕𝒊𝒑𝒔 𝒘𝒊𝒕𝒉 𝒊𝒏𝒕𝒆𝒓𝒆𝒔𝒕-𝒇𝒐𝒓 • 𝑾𝒓𝒊𝒕𝒆 𝒄𝒐𝒏𝒅𝒊𝒕𝒊𝒐𝒏𝒂𝒍 𝒍𝒐𝒈𝒊𝒄 𝒖𝒔𝒊𝒏𝒈 𝒊𝒇() 𝒊𝒏 𝑪𝑺𝑺 • 𝑼𝒔𝒆 𝒄𝒐𝒏𝒕𝒂𝒊𝒏𝒆𝒓 & 𝒔𝒄𝒓𝒐𝒍𝒍 𝒔𝒕𝒂𝒕𝒆 𝒒𝒖𝒆𝒓𝒊𝒆𝒔 𝒇𝒐𝒓 𝒔𝒎𝒂𝒓𝒕𝒆𝒓 𝒍𝒂𝒚𝒐𝒖𝒕𝒔 • 𝑪𝒓𝒆𝒂𝒕𝒆 𝒔𝒕𝒂𝒈𝒈𝒆𝒓𝒆𝒅 𝒂𝒏𝒊𝒎𝒂𝒕𝒊𝒐𝒏𝒔 𝒘𝒊𝒕𝒉 𝒔𝒊𝒃𝒍𝒊𝒏𝒈-𝒊𝒏𝒅𝒆𝒙 • 𝑹𝒆𝒐𝒓𝒅𝒆𝒓 𝑫𝑶𝑴 𝒆𝒍𝒆𝒎𝒆𝒏𝒕𝒔 𝒘𝒊𝒕𝒉𝒐𝒖𝒕 𝒍𝒐𝒔𝒊𝒏𝒈 𝒔𝒕𝒂𝒕𝒆 𝒖𝒔𝒊𝒏𝒈 𝒎𝒐𝒗𝒆𝑩𝒆𝒇𝒐𝒓𝒆 • 𝑩𝒖𝒊𝒍𝒅 𝒑𝒐𝒑𝒐𝒗𝒆𝒓𝒔, 𝒅𝒊𝒂𝒍𝒐𝒈𝒔, 𝒂𝒏𝒅 𝒊𝒏𝒕𝒆𝒓𝒂𝒄𝒕𝒊𝒗𝒆 𝑼𝑰 𝒘𝒊𝒕𝒉𝒐𝒖𝒕 𝑱𝑺 𝗜𝗻 𝘀𝗵𝗼𝗿𝘁: CSS is becoming stateful, logical, and interaction-driven. The web platform is shifting toward native UI capabilities, reducing the need for heavy JavaScript for common patterns. If you're a frontend developer, this is a moment worth paying attention to. The platform is getting seriously powerful. Explore all the features visually from official docs: https://lnkd.in/dnXM6tcR #CSS #Frontend #WebDevelopment #WebPlatform #ChromeDev #FrontendEngineering
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development