• Stars
    star
    100
  • Rank 340,703 (Top 7 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created almost 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Interactive Periodic Table which I made with React.js and CSS Grid. I was trying to memorize all the elements and thought, hey can I make this peculiar layout with my current CSS skills? I finally did

The Periodic Table of Elements

Made with CSS Grid, React and Science! See it in Action: PeriodicTable.website

Running it on your computer

You will need Node.js installed on your computer. Follow this tutorial to setup a local development environment with Node and Git bash

Clone the repository into your computer

git clone https://github.com/tamalchowdhury/periodic-table.git

Go into the new directory:

cd periodic-table

Install the dependencies with yarn or npm

yarn

Run the app locally by running yarn start or npm start

yarn start

Visit http://localhost:3000

Periodic Table

How it was made?

I made the layout using CSS grid. The table is a bunch of boxes in 18 columns, arranged in a funny way.

I used viewport width to set most of the element dimensions, text sizes, so that the table will scale according to screen sizes. Still, please test it on your end and send me a PR.

I created each box with a <div> with a class of element and number like: element-1

I used emmet to auto populate 118 boxes.

The unique class names helped me arrange them by position in CSS. For example in Element 57 and 89 when the Lathanides and Actinoids split the table, I made them seperate and pushed down the markup. See the main css file on how I did it.

After I arranged the elements the way it is, I then transitioned over React.

React allowed me to make the items interactive. I found a handy JSON that had all the element info which I used to dynamically populate the symbol names and other information. This saved me a lot of time and error making this table.

You can read the detailed blog Post here: How I made The Periodic Table with CSS Grid and React

More Repositories

1

reddit-like-site

(first reddit clone) MVC app made with React.js, Node.js, Express.js & MongoDB. This is my first MERN stack project. Users can pick a username and start posting right away! They can also vote up or down of the posts. Check the new version of this app:
JavaScript
53
star
2

reddit-clone-20

Reddit Clone MVC app made with React.js, Node.js, Express.js & MongoDB
JavaScript
30
star
3

twitter-clone-new

MVC app made with Node.js, Express.js, MongoDB & Passport.js. This is my first fullstack project. I was always interested with social network, I made user profiles with user registration feature
JavaScript
22
star
4

LinkedinReactionPollGenerator

ReactionPoll.com Creates image Reaction Polls for Linkedin and Facebook
TypeScript
14
star
5

reddit-clone-20-backend

This is the backend of the new Reddit clone 2.0. Node, Express.
JavaScript
5
star
6

tech-career-growth-event-countdown

JavaScript
5
star
7

bankcardsbangladesh

A list of all bank cards in Bangladesh. Created to learn project management and help students get started with #hacktoberfest 2023
HTML
5
star
8

cashoutcharge

CashoutCharge.com for Bkash, Nagad mobile financial services in Bangladesh
JavaScript
4
star
9

paper-editor

React Rich Text Editor made with Slate.js. I made this rich text editor as part of an interview assignment. I got to know how modern rich editors work. Will be using this tech on my other projects
JavaScript
3
star
10

reddit-clone

Reddit Clone MVC app made with React.js, Node.js, Express.js & MongoDB. See the updated version:
2
star
11

PoolPuzzleOne

Pool Puzzle one from the book Head first Java
Java
2
star
12

blogkori-app

personal blog made with Nextjs, React and WordPress REST API
TypeScript
2
star
13

json

JSON explained in simple terms
1
star
14

bkash-calc

A simple Bkash cashout fee calculator
HTML
1
star
15

laundry-list

JavaScript
1
star
16

portfolio

All my best work organized in this single repo
1
star
17

twitter-clone

JavaScript
1
star
18

mckenzie-website

Home renovation builders website built with Nextjs 14, TailwindCSS, and TypeScript.
TypeScript
1
star
19

math

A collection of useful math formulas
1
star
20

touchgrass

Why don't you go outside and touch grass?
HTML
1
star
21

bkash-calc-react

Bkash cash out calculator made with React
JavaScript
1
star
22

KateGlover

SCSS
1
star
23

css-filter-functions

HTML
1
star
24

burgerCelciusToFarenheit

CSS
1
star
25

burgerclass2

JavaScript
1
star
26

fruit-facts

Get cool fruit facts in json format
JavaScript
1
star
27

ReactToNetlify

JavaScript
1
star
28

hello-go

Hello world program with Go lang
Go
1
star
29

Data_Structures

JavaScript
1
star
30

blogkori

BlogKori is a simple minimalist blog theme. If you are new to blogging or just want a simple WordPress theme to showcase your writing, then use this theme. In this theme, the articles take the center stage. BlogKori theme is useful for content-rich blogs, review or affiliate niche sites. The site uses SEO optimized markup for faster speed and better search rankings.
PHP
1
star
31

dom

Basic DOM manipulating tips for frontend developers
1
star
32

adnansite

HTML
1
star
33

meaningless

NPM Package. Write meaningful JavaScript by using real life words like yes/no, on/off instead of booleans
JavaScript
1
star