diff --git a/index.html b/index.html index 0697f92fe..880b599da 100644 --- a/index.html +++ b/index.html @@ -1,18 +1,87 @@ - - - - - Spotify Clone - - - - 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. - - + + + + + + Spotify Clone + + + + + + + + +
+
+

Music for everyone.

+

Spotify is now free on mobile, tablet and computer. Listen to the right music, wherever you are.

+
+
+ + +
+

What's on Spotify?

+
+
+ Sound Icon +

Millions of Songs

+

There are millions of songs on Spotify

+
+
+ High Quality Icon +

HD Music

+

Listen to music as if you were listening live

+
+
+ Devices Icon +

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.

+ + +
+ +
+ Spotify Player +
+
+ + + + \ No newline at end of file diff --git a/styles/style.css b/styles/style.css index 55efb32c6..f3a63a3e9 100644 --- a/styles/style.css +++ b/styles/style.css @@ -6,3 +6,334 @@ Green: #00B172 White: #FFF */ + +:root { + --text-color: #1A1A1A; + --green: #00B172 +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + margin: 0; + font-family: "Segoe UI", sans-serif; + + + color: var(--text-color); + background-color: white; +} + +/* Menu */ +.navbar { + position: fixed; + top: 0; + width: 100%; + background-color: white; + padding: 15px 30px; + display: flex; + align-items: center; + justify-content: space-between; + z-index: 1000; +} + +.logo { + height: 40px; +} + +.menu { + list-style: none; + display: flex; + margin: 0; + padding: 0; +} + +.menu li { + margin-left: 25px; +} + +.menu a { + color: var(--text-color); + text-decoration: none; + font-weight: 500; +} + +.menu a:hover { + text-decoration: underline; +} + +/* hero section */ +.hero { + background-image: url('../images/landing.jpg'); + background-size: cover; + background-position: center; + height: 100vh; + color: white; + display: flex; + align-items: center; + justify-content: center; + text-align: center; + padding: 0 20px; + position: relative; +} + +.hero__content { + position: relative; + z-index: 2; + max-width: 800px; +} + +.hero h1 { + font-size: 60px; + font-weight: 500; + margin-bottom: 20px; +} + +.hero p { + font-size: 24px; + font-weight: 400; + line-height: 1.6; +} + +/* features section */ +.features { + padding: 80px 30px; + text-align: center; + background: #f5f5f5; +} + +.features h2 { + font-size: 36px; + margin-bottom: 50px; + font-weight: 500; +} + +.features__container { + display: flex; + justify-content: space-between; + gap: 30px; + flex-wrap: wrap; + + padding: 0 30px; +} + +.feature { + flex: 1 1 30%; + background: white; + padding: 30px 20px; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); + border-radius: 10px; +} + +.feature h3 { + font-size: 22px; + margin-bottom: 15px; + color: var(--green); +} + +.feature p { + font-size: 16px; + color: #333; + line-height: 1.6; +} + +.feature-card-image { + height: 150px; + width: auto; + padding: 20px; +} + +/* Green section */ +.green-section { + height: 100vh; + background-color: var(--green); + color: white; + padding: 80px; + display: flex; + position: relative; +} + +.green-logo { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + height: 100px; +} + +.green-content { + flex: 1 1 50%; + padding-right: 80px; + display: flex; + flex-direction: column; + justify-content: space-between; +} + +.green-title { + font-size: 36px; + font-weight: 500; + width: fit-content; + letter-spacing: 2px; + border-bottom: 3px solid white; + display: inline-block; + padding-bottom: 8px; + margin-bottom: 8px; +} + +.green-content h3 { + font-size: 32px; + font-weight: 500; +} + +.green-content p { + font-size: 20px; + line-height: 1.5; + font-weight: 100; +} + +.green-image { + flex: 1 1 40%; + display: flex; + align-items: center; + justify-content: flex-end; + max-width: 100%; +} + +.green-image img { + height: calc(100vh - 160px); + width: auto; + max-height: 100%; + object-fit: contain; +} + + +@media (max-width: 768px) { + + /* logo to the right */ + .logo { + position: absolute; + right: 20px; + } + + /* Navbar: vertical */ + .navbar { + flex-direction: column; + align-items: flex-start; + padding: 20px; + } + + .menu { + flex-direction: column; + align-items: flex-start; + gap: 10px; + margin-top: 10px; + } + + .menu li { + margin-left: 0; + } + + /* Hero: smaller fonts*/ + .hero h1 { + font-size: 36px; + } + + .hero p { + font-size: 18px; + } + + /* Features: column */ + .features__container { + flex-direction: column; + padding: 0; + } + + .feature { + flex: 1 1 100%; + margin-bottom: 20px; + } + + .feature-card-image { + height: 100px; + padding: 10px; + } + + /* Green Section: vertical*/ + .green-section { + flex-direction: column; + height: auto; + padding: 40px 20px; + gap: 40px; + } + + .green-content { + flex: none; + padding-right: 0; + } + + .green-content h3 { + font-size: 24px; + } + + .green-content p { + font-size: 16px; + } + + .green-title { + font-size: 28px; + } + + .green-image { + flex: none; + justify-content: center; + padding: 0; + } + + .green-image img { + max-height: 300px; + width: 100%; + height: auto; + } + + /* hide for mobile version */ + .green-logo { + display: none; + } +} + +/* Burger menu */ + +/* hidden for desktop */ +.menu-toggle { + display: none; +} + +.burger { + width: 28px; + font-size: 28px; + cursor: pointer; + display: none; +} + +/* Show for mobiles*/ +@media (max-width: 768px) { + .burger { + display: block; + color: var(--text-color); + } + + .menu { + display: none; + flex-direction: column; + width: 100%; + margin-top: 10px; + } + + /* when active - show */ + .menu-toggle:checked+.burger+.menu { + display: flex; + } +} \ No newline at end of file