Giter VIP home page Giter VIP logo

sagacious-satadru / poke-dex Goto Github PK

View Code? Open in Web Editor NEW

This project forked from am1codes/poke-dex

0.0 0.0 0.0 19.34 MB

This is a small webpage that allows user to add their favourite Pokémons! This project aims to help people in creating their first pull requests and participating in Hacktoberfest 2021

Home Page: https://am1codes.github.io/Poke-Dex/

License: MIT License

JavaScript 0.79% CSS 1.37% HTML 97.84%

poke-dex's Introduction

Poké-Dex

Pokémon

There's no doubt that most of our childhood was spent watching Pokémon and playing games like Pokémon Fire-Red, Ruby, Emerald, etc. From Kanto to Hoenn to Sinnoh, we have seen it all and experienced it all. With Hacktoberfest 2020 coming up and being one of the people who would participate for the very first time, I decided to create this repository that's actually a very basic website that lets users view and add their favourite Pokémon.

Contents of the website

  1. index.html - Contains the content of the home page.
  2. index.css - Contains the styling given to the home page.
  3. about.html - Contains some information about me.
  4. about.css - Contains the styling given to the about page.

What can I contribute?

There is always something to contribute to a project whether you are a novice or a veteran. In this project, you can add your favourite Pokémon as a card to the website! Or maybe you didn't like the line that you are reading right now and want to change that. Sure! Why not?

How can I contribute?

Kindly refer to CONTRIBUTING.md file to learn how to contribute!

And that's it! Follow these steps to make your very first pull request.

But what if I don't know how to add cards? :(

Not everyone is aware of every tool present in the world no matter how easy or complex it is. It's also not necessary to know each and every tool out there. So there are two ways to add a pokemon. You only need to do one of these methods otherwise the pokemon will appear twice.

via html

Use the code sample below to add your own card because everyone loves Pokémon and everyone should get a chance to add their favourite Pokémon! Just paste it within the the the div with an id of pokemon-row

<div class="col-lg-4 mb-4">
  <div class="card">
    <img class="card-img-top" src="[Link to Pokémon image]" alt="" />
    <div class="card-body">
      <h5 class="card-title">[Name of your favourite Pokémon]</h5>
      <p class="card-text">[Small Description about your Pokémon]</p>
      <a
        href="[Add the link to your GitHub Profile]"
        class="btn btn-outline-danger btn-sm"
        >Contributed by - [Add your GitHub Username/profile name]</a
      >
    </div>
  </div>
</div>

Also now you can use a new css class to add a badge to you favorite pokemon, this bagde is made for show the pokemon type. Follow the example

<div class="col-lg-4 mb-4">
  <div class="card">
    <div class="header">
      <div class="badge grass">Grass</div>
    </div>
    <img class="card-img-top" src="[Link to Pokémon image]" alt="" />
    <div class="card-body">
      <h5 class="card-title">[Name of your favourite Pokémon]</h5>
      <p class="card-text">[Small Description about your Pokémon]</p>
      <a
        class="btn btn-outline-danger btn-sm"
        href="[Add the link to your GitHub Profile]"
        >Contributed by - [Add your GitHub Username/profile name]</a
      >
    </div>
  </div>
</div>

Currently the available badges are: grass, bug, electric, dark, fairy, fighting, fire, flying, ghost, ground, ice, normal, poison, psychic, rock, steel, water. Feel free to add more, just create a class with the type name and chose the color.

Copy this code and paste it in the index.html file to make your changes. Test it on your own system and then create a pull request.

via javascript / json

Or an even easier way is to just add an object to the pokemon.json file with

{
	"pokemonName": [Name of your favourite Pokémon],
	"pokemonDescription": [Small Description about your Pokémon],
	"pokemonImage": [Link to Pokémon image],
	"contributedByName": [Add your Github Username],
	"contributedByUrl": [Add a link to your Github profile],
	// these are only needed if you have improved a card
	"improvedByName": [Add your Github Username],
	"improvedByUrl": [Add a link to your Github profile],
},

If all of the pokemon get added to this file, then we can extend this project to include functionality like search and filtering.

Congratulations!

Congratulations! You just made your first pull request and if it gets merged, you can view the changes you made live using the link provided above!

poke-dex's People

Contributors

ajaj895 avatar am1codes avatar ananyanegi avatar avaldez3 avatar camiblanch avatar carissali avatar chandankumar1307 avatar dedesaepulloh avatar dheeraj-01 avatar duygukeskek avatar firelemons avatar gudianirudha avatar hardy8118 avatar imgbotapp avatar jacksonisaac avatar karthik1717 avatar lincolntx avatar ludovicobesana avatar luigilegion avatar luuse avatar mendelevium28 avatar mihinduranasinghe avatar mizzxi avatar nakul-shahdadpuri avatar pranavgoyanka avatar prashoon123 avatar rashita123 avatar saurontm avatar skully-coder avatar toptoppy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.