base
This commit is contained in:
30
index.html
30
index.html
@@ -4,11 +4,33 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Пидис страничка</title>
|
||||
<link rel='stylesheet' type='text/css' media='screen' href="style.css"/>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<main>
|
||||
<!--Header-->
|
||||
|
||||
<div class="header">
|
||||
<ul class="nav">
|
||||
<li><a href="#home">Home</a></li>
|
||||
<li><a href="#info">Info</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!--Title-->
|
||||
|
||||
<h1>Welcome to my website</h1>
|
||||
|
||||
<!--Main Text-->
|
||||
|
||||
<div class="container">
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
|
||||
<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
||||
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
|
||||
<p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
</div>
|
||||
|
||||
<!--Footer-->
|
||||
<footer>© 2023, Antone</footer>
|
||||
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
128
style.css
Normal file
128
style.css
Normal file
@@ -0,0 +1,128 @@
|
||||
/* Header */
|
||||
|
||||
.header {
|
||||
|
||||
background-color: #d6ab00;
|
||||
|
||||
padding: 1rem;
|
||||
|
||||
display: flex;
|
||||
|
||||
justify-content: space-between;
|
||||
|
||||
align-items: center;
|
||||
|
||||
/* position: fixed; */
|
||||
|
||||
top: 0;
|
||||
|
||||
left: 0;
|
||||
|
||||
right: 0;
|
||||
|
||||
z-index: 999;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.nav {
|
||||
|
||||
list-style-type: none;
|
||||
|
||||
margin: 0;
|
||||
|
||||
padding: 0;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
background-color: transparent;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.nav li {
|
||||
|
||||
float: left;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.nav a {
|
||||
|
||||
color: white;
|
||||
|
||||
text-align: center;
|
||||
|
||||
padding: 14px 16px;
|
||||
|
||||
text-decoration: none;
|
||||
|
||||
transition: all 0.3s ease 0s;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.nav a:hover {
|
||||
|
||||
color: black;
|
||||
|
||||
font-weight: bold;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Title */
|
||||
|
||||
h1 {
|
||||
|
||||
text-align: center;
|
||||
|
||||
font-size: xx-large;
|
||||
|
||||
font-family: Arial, sans-serif;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Main Text */
|
||||
|
||||
.container {
|
||||
|
||||
max-width: 80%;
|
||||
|
||||
margin: auto;
|
||||
|
||||
padding: 2rem;
|
||||
|
||||
line-height: 1.5;
|
||||
|
||||
font-size: medium;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Footer */
|
||||
|
||||
footer {
|
||||
|
||||
background-color: #3e3e3e;
|
||||
|
||||
color: white;
|
||||
|
||||
text-align: center;
|
||||
|
||||
padding: 1rem;
|
||||
|
||||
position: absolute;
|
||||
|
||||
bottom: 0;
|
||||
|
||||
width: 100%;
|
||||
}
|
||||
Reference in New Issue
Block a user