actually comitting
This commit is contained in:
parent
7fb09983d5
commit
1d5e98c867
|
@ -0,0 +1,52 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Homepage with Sections</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="header">
|
||||
<li class="dropdown">
|
||||
<label class="dropdown-btn" for="dropdown-checkbox">Random Links</label>
|
||||
<input type="checkbox" id="dropdown-checkbox" class="dropdown-checkbox">
|
||||
<div class="dropdown-content">
|
||||
<a href="#">Random Link 1</a>
|
||||
<a href="#">Random Link 2</a>
|
||||
<a href="#">Random Link 3</a>
|
||||
</div>
|
||||
</li>
|
||||
</header>
|
||||
<div class="container">
|
||||
<div class="left desktop-only">
|
||||
<section>
|
||||
<h2>Section 1</h2>
|
||||
<a href="#">Random Link 1</a>
|
||||
<a href="#">Random Link 2</a>
|
||||
<a href="#">Random Link 3</a>
|
||||
</section>
|
||||
<section>
|
||||
<h2>Section 2</h2>
|
||||
<a href="#">Random Link 4</a>
|
||||
<a href="#">Random Link 5</a>
|
||||
<a href="#">Random Link 6</a>
|
||||
</section>
|
||||
</div>
|
||||
<div class="right">
|
||||
<section class="about-me">
|
||||
<h2>About Me</h2>
|
||||
<p>
|
||||
Hi, I'm an artist with extensive experience in various art forms. I love to create beautiful and thought-provoking pieces that inspire and challenge the viewer. In my free time, I enjoy teaching others and sharing my passion for art.
|
||||
</p>
|
||||
</section>
|
||||
<section class="my-hobbies">
|
||||
<h2>My Hobbies</h2>
|
||||
<p>
|
||||
In my free time, I enjoy a variety of hobbies, such as playing the guitar, hiking, and playing chess. These activities help me relax and recharge my mind, enabling me to tackle artistic challenges with a fresh perspective.
|
||||
</p>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Not Found</title>
|
||||
<link href="/style.css" rel="stylesheet" type="text/css" media="all">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Page Not Found</h1>
|
||||
<p>The requested page was not found.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,115 @@
|
|||
body {
|
||||
margin: 0;
|
||||
font-family: Arial, sans-serif;
|
||||
background-image: url("http://placekitten.com/800/600");
|
||||
background-size: cover;
|
||||
}
|
||||
.container {
|
||||
max-width: 960px;
|
||||
margin: 20px auto;
|
||||
padding: 0 30px;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
.left {
|
||||
flex: 1;
|
||||
margin-right: 20px;
|
||||
}
|
||||
.right {
|
||||
flex: 3;
|
||||
margin-left: 20px;
|
||||
}
|
||||
section {
|
||||
border: 1px solid #000000;
|
||||
margin-bottom: 20px;
|
||||
padding: 20px;
|
||||
box-sizing: border-box;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
h2 {
|
||||
margin: 0;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
a {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.container {
|
||||
flex-direction: column;
|
||||
}
|
||||
.left, .right {
|
||||
flex: none;
|
||||
width: 100%;
|
||||
margin-right: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
.left {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
.header {
|
||||
position: relative;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.dropdown-content {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: #f9f9f9;
|
||||
min-width: 160px;
|
||||
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.dropdown-content a {
|
||||
color: black;
|
||||
padding: 12px 16px;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dropdown-content a:hover {
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
|
||||
.dropdown-checkbox {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dropdown-checkbox:checked + .dropdown-content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dropdown-btn {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
color: inherit;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
padding: 0;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media (min-width: 769px) {
|
||||
.dropdown {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
.left.desktop-only {
|
||||
display: none;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue