Introduction: Make a Coffee Shop Locating Website
In this Instructable I will show u how to make a simple website displaying coffee shops near you, Using Google Maps, HTML and CSS
Supplies
A computer
A text editor (i use Atom)
A wifi connection
Step 1: Choose a Text Editor
I use Atom, which can be downloaded Here. Once its downloaded open it make a new project
Step 2: Create Your New Project
- Open Atom
- Find file
- Under file click new
- in the bottom left (mac) there will be a button to make a new folder
- name your folder ''Map website'
- Press open on the bottom right
Step 3: Create Your Index.html
- Add a new file in your folder (In atom right-click the folder and press new)
- Name this file 'Index.html'
- Add this basic HTML structure, This is used in every HTML project:
Step 4: Get Your Map
- Visit Google maps here: Google Maps
- Search for coffee
- you should get all coffee shops in your general area
- click the three lines next to coffee
- find share or embed map
- select embed map
- Choose the size of the map (I used Large) and finalize your location
- press copy HTML
Step 5: Add to the Website
- Head back to the HTML file.
- between the two '<body></body>' tags insert this code:
'<center>
<h1>COFFEE SHOPS NEAR YOU</h1>
<br>
'THE EMBEDED CODE FROM GOOGLE MAPS'
</center>'
Step 6: Preview
Thats part one done!
save the file and find it on your computer, Double click it and it will open up in your default browser to be previewed.
Step 7: Make It Look Better
- Between the two '<title></title>' tags add 'Coffee shops near me'
- Add a new file the same way you created 'Index.html' but name it 'Style.css'
- back on your HTML file, write this code above your title, "<link rel="stylesheet" href="style.css""
- Go to google images and download a cute clipart of a cup of coffee
- Add the image to the folder containing the rest of our files
- in the CSS file, Write the following code: 'body{
- background-image: url(THE NAME OF THE IMAGE);
- background-size: cover;
- }'
Step 8: Making It Look Better Pt2
- if we save and preview now, we can see that the websites background is now tiled with our coffee cups
- Sadly it is difficult to read our heading
- So in the CSS, underneath the 'body {}' add the following code: h1{
- background-color=rgb(255,255,255);
- font-size=40px;
- }
Step 9: REVISION
Thats it! You're done. You have learned the basics of HTML, CSS and embeded code, Well done. You can edit the code to make it fit your taste and make it display a map of anything you want. From then you can continue your website building journey and forever improving.