Skip to content

SaiSriramKamineni/RandomEmojiGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟 Random Emoji 🌟

Welcome to the Random Emoji project! This interactive application displays random emojis along with their names when you click a button. Dive into the fun world of emojis and learn their names effortlessly. 🎉

📋 Table of Contents

📖 Project Overview

The Random Emoji project is a simple yet engaging web application that fetches a list of emojis from an API and displays a random emoji along with its name each time a button is clicked. This project showcases basic web development skills using HTML, CSS, and JavaScript.

✨ Features

  • Display a random emoji with its name
  • User-friendly and interactive design
  • Fetches emoji data from an external API
  • Stylish button animations and hover effects

🛠 Technologies

How I Built the Random Emoji Project

  1. Project Idea and Planning:

    • Started with the idea of creating a fun and interactive web application that displays random emojis along with their names.
    • Planned the basic functionality: fetching emojis from an API, displaying them dynamically on the webpage, and adding user interaction through a button click.
  2. Setting Up the Environment:

    • Created a new project directory and initialized it with necessary files (index.html, style.css, index.js).
    • Linked the CSS and JavaScript files to the HTML file for styling and functionality.
  3. Designing the User Interface:

    • Designed a simple and clean user interface using HTML and CSS.
    • Centered the content using flexbox and styled the elements to enhance readability and visual appeal.
    • Added a button for triggering emoji display and a section to show emoji names.
  4. Fetching Emoji Data:

    • Used the Emoji API (https://emoji-api.com/emojis?access_key=773b58f681fb786fafdb8392e8b8a75ddc177fd1) to fetch a large set of emojis with their details.
    • Utilized fetch() and await to asynchronously retrieve data from the API endpoint.
  5. Processing and Storing Data:

    • Stored the fetched emoji data in an array (emoji) containing objects with properties like emojiName and emojiCode.
    • Cleaned and formatted the emojiCode to make it more readable by replacing underscores with spaces and capitalizing each word.
  6. Implementing Functionality:

    • Wrote JavaScript code (index.js) to handle button click events and display a random emoji and its name.
    • Implemented event listeners to update the button text with a random emoji and the paragraph text with its corresponding name.
  7. Testing and Debugging:

    • Tested the application locally by running it in different browsers.
    • Debugged issues related to API fetching, data processing, and UI interaction.
  8. Deployment:

    • Deployed the project to a hosting platform (if applicable) or shared it via GitHub pages for public access.
    • Ensured all files (index.html, style.css, index.js) were included in the deployment and linked correctly.
  9. Documentation and Refinement:

    • Documented the project's structure, functionality, and any dependencies used.
    • Refactored code for readability and efficiency where necessary.
    • Added comments and clear naming conventions to facilitate future maintenance and understanding.
  10. Open index.html in your preferred browser.

🖥️ Usage

  1. Open the application in your browser.
  2. Click the "Click" button to generate a random emoji.
  3. The emoji and its name will be displayed on the screen.

📜 License

Distributed under the MIT License. See LICENSE for more information. MIT License

Happy coding! 🚀✨ "# RandomEmojiGenerator"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published