78 lines
2.6 KiB
HTML
78 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>My Homepage</title>
|
|
<style>
|
|
html, body {
|
|
height: 100%; /* Ensures the background covers the entire viewport */
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
display: flex;
|
|
justify-content: left; /* Align content to the right */
|
|
align-items: center; /* Vertically center content */
|
|
background-image: url('../../../media/wallpapers/catppuccin/nixos-catppuccin.png'); /* Path to your local image */
|
|
background-size: cover;
|
|
background-position: right; /* Adjust the background image to stay aligned to the left */
|
|
background-attachment: fixed;
|
|
background-repeat: no-repeat;
|
|
min-height: 100vh; /* Ensure it covers at least the full viewport */
|
|
padding-left: 140px; /* Add space between the content and the right edge */
|
|
}
|
|
.content {
|
|
text-align: center; /* Align text and links to the right */
|
|
}
|
|
.links {
|
|
margin-bottom: 20px;
|
|
}
|
|
a {
|
|
color: white;
|
|
text-decoration: none;
|
|
font-size: 1.2em;
|
|
margin-left: 10px;
|
|
margin-right: 10px;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
.search {
|
|
margin-top: 20px;
|
|
}
|
|
input[type="text"] {
|
|
padding: 10px;
|
|
font-size: 1.5em;
|
|
width: 50%;
|
|
border: none;
|
|
border-radius: 5px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="content">
|
|
<div class="links">
|
|
<a href="https://github.com" target="_blank">GitHub</a>
|
|
<a href="https://www.youtube.com" target="_blank">YouTube</a>
|
|
<a href="https://chat.openai.com" target="_blank">ChatGPT</a>
|
|
<a href="https://app.dataannotation.tech/users/sign_in" target="_blank">Data Annotation</a>
|
|
</div>
|
|
|
|
<div class="search">
|
|
<input type="text" id="search" placeholder="Search the web..." onkeydown="search(event)">
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function search(event) {
|
|
if (event.key === "Enter") {
|
|
const query = document.getElementById("search").value;
|
|
window.location.href = `https://www.google.com/search?q=${query}`;
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|