<!DOCTYPE html>
<html>
<head>
<title>PasteME</title>
<style>
/ Reset styles /
- {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/ Basic layout styles /
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
}
header {
background-color: #333;
color: #fff;
padding: 1rem;
}
.logo {
font-size: 2rem;
font-weight: bold;
}
main {
max-width: 800px;
margin: 2rem auto;
}
/ Form styles /
.create-paste-form {
background-color: #fff;
padding: 1rem;
border-radius: 5px;
box-shadow: 0px 0px 10px #999;
}
text {
width: 100%;
min-height: 200px;
padding: 1rem;
font-size: 1.2rem;
border: none;
border-radius: 5px;
}
.form-actions {
text-align: right;
margin-top: 1rem;
}
submit-btn {
background-color: #333;
color: #fff;
border: none;
padding: 0.5rem 1rem;
border-radius: 5px;
cursor: pointer;
}
/ Saved text styles /
saved-text-container {
background-color: #fff;
padding: 1rem;
margin-top: 2rem;
border-radius: 5px;
box-shadow: 0px 0px 10px #999;
}
saved-text {
font-size: 1.2rem;
white-space: pre-wrap;
}
saved-url{
font-size: 1.2rem;
}
</style>
</head>
<body>
<script src="script.js"></script>
<header>
<div class="logo">PasteME</div>
</header>
<main>
<div class="create-paste-form" id="create-paste-form">
<form id="paste-form" method='post' action='/'>
<textarea id="text" placeholder="Enter your text here" name="pasteText"></textarea>
<div class="form-actions">
<button id="submit-btn" type="submit">Save</button>
</div>
</form>
</div>
<div id="saved-text-container" style="display:none;">
<pre id="text"></pre>
</div>
</main>
<script src="script.js"></script>
</body>
</html>