website/index.html
2024-04-21 01:37:25 -04:00

113 lines
4 KiB
HTML

<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1024">
<title>Responsive Background Image with Vertical Text</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: #d2d3d5;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
#background_container {
position: relative;
width: 80%; /* Adjust width of container */
max-width: 800px; /* Maximum width of container */
perspective: 30cm; /* Apply perspective to container */
padding: 20px; /* Add padding around the container */
display: flex;
justify-content: space-between; /* Space items evenly */
align-items: center;
}
#background_image {
width: 100%;
height: auto;
display: block;
border-radius: 8px; /* Optional: Rounded corners for image */
transform-style: preserve-3d; /* Preserve 3D transformations for child elements */
}
.vertical-text {
position: absolute;
font-size: 3em; /* Adjust font size of vertical text */
writing-mode: vertical-rl; /* Vertical right-to-left writing mode */
text-orientation: upright; /* Display characters upright */
color: #0a2b60; /* Text color (white in this example) */
z-index: 1; /* Ensure text appears above the image */
transform: rotateX(-2180deg) rotateY(-26deg); /* Apply perspective transformation to text only */
transform-origin: center center; /* Set transformation origin */
}
.perspective-box-roman {
font-size: 150%; /* Adjust font size for Roman vertical text */
color: #0a2b60; /* Set text color for Roman vertical text */
/* Apply perspective transformation to Roman vertical text */
transform: perspective(30cm) rotateX(-2180deg) rotateY(-40deg) rotateZ(90deg);
transform-origin: center center; /* Set transformation origin */
margin-top: -10px; /* Add top margin for spacing between text elements */
margin-right: 200px;
}
.text-container-top {
display: flex;
flex-direction: column;
margin-left: -900px; /* Adjust left margin to move text closer to image */
align-items: flex-start; /* Align items to the start of the container */
padding-bottom: -160px;
padding-left: -50px;
padding-right: 350px;
padding-top: 100px;
letter-spacing: 0.1em;
}
.text-container-bottom {
display: flex;
flex-direction: column;
margin-right: -700px; /* Adjust left margin to move text closer to image */
align-items: flex-start; /* Align items to the start of the container */
padding-bottom: -500px;
padding-left: -90px;
padding-right: -40px;
letter-spacing: 0.1em;
}
</style>
</head>
<body>
<div id="background_container">
<img id="background_image" src="wiped2.jpeg" alt="Image">
<div class="text-container-top">
<div class="vertical-text" style="top: 30%; right: 45%;">千住柱間</div>
<div class="vertical-text" style="top: 30%; right: 15%;">チョコミント</div>
<div class="vertical-text" style="top: 7%; right: 26%;">絶対</div>
<div class="perspective-box-roman">Hashirama</div>
<br></br><br></br>
<div class="perspective-box-roman">Madara</div>
<br></br><br></br>
<div class="perspective-box-roman">Choze</div>
<!-- Add more vertical text elements as needed -->
<br></br><br></br>
<div class="perspective-box-roman">Eduardo</div>
<div class="perspective-box-roman">ainda da pra escrever</div>
<div class="perspective-box-roman">mas sera msm?</div>
<br></br> <br></br>
<br></br> <br></br>
<div class="perspective-box-roman">human nature</div>
<br></br> <br></br>
<br></br> <br></br>
<div class="perspective-box-roman">human nature</div>
</div>
</div>
</body>
</html>