fanzine/popup/fanzine.html

122 lines
2.2 KiB
HTML
Raw Normal View History

2022-03-23 17:25:29 +00:00
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
:root {
--main-color: #1eb35a;
}
/* Generic parameters */
* {
font-family: Helvetica, Verdana, Arial, sans-serif;
}
body {
min-width: 300px;
}
/* Navigation logic */
section {
display: none;
}
section:target {
display: block;
}
/* Components definition */
a {
text-decoration: none;
color: #111;
border-radius: 5px;
}
a:hover {
background-color: #ddd;
}
a.primary {
padding: 0.2rem 0.5rem 0.4rem 0.5rem;
display: block;
text-align: center;
color: #fff;
background-color: var(--main-color);
}
textarea {
font-family: monospace;
margin: 1rem 0rem;
resize: none;
box-sizing: border-box;
width: 100%;
height: 300px;
padding: 0.5rem;
line-height: 1.5;
border-radius: 5px;
border: 1px solid #ccc;
/*box-shadow: 1px 1px 1px #999;*/
}
/* Menu interface */
.menu-elem, .menu-title {
display: block;
padding: 0.2rem 0.5rem 0.4rem 0.5rem;
margin: 0.3rem;
user-select: none;
}
.menu-title {
font-weight: bold;
border-bottom: 2px solid var(--main-color);
}
.menu-title > a {
padding: 0.2rem 0.5rem 0.4rem 0.5rem;
margin: 0.3rem;
}
.menu-elem:after {
content: ">";
text-align: right;
float:right;
}
hr {
border: none;
border-bottom: 1px solid #ccc;
}
</style>
</head>
<body>
<section id="home">
<div class="menu-title">Publier sur mon site web</div>
<a class="menu-elem" href="#plain-text">Texte brut</a>
<div class="menu-elem">Brève</div>
<div class="menu-elem">Galerie photo</div>
<div class="menu-elem">Fichiers</div>
<div class="menu-elem">Podcast</div>
<hr>
<div class="menu-elem">Manuellement</div>
<div class="menu-elem">Paramètres</div>
</section>
<section id="plain-text">
<div class="menu-title"><a href="#home">&lt;</a> Texte brut</div>
<textarea id="plain-text-content" placeholder="Collez votre texte à partager ici"></textarea>
<a class="primary" id="plain-text-send" href="#plain-text-done">Envoyer</a>
</section>
<section id="plain-text-done">
<div id="output">Please wait...</div>
</section>
<script src="aws-sdk.js"></script>
<script src="config.js"></script>
<script src="fanzine.js"></script>
</body>
</html>