Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 7 additions & 85 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,92 +1,14 @@
![logo_ironhack_blue 7](https://user-images.githubusercontent.com/23629340/40541063-a07a0a8a-601a-11e8-91b5-2f13e4e6b441.png)
# Spotify Landing Page Clone Project

# LAB | HTML & CSS - Spotify Clone
Hello!

<details>
<summary>
<h2>Learning Goals</h2>
</summary>
I used my new learned CSS skills on the project assigned by Ironhack, on Week 1, day 2.

This exercise allows you to practice and apply the concepts and techniques taught in class.
I pushed myself to don't use any AI tool for this project. I just searched Google and checked my notes when I stucked. After this little journey, I'm glad to say this, I finished it successfuly.

Upon completion of this exercise, you will be able to:
This is my first of writing README.md, I'm trying to improve my English and the ability of literal explanation without help. I hope it is clear to understand.

- Create a webpage based on provided design and assets.
- Create and link an external CSS stylesheet with an HTML document.
- Display images in a webpage using HTML image tags and CSS `background` property.
- Use the CSS `position` property to position elements on a webpage.
- Use Flexbox to layout and position elements on a webpage.
- Center content on a webpage, including images and text.
- Submit completed work using Git and GitHub by creating a Pull Request.
Here is the screenshot of the clone project:

<br>
<hr>
![spotify-clone-png-naim](image.png)

</details>

## Introduction

Everybody likes music, right? So the odds are that you have heard of **Spotify**.

In this lab, we will be building a simplified version of the Spotify landing page:

![Spotify image](https://i.imgur.com/xVD0bm6.jpg)

<br>

All of the necessary assets and images are already provided. You might also find it useful to resort to the **[full-length PDF version of the website](https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/spotify-prototype.pdf)** as a reference.

## Requirements

- Fork this repo
- Clone this repo

## Submission

Upon completion, run the following commands:

```shell
git add .
git commit -m "done"
git push origin master
```

Create Pull Request so your TAs can check up your work.

## Instructions

You are provided with some assets - in the `images` folder, you will find the necessary images, and the text is ready for you in the `index.html` file. Write your HTML and CSS code in the `index.html` and `styles/style.css` files, respectively. Again, remember to follow the best practices.

The page is split into 4 sections, and we have generously cut it down into pieces!

In general, website designs don't just come out of the wild, so you will likely have mockups/sketches that you will have to integrate. Therefore, it is a good practice to help you cut the website into pieces before coding to help you _**structuring**_ your HTML.

_**The last section isn't as detailed as the others ones, good luck**_ :smile:

:muscle: :muscle: :muscle:
<br>
![](https://res.cloudinary.com/ihwebdeb/image/upload/v1571085836/Ironhack/spotify-prototype_1x_ahk8ep.jpg)

Let's do this!

### Iteration 1: Navbar

- The navbar should be `position: fixed`.
- Align the logo to the left and the `ul` with the links to the right, either using `float` or `flex`.

### Iteration 2: Large image background with text

- Check out [this guide](https://css-tricks.com/centering-css-complete-guide/) on centering things.

### Iteration 3: What is on Spotify section

- It looks like the `div`s take up about a third of the container each. How can you represent this in code?

### Iteration 4: The green section

- It looks like we have 2 main sections, a containing element with the text flowing from top to bottom and the image of the Spotify player on the right.
- Position the Spotify logo absolutely according to the _green_ `div`.

<br>

**Happy coding!** :heart:
102 changes: 86 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,88 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Spotify Clone</title>
<!-- don't forget to link your styles -->
</head>
<body>
Premium Discover Help Download Music for everyone. Spotify is now free on mobile, tablet and computer. Listen to the
right music, wherever you are. What’s on Spotify? Millions of Songs There are millions of songs on Spotify HD Music
Listen to music as if you were listening live Stream Everywhere Stream music on your smartphone, tablet or computer
It’s as yeezy as Kanye West. Search Know what you want to listen to? Just search and hit play. Browse Check out the
latest charts, brand new releases and great playlists for right now. Discover Enjoy new music every Monday with your
own personal playlist. Or sit back and enjoy Radio.
</body>
</html>

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Spotify Clone</title>
<link rel="stylesheet" href="styles/style.css
">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Tagesschrift&display=swap"
rel="stylesheet">
</head>

<body>

<header>
<a href="https://spotify.com"><img id="navbar-logo" src="images/spotify-logo.png" alt=""></a>
<nav>
<ul>
<li><a href="">Premium</a></li>
<li><a href="">Discover</a></li>
<li><a href="">Help</a></li>
<li><a href="">Download</a></li>
</ul>
</nav>
</header>

<section id="hero-banner">
<h1>Music for everyone.</h1>
<p>Spotify is now free on mobile, tablet and computer.
Listen to the right music, wherever you are.</p>
</section>

<section id="features">
<h1>What’s on Spotify?</h1>
<div class="line"></div>
<div class="container">
<div class="feature-cards">
<img src="/images/music-icon.png" alt="">
<h4>Millions of Songs</h4>
<p>There are millions of songs on Spotify</p>
</div>
<div class="feature-cards">
<img src="/images/high-quality-icon.png" alt="">
<h4>HD Music</h4>
<p>Listen to music as if you were listening live</p>
</div>
<div class="feature-cards">
<img src="/images/devices-icon.png" alt="">
<h4>Stream Everywhere</h4>
<p>Stream music on your smartphone, tablet or computer</p>
</div>
</div>
</section>

<section id="advertise">

<div class="container">
<div class="ads-container">
<h3>It’s as yeezy as Kanye West.</h3>
<div class="line"></div>
<div class="ads-card">
<h4>Search</h4>
<p>Know what you want to listen to? Just search and hit play.</p>
</div>
<div class="ads-card">
<h4>Browse</h4>
<p>Check out the
latest charts, brand new releases and great playlists for right now.</p>
</div>
<div class="ads-card">
<h4>Discover</h4>
<p>Enjoy new music every Monday with your
own personal playlist. Or sit back and enjoy Radio.</p>
</div>
</div>
<div class="img-container">
<img src="/images/spotify-app.jpg" alt="">
</div>
</div>
</section>
</body>

</html>
180 changes: 174 additions & 6 deletions styles/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,176 @@
/*
Colors:
* {
margin: 0;
padding: 0;
font-family: "Poppins", sans-serif;
font-weight: 400;
font-style: normal;
}

Text: 1A1A1A
Green: #00B172
White: #FFF
/* header */

*/
header {
background-color: rgb(255, 255, 255);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1rem;
}

header a img {
height: 2rem;
}

header nav ul {
display: flex;

}

header nav ul li {
list-style: none;
margin: 0 0.4rem;
}


header nav ul li a {
text-decoration: none;
}

header nav ul li a:visited {
text-decoration: none;
color: black;
}

/* hero banner landing */

#hero-banner {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
background-image: url(/images/landing.jpg);
background-size: cover;
background-position: center;
height: 32rem;
color: white;
}

#hero-banner h1 {
font-size: 2.8rem;
font-weight: 400;
margin-bottom: 1rem;
}

#hero-banner p {
padding: 0 9.8rem;
font-weight: 200;
margin-bottom: 4rem;
}

/* #features */
#features {
padding: 2rem;
}

#features h1 {
text-align: center;
font-weight: 500;
}

#features .line {
border: solid 2px;
color: #00B172;
width: 16rem;
margin: 0 auto;
}

#features .container {
display: flex;
justify-content: space-around;
text-align: center;
align-items: center;
}

#features .container .feature-cards {
height: 16rem;
width: 18rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1rem;

}

#features .container .feature-cards img {
height: 3rem;
}

#features .container .feature-cards h4 {
font-size: large;
font-weight: bold;
color: #00B172;
}

#features .container .feature-cards p {
min-height: 5rem;
font-weight: 200;
max-width: 70%;
}

/* #advertise */

#advertise {
background-color: #00B172;
background-image: url(/images/spotify-icon-white.png);
background-position: center;
background-repeat: no-repeat;
background-size: 10%;
height: auto;
color: #fff;
padding: 2rem 6rem;
}
#advertise .container{
display: flex;
justify-content: space-between;
}

#advertise .container .ads-container {
height: auto;
width: 20rem;
display: flex;
flex-direction: column;
align-items: start;
justify-content: space-around;
}

#advertise .container .ads-container h3 {
font-weight: 600;
font-size: larger;
}

#advertise .container .ads-container .line {
border: solid 2px;
color: #ffffff;
width: 16rem;
}

#advertise .container .ads-container .ads-card {
margin-top: 2rem;
}
#advertise .container .ads-container .ads-card h4 {
font-weight: 800;
}
#advertise .container .ads-container .ads-card p {
width: 80%;
margin-top: 1rem;
font-weight: 200;
}

#advertise .container .img-container {
display: flex;
align-items: center;
}
#advertise .container img {
height: 28rem;
}