Skip to content

done #2840

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 1 commit into
base: master
Choose a base branch
from
Open

done #2840

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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5502
}
66 changes: 59 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,65 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Instagram Clone</title>
<!-- don't forget to link your styles -->
<!-- Link your styles -->
<link rel="stylesheet" href="styles/style.css" />
</head>
<body>
Instagram Capture and Share the World's Moments Instagram is a fast, beautiful and fun way to share your life with
friends and family. Take a picture or video, choose a filter to transform its look and feel, then post to Instagram
&mdash; it's that easy. You can even share to Facebook, Twitter, Tumblr and more. It's a new way to see the world.
Oh yeah, did we mention it's free? Download on the App Store Get it on Google Play About Us Support Blog Press API
Jobs Privacy Terms &copy; 2014 Instagram
<main>
<!-- Left section with phone image -->
<div class="phone-container">
<img src="images/phones.png" alt="Instagram on iPhone" class="phone-img" />
</div>

<!-- Right section with content -->
<div class="content-container">
<div class="logo-container">
<img src="images/brand.png" alt="Instagram logo" class="logo-img" />
</div>

<div class="login-container">
<button class="login-btn">
<img src="images/home.png" alt="Home icon" class="login-icon" />
Log in
</button>
</div>

<div class="description">
<h2>Capture and Share the World's Moments</h2>
<p>
Instagram is a <strong>fast</strong>, <strong>beautiful</strong> and <strong>fun</strong> way to share your life with
friends and family.
</p>
<p>
Take a picture or video, choose a filter to transform its look and feel, then post to Instagram
&mdash; it's that easy. You can even share to Facebook, Twitter, Tumblr and more. It's a new way to see the world.
</p>
<p>Oh yeah, did we mention it's free?</p>

<div class="app-stores">
<a href="#" class="app-store">
<img src="images/badge-iphone.png" alt="Download on the App Store" />
</a>
<a href="#" class="app-store">
<img src="images/badge-android.png" alt="Get it on Google Play" />
</a>
</div>
</div>
</div>
</main>

<footer>
<ul class="footer-links">
<li><a href="#">About Us</a></li>
<li><a href="#">Support</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Press</a></li>
<li><a href="#">API</a></li>
<li><a href="#">Jobs</a></li>
<li><a href="#">Privacy</a></li>
<li><a href="#">Terms</a></li>
<li class="copyright">&copy; 2014 Instagram</li>
</ul>
</footer>
</body>
</html>
</html>
175 changes: 168 additions & 7 deletions styles/style.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,171 @@
/*
Colors to use:
dark blue: #06365f
light blue: #1c5380
*/
/* Color palette */
:root {
--blue: #1c5380;
--light-blue: #4b85bb;
--button-blue: #4090db;
--background-grey: #fafafa;
--border-grey: #edeeee;
--text-grey: #999;
--text-dark: #4a4a4a;
}

body {
font: 200 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
background-color: var(--background-grey);
color: var(--text-dark);
font-size: 14px;
line-height: 1.5;
}

main {
display: flex;
max-width: 935px;
margin: 0 auto;
padding: 100px 0;
justify-content: center;
align-items: center;
}

.phone-container {
margin-right: 50px;
}

.phone-img {
max-width: 450px;
height: auto;
}

.content-container {
max-width: 350px;
display: flex;
flex-direction: column;
}

.logo-container {
margin-bottom: 30px;
}

.logo-img {
max-width: 200px;
height: auto;
}

.login-container {
margin-bottom: 20px;
}

.login-btn {
background-color: var(--button-blue);
color: white;
border: none;
border-radius: 4px;
padding: 8px 14px;
font-weight: bold;
font-size: 14px;
cursor: pointer;
display: flex;
align-items: center;
}

.login-icon {
margin-right: 8px;
width: 16px;
height: 16px;
filter: brightness(0) invert(1);
}

.description h2 {
font-size: 16px;
font-weight: bold;
color: var(--blue);
margin-bottom: 20px;
line-height: 1.2;
}

.description p {
margin-bottom: 20px;
color: var(--text-dark);
}

.app-stores {
display: flex;
gap: 10px;
margin-top: 20px;
}

.app-store img {
height: 40px;
width: auto;
}

footer {
background-color: white;
border-top: 1px solid var(--border-grey);
padding: 20px 0;
}

.footer-links {
display: flex;
justify-content: center;
align-items: center;
list-style: none;
flex-wrap: wrap;
gap: 20px;
max-width: 935px;
margin: 0 auto;
}

.footer-links li a {
text-decoration: none;
color: var(--light-blue);
font-weight: bold;
text-transform: uppercase;
font-size: 12px;
}

.footer-links li a:hover {
color: var(--blue);
}

.copyright {
color: var(--text-grey);
font-size: 12px;
font-weight: normal;
text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 875px) {
main {
flex-direction: column;
padding: 50px 20px;
}

.phone-container {
margin-right: 0;
margin-bottom: 50px;
}

.phone-img {
max-width: 300px;
}

.content-container {
text-align: center;
align-items: center;
}

.app-stores {
justify-content: center;
}

.footer-links {
padding: 0 20px;
}
}