Initial commit

This commit is contained in:
Quentin 2022-03-23 15:20:37 +01:00
commit fb7faeb00f
4 changed files with 82 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.swp

BIN
icons/fanzine-32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

17
manifest.json Normal file
View file

@ -0,0 +1,17 @@
{
"name": "Fanzine",
"description": "Publiez sur la toile",
"version": "0.1",
"manifest_version": 2,
"browser_action": {
"default_icon": "icons/fanzine-32.png",
"default_title": "Fanzine",
"default_popup": "popup/choose_action.html#home"
},
"browser_specific_settings": {
"gecko": {
"id": "fanzine@deuxfleurs.fr"
}
}
}

64
popup/choose_action.html Normal file
View file

@ -0,0 +1,64 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
* {
font-family: Helvetica, Verdana, Arial, sans-serif;
}
body {
min-width: 300px;
}
.menu-elem, .menu-title {
padding: 0.2rem 0.5rem 0.4rem 0.5rem;
margin: 0.3rem;
user-select: none;
}
.menu-title {
font-weight: bold;
border-bottom: 2px solid #1eb35a;
}
.menu-elem {
border-radius: 5px;
}
.menu-elem:hover {
background-color: #ddd;
}
.menu-elem:after {
content: ">";
text-align: right;
float:right;
}
section {
display: none;
}
section:target {
display: block;
}
</style>
</head>
<body>
<section id="home">
<div class="menu-title">Publier sur mon site web</div>
<div class="menu-elem">Texte brut</div>
<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>
</section>
<section id="plain-text">
<div class="menu-title">Text brut</div>
</section>
</body>
</html>