Skip to content

CSS Spotify clone practice #2260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
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
113 changes: 77 additions & 36 deletions starter_code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,36 @@
</head>

<body>
<!-- NAVBAR -->

<!-- MOBILE NAVBAR -->
<nav class="mobile-nav">
<div class="nav-header">
<img src="./images/slack-logo.png" alt="Slack logo" class="logo" />
<div class="mobile-actions">
<button class="search-icon">
<img src="./images/icon-search.png" alt="Search icon">
</button>
<button class="hamburger" onclick="toggleMenu()">☰</button>
</div>
</div>

<div class="nav-menu" hidden>
<ul>
<li><a href="#">Product</a></li>
<li><a href="#">Solutions</a></li>
<li><a href="#">Resources</a></li>
<li><a href="#">Pricing</a></li>
</ul>

<ul>
<li><a href="#">Sign in</a></li>
<li><a href="#">Try for free</a></li>
</ul>
</div>
</nav>


<!-- NAVBAR -->
<nav>
<div>
<img src="./images/slack-logo.png" alt="Slack logo" />
Expand Down Expand Up @@ -60,33 +89,27 @@


<!-- HEADER -->
<header>
<div>
<h1>Great teamwork starts with a digital HQ</h1>

<p>Slack is free to try for as long as you'd like.</p>

<div>
<button>Sign up with email</button>

<button>
<img src="./images/logo-google.png" alt="Google logo" />
<span>Sign up with Google</span>
</button>
</div>

</div>

<div>
<img src="./images/hero-product-ui.png" alt="Slack app screenshot" />
</div>
</header>
<header class="hero">
<div class="hero-content">
<h1>Great teamwork starts with a digital HQ</h1>
<p><span class="highlight">Slack is free to try</span> for as long as you'd like.</p>
<button>Sign up with email</button>
<button class="google">
<img class="logo-google" src="./images/logo-google.png" alt="Google logo" />
<span>Sign up with Google</span>
</button>
</div>

<div class="hero-image">
<img src="./images/hero-product-ui.png" alt="Slack app screenshot" />
</div>
</header>

<main>
<section>
<p>Trusted by companies all over the world</p>
<section style="background-color: #F3EAE2;">
<p><strong style="text-transform: uppercase">Trusted by companies all over the world</strong></p>

<div>
<div class="logo-grid">
<img src="./images/logo-airbnb.png" alt="Airbnb logo" />
<img src="./images/logo-nasa.png" alt="NASA logo" />
<img src="./images/logo-uber.png" alt="Uber logo" />
Expand All @@ -98,29 +121,29 @@ <h1>Great teamwork starts with a digital HQ</h1>
</section>

<section>
<h3>Teams large and small rely on Slack</h3>
<h3 style="color: #611f69">Teams large and small rely on Slack</h3>
<p>Slack securely scales up to support collaboration at the world’s biggest companies.</p>


<ul>
<ul class="data-list">
<li>
<p><span>85%</span></p>
<p><span class="data-nums">85%</span></p>
<p>
of users say Slack has improved communication
<sup>*</sup>
</p>
</li>

<li>
<p><span>86%</span></p>
<p><span class="data-nums">86%</span></p>
<p>
feel their ability to work remotely has improved has improved
<sup>*</sup>
</p>
</li>

<li>
<p><span>88%</span></p>
<p><span class="data-nums">88%</span></p>
<p>
feel more connected to their teams*
<sup>*</sup>
Expand All @@ -129,11 +152,14 @@ <h3>Teams large and small rely on Slack</h3>
</ul>
</section>

<section>
<section class="CTA">
<h3>Welcome to your new digital HQ</h3>

<button>Try for free</button>
<button>Talk to sales</button>
<div style="display: flex; flex-direction: column; align-items:stretch; gap: 1rem">
<button style="color:#540B51; text-transform: uppercase;">Try for free</button>
<button style="background-color: #540B51; color: white; border: 2px solid white; text-transform: uppercase">Talk to sales</button>
</div>

</section>

</main>
Expand All @@ -145,13 +171,21 @@ <h3>Welcome to your new digital HQ</h3>
<li>Terms</li>
<li>Cookie Preferences</li>
<li>Contact Us</li>
<li>Change Region</li>
<li>Download Slack</li>
<div class="bullet">
<img src="./images/icon-region.png" alt="region icon" class="footer-icon" />
<li>Change Region</li>
</div>
<div class="bullet">
<img src="./images/icon-download.png" alt="region icon" class="footer-icon" />
<li style="color: #2E71A6">Download Slack</li>
</div>


</ul>

<hr>

<ul>
<ul style="flex-direction: row; justify-content: space-between;">
<li>
<i class="fab fa-twitter"></i>
</li>
Expand All @@ -174,6 +208,13 @@ <h3>Welcome to your new digital HQ</h3>
</div>

</footer>
<script>
function toggleMenu() {
const menu = document.querySelector('.nav-menu');
menu.hidden = !menu.hidden;
}
</script>

</body>

</html>
Loading