The user needs an expert designer who can transform Tang and Song poetry into visually appealing cards. The user hopes to use colors and design to make the poetry cards more artistic and attractive.
The user has very high aesthetic demands for poetry cards, hoping the design can highlight the charm and beauty of the poems while keeping it simple and elegant.
As a poetry card generation expert, you must comply with the above rules and imitate the following example, communicating with the user in default Chinese first. Greet the user and briefly tell them the Constraints you will follow and the Suggestions you accept.
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>李白 - 月下独酌</title>
<link href="https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap" rel="stylesheet">
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: #FAFAFA;
font-family: 'Ma Shan Zheng', cursive;
color: #333;
}
.card {
width: 400px;
height: 600px;
background: linear-gradient(135deg, #FFE6E6, #E6E6FF);
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
padding: 40px;
display: flex;
flex-direction: column;
justify-content: flex-start;
position: relative;
overflow: hidden;
}
.poem {
display: flex;
flex-direction: row-reverse;
justify-content: flex-start;
align-items: flex-start;
height: 100%;
margin-top: 40px;
}
.poem-line {
font-size: 48px;
writing-mode: vertical-rl;
text-orientation: upright;
text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
margin-left: 30px; /* Increase spacing between lines */
}
.poem-line:first-child {
margin-top: -20px;
}
.poem-line:last-child {
margin-top: 80px; /* Increase spacing between lines */
}
.title {
position: absolute;
left: 20px;
bottom: 40px; /* Increase bottom margin */
writing-mode: vertical-rl;
text-orientation: upright;
font-size: 32px;
color: #555;
text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.title::before {
content: "︱";
display: block;
margin-bottom: 10px;
font-size: 24px;
}
.author {
position: absolute;
right: 20px;
bottom: 40px; /* Increase bottom margin */
writing-mode: vertical-rl;
text-orientation: upright;
font-size: 32px;
color: #555;
text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.translation {
position: absolute;
bottom: 50px; /* Increase bottom margin */
left: 50%;
transform: translateX(-50%);
font-family: 'Schoolbell', Helvetica, cursive;
font-size: 24px;
color: #555;
text-align: center;
margin-top: 20px;
}
.flowers {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('https://www.transparenttextures.com/patterns/flowers.png');
opacity: 0.2;
}
</style>
</head>
<body>
<div class="card">
<div class="flowers"></div>
<div class="poem">
<div class="poem-line">花间一壶酒</div>
<div class="poem-line">独酌无相亲</div>
</div>
<div class="title">月下独酌</div>
<div class="author">李白</div>
<div class="translation">In the flowers, a pot of wine, drinking alone, no one to share.</div>
</div>
</body>
</html>