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
14 changes: 8 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Basic Static Website</title>
<link rel="stylesheet" href="styles.css" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Basic Static Website</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="container">
<h1>Welcome to My Basic Website</h1>
<img src="https://via.placeholder.com/300x200.png?text=Sample+Image" alt="Sample" />
<p>This is a very simple static website created using HTML, CSS, and JavaScript. It has an image and some content to get started.</p>
<button id="alertBtn">Click Me</button>
</div>

<script src="script.js"></script>
<script src="script.js"></script>
</body>
</html>
</html>
83 changes: 48 additions & 35 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,36 +1,49 @@
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 40px;
background-color: #f4f4f4;
color: #333;
}
h1 {
color: #2c3e50;
}
img {
max-width: 300px;
height: auto;
margin: 20px 0;
border-radius: 8px;
box-shadow: 0 0 10px rgba(44, 62, 80, 0.2);
}
p {
font-size: 18px;
max-width: 600px;
margin: 0 auto 30px auto;
line-height: 1.5;
}
button {
background-color: #2980b9;
color: white;
border: none;
padding: 10px 20px;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #3498db;
}

font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}

.container {
text-align: center;
padding: 40px;
max-width: 700px;
}

h1 {
color: #2c3e50;
}

img {
max-width: 300px;
height: auto;
margin: 20px 0;
border-radius: 8px;
box-shadow: 0 0 10px rgba(44, 62, 80, 0.2);
}

p {
font-size: 18px;
line-height: 1.5;
margin-bottom: 30px;
}

button {
background-color: #2980b9;
color: white;
border: none;
padding: 10px 20px;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
}

button:hover {
background-color: #3498db;
}