<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sarthak Mittal</title>
    <description>The latest articles on DEV Community by Sarthak Mittal (@sarmittal).</description>
    <link>https://dev.to/sarmittal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1548054%2Ff6f99676-cad6-4ff3-a4ba-34797a7a15c2.jpeg</url>
      <title>DEV Community: Sarthak Mittal</title>
      <link>https://dev.to/sarmittal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sarmittal"/>
    <language>en</language>
    <item>
      <title>Guitar - Interactive Musical Experience with SVG and GSAP</title>
      <dc:creator>Sarthak Mittal</dc:creator>
      <pubDate>Sat, 15 Jun 2024 06:50:01 +0000</pubDate>
      <link>https://dev.to/sarmittal/guitar-interactive-musical-experience-with-svg-and-gsap-1kn5</link>
      <guid>https://dev.to/sarmittal/guitar-interactive-musical-experience-with-svg-and-gsap-1kn5</guid>
      <description>&lt;h2&gt;
  
  
  Introduction 🤗
&lt;/h2&gt;

&lt;p&gt;Welcome to my latest web development project where creativity meets technology! I've recently embarked on a fascinating journey to combine visual animation with audio interaction, resulting in an engaging musical experience on the web. This blog post will walk you through the process of creating interactive SVG animations that respond to user actions and play sounds, using GSAP and HTML5 audio.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Concept 🧠
&lt;/h2&gt;

&lt;p&gt;The inspiration for this project comes from Guitar (musical instruments). The goal was to create virtual strings on a web page that users could "pluck" with their mouse, visually deforming the strings and playing corresponding notes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tools and Technologies 🛠
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GSAP (GreenSock Animation Platform): A powerful JavaScript library for creating high-performance animations.&lt;/li&gt;
&lt;li&gt;HTML5 Audio: For playing sound files in response to user interactions.&lt;/li&gt;
&lt;li&gt;SVG (Scalable Vector Graphics): For creating and animating the string visuals.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Setting Up the Project 📐
&lt;/h2&gt;

&lt;p&gt;First, we define the initial and final paths for the SVG strings. Each string is represented as a quadratic Bezier curve in SVG.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let initialPath = "M 0 30 Q 500 30 1000 30";
let finalPath = "M 0 30 Q 500 30 1000 30";
const sounds = ["A", "B", "C", "D", "E", "G"];
let audioElements = [];
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We pre-initialize audio elements for each note, ensuring they are ready to play after user interaction:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for (let index = 1; index &amp;lt;= 6; index++) {
    let audio = new Audio(`./sound/${sounds[index - 1]}.mp3`);
    audioElements.push(audio);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Animating the Strings
&lt;/h2&gt;

&lt;p&gt;Using GSAP, we animate the SVG path of each string based on mouse movements:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for (let index = 0; index &amp;lt; 6; index++) {
    let audio = new Audio(`./sound/${sounds[index]}.mp3`);
    audioElements.push(audio);
}
for (let index = 1; index &amp;lt;= 6; index++) {
    let string = document.querySelector(`#string${index}`);
    let cord = string.getBoundingClientRect();
    string.addEventListener("mousemove", (event) =&amp;gt; {
        console.log("play")
        let initialPath = `M 0 30 Q ${event.clientX - cord.left} ${event.clientY - cord.top} 1000 30`;
        gsap.to(`#string${index} svg path`, {
            attr: { d: initialPath },
            duration: 0.3,
            ease: "power3.out"
        });
    });
    string.addEventListener("mouseleave", () =&amp;gt; {
        audioElements[index-1].currentTime =2;
        audioElements[index-1].play()
        gsap.to(`#string${index} svg path`, {
            attr: { d: finalPath }, 
            duration: 0.8,
            ease: "elastic.out(1,0.1)"
        });
    });
}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Conclusion 💭
&lt;/h2&gt;

&lt;p&gt;This project demonstrates the seamless integration of visual and auditory elements on a web page, creating an interactive and engaging user experience. By leveraging GSAP for animations and HTML5 audio for sound playback, we can build sophisticated and responsive web applications.&lt;/p&gt;

&lt;p&gt;I hope this walkthrough has inspired you to experiment with SVG animations and audio interactions in your projects. Feel free to reach out with any questions or share your own creations!&lt;/p&gt;

&lt;p&gt;LIVE DEMO: &lt;a href="https://guitar-sm.netlify.app/"&gt;Guitar - Interactive Musical Experience&lt;/a&gt;&lt;br&gt;
GitHub: &lt;a href="https://github.com/iam-sarthak/guitar"&gt;github.com/iam-sarthak/guitar&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://sarmittal.netlify.app/"&gt;👋Connect with Me&lt;br&gt;
&lt;/a&gt; &lt;br&gt;
If you enjoyed this project, follow me on &lt;a href="https://www.linkedin.com/in/sarthak-mittal-/"&gt;LinkedIn &lt;/a&gt; for more updates and insights into web development and interactive design.&lt;/p&gt;

&lt;p&gt;Happy coding! 😊&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Big Text Animation on Scroll</title>
      <dc:creator>Sarthak Mittal</dc:creator>
      <pubDate>Thu, 13 Jun 2024 17:05:21 +0000</pubDate>
      <link>https://dev.to/sarmittal/big-text-animation-on-scroll-bm2</link>
      <guid>https://dev.to/sarmittal/big-text-animation-on-scroll-bm2</guid>
      <description>&lt;p&gt;Today, I embarked on an exciting journey with GSAP (GreenSock Animation Platform) and its powerful ScrollTrigger plugin. Here's a quick rundown of what I learned and how I brought my ideas to life.&lt;/p&gt;

&lt;h2&gt;
  
  
  Basics of GSAP
&lt;/h2&gt;

&lt;p&gt;GSAP is a robust JavaScript library for creating high-performance animations. I started by animating simple elements, which was surprisingly easy and effective.&lt;/p&gt;

&lt;h2&gt;
  
  
  Discovering ScrollTrigger
&lt;/h2&gt;

&lt;p&gt;ScrollTrigger, a GSAP plugin, allows you to animate elements based on scroll position. Here are some key properties:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;trigger: Select the element to animate.&lt;/li&gt;
&lt;li&gt;scroller: Usually set to "body".&lt;/li&gt;
&lt;li&gt;start: Define when the animation starts.&lt;/li&gt;
&lt;li&gt;end: Define when the animation ends.&lt;/li&gt;
&lt;li&gt;markers: Visualize start and end points (useful for debugging).&lt;/li&gt;
&lt;li&gt;scrub: Smoothly control animation with scroll (can be a Boolean or a number between 1-5).&lt;/li&gt;
&lt;li&gt;pin: Pin the element during the animation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  My Big Text Animation
&lt;/h2&gt;

&lt;p&gt;I created an engaging big text animation that moves as you scroll down the page. Here’s the code and a brief explanation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gsap.to(".page2 h1", {
    transform: "translateX(-250%)",
    scrollTrigger: {
        trigger: ".page2",
        scroller: "body",
        start: "top 0%",
        end: "top -100%",
        scrub: 2,
        pin: true
    }
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;Big Scroll Text Animation&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div class="page1"&amp;gt;
        &amp;lt;h1&amp;gt;Welcome to Big Scroll Text Animation&amp;lt;/h1&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="page2"&amp;gt;
        &amp;lt;h1&amp;gt;BIG SCROLL ANIMATION&amp;lt;/h1&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="page3"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/ScrollTrigger.min.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="script.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}
html, body {
    height: 100vh;
    width: 100vw;
}
body {
    overflow-x: hidden;
}
.page1, .page3 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
}
.page1 { background-color: black; }
.page1 h1 { color: white; }
.page2 {
    background-color: cornsilk;
    height: 100%;
    align-items: center;
}
.page2 h1 {
    color: black;
    font-size: 70vh;
    font-weight: 400;
}
.page3 { background-color: black; }

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can see this animation in action here on CodePen.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/Sarthakmittal/embed/ExzboRQ?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Today was a fantastic learning experience, and I'm excited to continue exploring the capabilities of GSAP and ScrollTrigger. Stay tuned for more animations!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>gsap</category>
      <category>javascript</category>
      <category>programming</category>
    </item>
    <item>
      <title>DELICIRO: Food Ordering Website</title>
      <dc:creator>Sarthak Mittal</dc:creator>
      <pubDate>Wed, 05 Jun 2024 12:21:50 +0000</pubDate>
      <link>https://dev.to/sarmittal/deliciro-food-ordering-website-43cj</link>
      <guid>https://dev.to/sarmittal/deliciro-food-ordering-website-43cj</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6yj3dx0r1o1h7im8vd03.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6yj3dx0r1o1h7im8vd03.PNG" alt="DELICIRO, a fully functional food ordering website built using React.js, HTML, and CSS. This project has been an incredible learning experience, enhancing my skills in systematic coding, advanced CSS, and React.js implementation." width="800" height="385"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm excited to share my latest project, DELICIRO, a fully functional food-ordering website. This project was a significant step forward in my web development journey, providing me with an opportunity to enhance my skills in CSS and React.js.&lt;/p&gt;

&lt;h2&gt;
  
  
  Inspiration
&lt;/h2&gt;

&lt;p&gt;The inspiration for DELICIRO came from my love for food and technology. I wanted to create a platform where users could easily browse and order their favorite meals. To ensure I followed best practices, I found a YouTube tutorial that guided me through the systematic way of writing clean and efficient code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Development Process
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Learning from YouTube:&lt;/strong&gt; I started by following a comprehensive YouTube tutorial. The step-by-step guide was incredibly helpful in understanding the workflow and structure of a professional-level project. It emphasized the importance of writing clean, maintainable code and following a systematic approach to development.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enhanced CSS Skills:&lt;/strong&gt; One of my goals with DELICIRO was to improve my CSS skills. The tutorial covered advanced CSS techniques, which allowed me to create a visually appealing and responsive design. I learned how to use Flexbox and Grid more effectively, and I gained insights into creating smooth animations and transitions.&lt;/li&gt;
&lt;li&gt;**React.js Implementation: **While I had some prior experience with React.js, this project deepened my understanding of component-based architecture. I learned how to manage state more efficiently and how to use hooks like useState and useEffect to create a dynamic and interactive user exp
erience.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key Features of DELICIRO
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;User-Friendly Interface:&lt;/strong&gt; The website boasts a clean and intuitive interface, making it easy for users to navigate through the menu and place orders.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Responsive Design:&lt;/strong&gt; DELICIRO is fully responsive, ensuring a seamless experience on both desktop and mobile devices.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dynamic Content:&lt;/strong&gt; The use of React.js allows the content to update dynamically without the need for page reloads, providing a smooth and fast user experience.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Systematic Coding:&lt;/strong&gt; The importance of following a structured approach to coding was a key takeaway. It not only makes the code more readable but also easier to debug and maintain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advanced CSS Techniques:&lt;/strong&gt; I improved my CSS skills significantly, learning how to create more sophisticated layouts and designs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;React.js Best Practices:&lt;/strong&gt; This project enhanced my understanding of React.js, particularly in managing state and creating interactive components.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Future Plans
&lt;/h2&gt;

&lt;p&gt;I plan to continue improving DELICIRO by adding more features such as user authentication, order tracking, and payment integration. Additionally, I aim to explore more advanced CSS and React.js techniques to further enhance the user experience.&lt;/p&gt;

&lt;p&gt;Feel free to check out DELICIRO and share your feedback. I’m open to suggestions and collaborations to make this project even better!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live Demo:&lt;/strong&gt; &lt;a href="https://deliciro.netlify.app/"&gt;DELICIRO&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/iam-sarthak/deliciro"&gt;DELICIRO Source Code&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Note: this website is not complete yet that's just a front home page&lt;/p&gt;

&lt;p&gt;Creating DELICIRO has been an incredible learning experience, and I’m excited to see where this journey takes me next. Thank you for reading, and stay tuned for more updates!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
      <category>react</category>
    </item>
    <item>
      <title>Connect-Four Game - Web Game</title>
      <dc:creator>Sarthak Mittal</dc:creator>
      <pubDate>Sun, 02 Jun 2024 11:44:54 +0000</pubDate>
      <link>https://dev.to/sarmittal/connect-four-game-5k5</link>
      <guid>https://dev.to/sarmittal/connect-four-game-5k5</guid>
      <description>&lt;h2&gt;
  
  
  Inspiration
&lt;/h2&gt;

&lt;p&gt;Creating interactive and engaging web games has always fascinated me. This time, I took on the challenge of developing the classic Connect Four game using React.js, HTML, and CSS. The primary goal was to enhance my front-end development skills and deepen my understanding of data structures and algorithms.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;Check out the live demo here.&lt;/p&gt;

&lt;h2&gt;
  
  
  Journey
&lt;/h2&gt;

&lt;p&gt;Developing the Connect Four game was a fun and enlightening experience. Here’s a quick overview of my journey:&lt;/p&gt;

&lt;h2&gt;
  
  
  Project Overview
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Technologies Used: React.js, HTML, CSS&lt;/li&gt;
&lt;li&gt;Main Feature: A function named checkWin that checks for the winner in the game.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key Learnings
&lt;/h2&gt;

&lt;p&gt;Importance of Data Structures: During the development, I realized how crucial data structures are in game development. They not only help in managing the state efficiently but also in optimizing the performance.&lt;br&gt;
Algorithm Optimization: To ensure the game runs smoothly, optimizing the checkWin function was vital. The faster your algorithms, the better the user experience.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why DSA Matters
&lt;/h2&gt;

&lt;p&gt;The development of this game highlighted the importance of Data Structures and Algorithms (DSA). Efficient algorithms can drastically improve the performance of an application. Understanding and implementing the right data structures helps in managing and optimizing the game state, making the overall user experience smoother and more enjoyable.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next?
&lt;/h2&gt;

&lt;p&gt;I plan to continue refining the game, adding more features, and perhaps even incorporating AI to challenge the players. Feel free to check out the project, play the game, and contribute by adding your own features. The project is open source, and I welcome any enhancements!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live Demo&lt;/strong&gt;: &lt;a href="https://connect-four-sarmittal.netlify.app/"&gt;Connect Four Game&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repository&lt;/strong&gt;: &lt;a href="https://github.com/iam-sarthak/connect-four"&gt;Connect Four Source Code&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feel free to connect with me to discuss this project, potential collaborations, or any insights you might have.&lt;/p&gt;

</description>
      <category>frontendchallenge</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
    </item>
    <item>
      <title>Hanging Man Game</title>
      <dc:creator>Sarthak Mittal</dc:creator>
      <pubDate>Fri, 31 May 2024 15:29:28 +0000</pubDate>
      <link>https://dev.to/sarmittal/hanging-man-game-1d26</link>
      <guid>https://dev.to/sarmittal/hanging-man-game-1d26</guid>
      <description>&lt;h2&gt;
  
  
  Inspiration
&lt;/h2&gt;

&lt;p&gt;Inspired by a cool design I found on &lt;a href="https://dribbble.com/shots/23582257-The-game-Hangman"&gt;Dribbble&lt;/a&gt;, I decided to create a web version of the classic "Hanging Man" game. My goal was to not only practice my frontend development skills but also to bring a bit of fun and interactivity to my portfolio.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2ooguq41hcd7brqa6xjq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2ooguq41hcd7brqa6xjq.png" alt="Hanging man game home screen sort" width="800" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can try the live demo of the game here.&lt;br&gt;
&lt;a href="https://hanging-man-sarmittal.netlify.app/"&gt;Live Demo&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Journey
&lt;/h2&gt;

&lt;p&gt;Creating this game was a great learning experience. Here's how I did it:&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing the Tech Stack
&lt;/h2&gt;

&lt;p&gt;I chose React for its component-based architecture, which made it easier to manage the different parts of the game. Vite was used as the build tool for its speed and simplicity, and HTML and CSS were used for the structure and styling of the game.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building the UI
&lt;/h2&gt;

&lt;p&gt;I started by replicating the design from Dribbble. This involved creating a visually appealing layout with cacti, a cowboy, and the hanging tree. CSS was crucial for achieving the right look and feel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Implementing the Game Logic
&lt;/h2&gt;

&lt;p&gt;The core functionality of the game revolves around guessing letters. Here’s how I implemented it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;useState(): This hook was used to manage the game state, including the word to guess, the letters guessed, and the number of wrong attempts.&lt;/li&gt;
&lt;li&gt;useEffect(): This hook was used to handle side effects, such as checking if the game is won or lost after each guess.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Creating the Questions Database
&lt;/h2&gt;

&lt;p&gt;To make the game more interesting, I used ChatGPT to generate a variety of questions and words. This added a unique touch to the game and ensured a diverse set of challenges for the players.&lt;/p&gt;

&lt;h2&gt;
  
  
  Challenges and Learning
&lt;/h2&gt;

&lt;p&gt;One of the main challenges was managing the game state efficiently and ensuring the UI updates correctly based on user interactions. Through this process, I gained a deeper understanding of React hooks and state management.&lt;/p&gt;

&lt;h2&gt;
  
  
  Future Plans
&lt;/h2&gt;

&lt;p&gt;In the future, I plan to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add more questions and words to the database.&lt;/li&gt;
&lt;li&gt;Implement difficulty levels.&lt;/li&gt;
&lt;li&gt;Enhance the UI with animations and sound effects.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Working on this project was incredibly rewarding. It not only sharpened my technical skills but also allowed me to create something enjoyable. I hope this blog inspires you to take on similar projects and explore the fun side of web development.&lt;/p&gt;

&lt;p&gt;Thank you for reading! Feel free to try the game and let me know your thoughts.&lt;/p&gt;

</description>
      <category>react</category>
      <category>vite</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Buy Some Happiness This Summer! - Web Page</title>
      <dc:creator>Sarthak Mittal</dc:creator>
      <pubDate>Thu, 30 May 2024 15:58:52 +0000</pubDate>
      <link>https://dev.to/sarmittal/buy-some-happiness-this-summer-web-page-202h</link>
      <guid>https://dev.to/sarmittal/buy-some-happiness-this-summer-web-page-202h</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for &lt;a href="https://dev.to/challenges/frontend-2024-05-29"&gt;Frontend Challenge v24.04.17&lt;/a&gt;, CSS Art: June.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Inspiration
&lt;/h2&gt;

&lt;p&gt;This web page was inspired by the joy and carefree spirit of summer. I wanted to create a cheerful and inviting web page that captures the essence of the season. The idea was to design something that not only looks appealing but also brings a smile to anyone who visits. Summer is a time for relaxation, fun, and creating memories, and I wanted my page to reflect these sentiments.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;Creating the "Buy Some Happiness This Summer!" web page was a wonderful journey that allowed me to hone my frontend development skills. Here’s a look at the process and what I learned along the way:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvpv708nq799vwrwtq739.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvpv708nq799vwrwtq739.png" alt="Image description" width="800" height="905"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Journey
&lt;/h2&gt;

&lt;p&gt;The first step was to brainstorm and plan the layout. I envisioned a page that would be bright and welcoming, with elements that remind people of summer fun. The page needed to be simple yet visually engaging, so I decided to use a combination of soft colors, playful fonts, and a clean layout.&lt;/p&gt;

&lt;p&gt;Designing the Components&lt;br&gt;
I broke the design into several key components:&lt;/p&gt;

&lt;p&gt;Header: Featuring the title and a short, inviting introduction.&lt;br&gt;
Preparation Time: Highlighting how effortless it is to enjoy the summer.&lt;br&gt;
Ingredients: Listing the elements that make summer delightful.&lt;br&gt;
Instructions: Providing a fun, step-by-step guide to "buying happiness."&lt;br&gt;
Nutrition Facts: Adding a humorous twist with fictional happiness nutrition facts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Crafting the Layout
&lt;/h2&gt;

&lt;p&gt;Using HTML and CSS, I focused on creating a responsive design that looks great on both desktop and mobile devices. The goal was to ensure that the page remains visually appealing and easy to navigate regardless of the screen size.&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding Visual Elements
&lt;/h2&gt;

&lt;p&gt;To make the page more engaging, I included a header image of daisies, which evoke feelings of warmth and positivity. I also chose vibrant colors and cheerful fonts to enhance the overall look and feel of the page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lessons Learned
&lt;/h2&gt;

&lt;p&gt;This project was not just about improving my technical skills but also about understanding the importance of user experience and aesthetics in web design. I learned how small details, like the choice of colors and fonts, can significantly impact the overall feel of a webpage. Additionally, working on this project reinforced the importance of planning and breaking down a project into manageable parts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Future Plans
&lt;/h2&gt;

&lt;p&gt;Moving forward, I plan to continue experimenting with different design techniques and tools to further enhance my frontend development skills. I also hope to explore more complex animations and interactive elements to create even more engaging web experiences.&lt;/p&gt;

&lt;p&gt;Working on this project was incredibly rewarding and fun. It pushed me to think creatively and pay attention to the finer details. If you're looking to improve your front-end development skills, I highly recommend taking on similar projects that challenge you to combine technical skills with creative design.&lt;/p&gt;

</description>
      <category>frontendchallenge</category>
      <category>devchallenge</category>
      <category>css</category>
    </item>
  </channel>
</rss>
