Skip to content

Instantly share code, notes, and snippets.

@roxsross
Created January 23, 2026 02:13
Show Gist options
  • Select an option

  • Save roxsross/f24b9e9bde993509110d66122cc1e63e to your computer and use it in GitHub Desktop.

Select an option

Save roxsross/f24b9e9bde993509110d66122cc1e63e to your computer and use it in GitHub Desktop.
basic-web
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-light-blue.css">
<title>Links website</title>
<script src="https://unpkg.com/feather-icons@4.28.0/dist/feather.min.js"></script>
<style>
body {
background-image: url("https://www.w3schools.com/howto/img_link_tree_template3_bg.jpg"); /* The image used for background */
background-position: center; /* Center the image */
background-repeat: no-repeat; /* Do not repeat the image */
background-size: cover; /* Resize the background image to cover the entire container */
}
.container {
width: 100%;
height: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
.name {
margin-top: 15px !important;
}
.w3-theme-d3 {
background-color: rgba(42, 169, 219, 0.6) !important;
}
.w3-theme-d3:hover {
background-color: rgba(42, 169, 219, 0.8) !important;
}
a {
font-size: x-large;
}
.w3-border {
border: 3px solid #ccc !important;
}
.links-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 20px;
}
.links-container a {
width: 80%;
}
.profession {
font-size: 14px;
}
.subscribe {
font-size: 15px;
}
.submit form {
display: flex;
flex-direction: column;
}
.submit form button {
margin-top: 5px;
background-color: rgba(27, 122, 159, 0.9) !important;
color: #fff !important;
}
.submit form button:hover {
background-color: rgba(15, 67, 87, 0.9) !important;
color: #fff !important;
}
.submit form input {
width: 100% !important;
}
.submit form input::placeholder {
color: #fff;
}
.icons {
display: flex;
gap: 40px;
}
.icons a {
text-decoration: none;
}
.icons a svg {
fill: #d0ecf7;
transform: scale(1.5);
}
@media screen and (min-width: 768px) {
.link {
width: 100%;
}
}
@media screen and (min-width: 576px) {
.container {
max-width: 540px;
}
.profession {
font-size: 24px;
}
}
</style>
</head>
<body>
<!-- Content container -->
<div class="container">
<!-- Image and name container. Change to your picture here. -->
<div class="" style="text-align: center">
<img src="https://www.w3schools.com/howto/img_link_tree_template3_bio.jpg" class="w3-round" alt="person image" width="250px" height="200px" style="border-radius: 50%; border: 5px solid #4ab6e0 !important; margin-top: 16px;">
<p class="name"><br><span class="w3-padding w3-theme-l1 w3-margin w3-round" style="font-weight: bolder; font-size: x-large; border: 3px solid #1b7a9f;">Hey. I'm Joe!</span></p><br>
<p><span class="profession w3-padding w3-theme-d5 w3-round" style="font-weight: bolder; border: 3px solid #d0ecf7;">I am a mountain climber!</span></p><br>
</div>
<!-- Links section 1. Replace the # inside of the "" with your links. -->
<div class="links-container">
<a href="#" class="w3-button w3-round w3-theme-d3 w3-border link" target="_blank">MY CLIMBS</a>
<a href="#" class="w3-button w3-round w3-theme-d3 w3-border link" target="_blank">EXPEDITIONS</a>
<a href="#" class="w3-button w3-round w3-theme-d3 w3-border link" target="_blank">MY WORKOUT</a>
<a href="#" class="w3-button w3-round w3-theme-d3 w3-border link" target="_blank">MY BLOG</a>
<p><span class="subscribe w3-padding w3-theme-d5 w3-round" style="font-weight: bolder; border: 3px solid #d0ecf7;">Subscribe to my news!</span></p>
<div class="submit" style="width: 80%;">
<form>
<input class="w3-input w3-round w3-theme-d3 w3-border" type="text" placeholder="Your email . . . " name="email">
<button class="w3-button w3-round w3-border" type="submit">SUBSCRIBE</button>
</form>
</div>
<div class="icons w3-padding">
<a href="#" target="_blank">
<i data-feather="facebook"></i>
</a>
<a href="#" target="_blank">
<i data-feather="instagram"></i>
</a>
<a href="#" target="_blank">
<i data-feather="linkedin"></i>
</a>
<a href="#" target="_blank">
<i data-feather="twitter"></i>
</a>
</div>
</div>
<!-- Footer. This section contains an ad for W3Schools Spaces. You can leave it to support us. -->
<footer class="w3-container w3-center w3-padding-48">
<a class="w3-margin-bottom" href="https://www.w3schools.com/spaces" title="This website was made with W3schools Spaces. Make your own free website today!" target="_blank">
<img src="https://spaces.w3schools.com/logo_4x.png" alt="This website was made with W3schools Spaces. Make your own free website today!" width="50" height="50">
</a>
<!-- End footer -->
</footer>
</div>
<script>
feather.replace()
</script>
</body> </html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment