67 lines
1.9 KiB
HTML
67 lines
1.9 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Twitter Clone Local</title>
|
|
<link rel="stylesheet" href="/styles.css" />
|
|
</head>
|
|
<body>
|
|
<main class="app">
|
|
<header class="topbar">
|
|
<h1>Twitter Clone Local</h1>
|
|
<p>Post, like, and reply on a local timeline.</p>
|
|
</header>
|
|
|
|
<section class="composer card">
|
|
<h2>New Tweet</h2>
|
|
<form id="tweet-form">
|
|
<label>
|
|
Author
|
|
<input id="author" name="author" maxlength="32" placeholder="your-handle" required />
|
|
</label>
|
|
<label>
|
|
Text
|
|
<textarea id="text" name="text" maxlength="280" placeholder="What is happening?" required></textarea>
|
|
</label>
|
|
<button type="submit">Tweet</button>
|
|
</form>
|
|
<p id="status" class="status"></p>
|
|
</section>
|
|
|
|
<section class="timeline card">
|
|
<div class="timeline-head">
|
|
<h2>Timeline</h2>
|
|
<button id="refresh" type="button">Refresh</button>
|
|
</div>
|
|
<ul id="tweets" class="tweets"></ul>
|
|
</section>
|
|
</main>
|
|
|
|
<template id="tweet-template">
|
|
<li class="tweet">
|
|
<div class="tweet-head">
|
|
<span class="author"></span>
|
|
<span class="time"></span>
|
|
</div>
|
|
<p class="tweet-text"></p>
|
|
<div class="tweet-actions">
|
|
<button class="like-btn" type="button">Like</button>
|
|
<span class="likes"></span>
|
|
</div>
|
|
<details class="replies-wrap">
|
|
<summary>Replies</summary>
|
|
<ul class="replies"></ul>
|
|
<form class="reply-form">
|
|
<input class="reply-author" placeholder="author" maxlength="32" required />
|
|
<input class="reply-text" placeholder="reply" maxlength="280" required />
|
|
<button type="submit">Reply</button>
|
|
</form>
|
|
</details>
|
|
</li>
|
|
</template>
|
|
|
|
<script src="/app.js"></script>
|
|
</body>
|
|
</html>
|