build out comment page and opengraph rendering

This commit is contained in:
2024-11-28 01:51:52 -07:00
parent e660906090
commit 92c981a7e3
13 changed files with 708 additions and 295 deletions

View File

@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AnyRemark</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<nav>
<a href="#">Home</a>
<a href="#">About</a>
</nav>
</header>
<main>
<article>
<h1>Stingrays with Friends - FPV Formation</h1>
<p>My favorite thing to do in this hobby is fly FPV with friends and chase planes. Morning FPV flights with Ben and Eric. If you are interested in this plane (The...</p>
<div class="video-container">
<img src="https://via.placeholder.com/800x450" alt="Video Thumbnail">
<div class="play-button"></div>
</div>
</article>
<section class="comments">
<h2>Comments</h2>
<div class="comment">
<img src="https://via.placeholder.com/50" alt="User Avatar" class="avatar">
<div class="comment-content">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi.</p>
</div>
</div>
<div class="comment">
<img src="https://via.placeholder.com/50" alt="User Avatar" class="avatar">
<div class="comment-content">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi.</p>
</div>
</div>
<div class="comment">
<img src="https://via.placeholder.com/50" alt="User Avatar" class="avatar">
<div class="comment-content">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi.</p>
</div>
</div>
<form class="comment-form">
<textarea placeholder="Add a comment..."></textarea>
<button type="submit">Submit</button>
</form>
</section>
</main>
<footer>
<p>Video icons created by Freepik - Flaticon</p>
</footer>
</body>
</html>

142
AnyRemark-design/styles.css Normal file
View File

@ -0,0 +1,142 @@
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f9f9f9;
color: #333;
}
header {
background-color: #fff;
border-bottom: 1px solid #ddd;
padding: 10px 20px;
}
nav a {
margin-right: 20px;
color: #007bff;
text-decoration: none;
}
nav a:hover {
text-decoration: underline;
}
main {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
article h1 {
color: #28a745;
font-size: 24px;
}
.video-container {
position: relative;
padding-top: 56.25%; /* 16:9 Aspect Ratio */
margin-top: 20px;
margin-bottom: 20px;
}
.video-container img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 8px;
}
.play-button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 60px;
height: 60px;
background: rgba(0, 0, 0, 0.5);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.play-button::before {
content: '';
display: block;
width: 0;
height: 0;
border-left: 20px solid white;
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
}
.comments {
margin-top: 40px;
}
.comments h2 {
font-size: 20px;
margin-bottom: 20px;
}
.comment {
display: flex;
align-items: flex-start;
margin-bottom: 20px;
}
.comment .avatar {
width: 50px;
height: 50px;
border-radius: 50%;
margin-right: 10px;
}
.comment-content {
background-color: #f1f1f1;
padding: 10px 15px;
border-radius: 8px;
flex-grow: 1;
}
.comment-form {
display: flex;
flex-direction: column;
}
.comment-form textarea {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ddd;
border-radius: 8px;
resize: none;
}
.comment-form button {
align-self: flex-end;
padding: 10px 20px;
background-color: #28a745;
color: #fff;
border: none;
border-radius: 8px;
cursor: pointer;
}
.comment-form button:hover {
background-color: #218838;
}
footer {
text-align: center;
padding: 20px;
background-color: #fff;
border-top: 1px solid #ddd;
}