fanzine/static/popup/fanzine.html

128 lines
2.3 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>
2022-03-29 12:45:52 +00:00
2022-03-23 17:25:29 +00:00
<section id="home">
2022-03-29 13:23:10 +00:00
<div class="menu-title">Publier sur mon espace web</div>
2022-03-23 17:25:29 +00:00
<a class="menu-elem" href="#plain-text">Texte brut</a>
2022-03-29 12:45:52 +00:00
<!--<div class="menu-elem">Brève</div>-->
2022-03-23 17:25:29 +00:00
<div class="menu-elem">Galerie photo</div>
<div class="menu-elem">Fichiers</div>
<hr>
2022-03-29 12:45:52 +00:00
<div class="menu-elem">Site statique</div>
<hr>
2022-03-23 17:25:29 +00:00
<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>
2022-03-29 12:45:52 +00:00
<section id="configure">
<div class="menu-title">Paramètres</div>
</section>
2022-03-23 17:25:29 +00:00
<script src="aws-sdk.js"></script>
<script src="config.js"></script>
<script src="fanzine.js"></script>
</body>
</html>