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
57 changes: 51 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,58 @@
<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 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
<header>
<!-- Logo and login button centered above the content -->
<div class="header-content">
<img src="images/brand.png" alt="Instagram Logo" class="header-logo" />
<!-- Login button with local icon -->
<button class="login-btn">
<img src="images/home.png" alt="Login Icon" class="login-icon" /> Log in
</button>
</div>
</header>

<div class="main-container">
<!-- Left Section with Phone Image -->
<div class="left-section">
<img src="images/phones.png" alt="Phones displaying Instagram" class="iphone-image" />
</div>

<!-- Right Section with Text and Download Buttons -->
<div class="right-section">
<h1>Capture and Share the World's Moments</h1>
<p>
Instagram is a <strong>fast</strong>, <strong>beautiful</strong>, 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.
<br /><br />
Oh yeah, did we mention it's free?
</p>

<!-- App Download Buttons -->
<div class="app-buttons">
<img src="images/badge-iphone.png" alt="Download on the App Store" class="appstore-btn" />
<img src="images/badge-android.png" alt="Get it on Google Play" class="googleplay-btn" />
</div>
</div>
</div>

<footer>
<div class="footer-links">
<a href="#">About Us</a>
<a href="#">Support</a>
<a href="#">Blog</a>
<a href="#">Press</a>
<a href="#">API</a>
<a href="#">Jobs</a>
<a href="#">Privacy</a>
<a href="#">Terms</a>
</div>
<p>&copy; 2023 Instagram</p>
</footer>
</body>
</html>
205 changes: 205 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,209 @@ light blue: #1c5380
body {
font: 200 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: 0;
background-color: #fafafa;
color: #333;
}

/* Header styling */
header {
background: linear-gradient(to bottom, #3a94e2, #06365f); /* Adjust gradient colors for better contrast */
height: 400px; /* Increased header height for better spacing */
width: 100%; /* Full width */
position: relative;
}

.header-content {
position: absolute;
top: 68%; /* Center vertically within the header */
left: 60%;
transform: translate(-50%, -50%); /* Center horizontally */
text-align: center;
}

.header-logo {
height: 80px; /* Logo size */
}

.login-btn {
background: linear-gradient(to bottom, #3a94e2, #06365f); /* Adjust gradient colors for better contrast */
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 14px;
cursor: pointer;
margin-top: 15px;
display: inline-flex;
align-items: center;
justify-content: space-between;
position: absolute;
top: 30%; /* Center vertically within the header */
left: 130%;
transform: translate(-50%, -50%); /* Center horizontally */
text-align: center;
}

.login-btn:hover {
background-color: #3578e5;
}

/* Main content floating under the header */
.main-container {
display: flex;
justify-content: center;
align-items: flex-start;
margin-top: -200px; /* Reduced overlap for a cleaner look */
position: relative;
z-index: 2; /* Ensures content floats above header */
padding: 20px;
}

/* Left Section (Phone Image) */
.left-section {
flex: 1;
display: flex;
justify-content: space-around;
}

.iphone-image {
max-width: 400px;
height: auto;
margin-right: 40px;
}

/* Right Section (Text Box) */
.right-section {
flex: 1;
max-width: 400px;
background-color: white;
padding: 30px;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin-left: 200px;
margin-top: 120px;
}

h1 {
font-size: 24px;
color: #333;
margin-bottom: 15px;
}

p {
font-size: 16px;
line-height: 1.6;
color: #555;
}

.app-buttons {
margin-top: 20px;
display: flex;
justify-content: flex-start;
}

.appstore-btn,
.googleplay-btn {
width: 135px;
margin-right: 10px;
}

.googleplay-btn {
margin-right: 0;
}

/* Footer Styling */
footer {
text-align: center;
padding: 20px;
background-color: #fafafa;
}

.footer-links {
margin-bottom: 10px;
}

.footer-links a {
color: #999;
margin: 0 10px;
text-decoration: none;
font-size: 14px;
}

.footer-links a:hover {
text-decoration: underline;
}

footer p {
color: #999;
font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
.main-container {
flex-direction: column;
align-items: center;
margin-top: -80px; /* Less overlap on smaller screens */
}

.left-section {
justify-content: center;
margin-bottom: 20px;
}

.iphone-image {
max-width: 100%; /* Ensure image scales down on smaller screens */
margin-right: 0;
}

.right-section {
max-width: 100%;
margin-left: 0;
}

.app-buttons {
justify-content: center;
flex-direction: column;
align-items: center;
}

.appstore-btn,
.googleplay-btn {
width: 100%;
margin-bottom: 10px;
}

.googleplay-btn {
margin-bottom: 0;
}
}

@media (max-width: 480px) {
header {
height: 300px; /* Smaller header height for mobile */
}

.header-logo {
height: 60px; /* Slightly smaller logo */
}

.main-container {
margin-top: -60px; /* Reduced overlap for mobile */
}

h1 {
font-size: 20px;
}

p {
font-size: 14px;
}
}