its-kundan / Coin_Toss

This is simple coin toss project which simply toss a coin.
https://coin-toss-luck.netlify.app/
1 stars 2 forks source link

add a nav bar to this project #3

Open its-kundan opened 1 week ago

its-kundan commented 1 week ago

To add an "How to Contribute" section to your GitHub repository, you can follow these steps:

  1. Clone the Repository:

    • Open your terminal or command prompt.
    • Use the command:
      git clone <repository-url>
    • Replace <repository-url> with the URL of your GitHub repository.
  2. Create New Files:

    • Navigate to the components folder in your project:
      cd <your-repo-folder>/components
    • Create the files Navbar.html and Navbar.css:
      touch Navbar.html Navbar.css
  3. Add Component to index.html:

    • Open index.html in your preferred code editor.
    • Include the new Navbar component by adding the following line to the appropriate location in index.html:
      <link rel="stylesheet" href="components/Navbar.css">
      <div id="navbar">
       <!-- Include Navbar.html content here -->
      </div>
  4. Commit Changes:

    • After making the necessary changes, stage and commit your updates:
      git add .
      git commit -m "Added Navbar component"
  5. Push to GitHub:

    • Finally, push your changes to the GitHub repository:
      git push origin main

Sample "How to Contribute" Section for GitHub Issues:

## How to Contribute to this Repository

1. **Clone the Repository**:
   Clone the repository using the following command:
   ```bash
   git clone <repository-url>
  1. Create New Files: In the components folder, create two new files:

    • Navbar.html
    • Navbar.css You can do this with the following commands:
      touch components/Navbar.html components/Navbar.css
  2. Add Component to index.html: Open index.html and add the new Navbar component:

    <link rel="stylesheet" href="components/Navbar.css">
    <div id="navbar">
       <!-- Include Navbar.html content here -->
    </div>
  3. Commit Changes: After making changes, commit your updates:

    git add .
    git commit -m "Added Navbar component"
  4. Push to GitHub: Push your changes to the main branch:

    git push origin main

This will guide users on how to contribute to your coin toss website project.

Niyati2609 commented 6 days ago

Hello @its-kundan , Can you please assign this to me?

its-kundan commented 6 days ago

assigned.

Niyati2609 commented 6 days ago

I have completed it and raise a pr. https://github.com/its-kundan/Coin_Toss/pull/4 Please review it.