Add style to pages
git-svn-id: file:///srv/svn/repo/marisa/trunk@15 d6811dac-2434-b64a-9ddc-f563ab233461
This commit is contained in:
BIN
static/favicon.ico
Normal file
BIN
static/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 141 KiB |
55
static/partage.css
Normal file
55
static/partage.css
Normal file
@@ -0,0 +1,55 @@
|
||||
body {
|
||||
padding: 5%;
|
||||
margin: auto;
|
||||
max-width: 540px;
|
||||
text-align: center;
|
||||
font-family: serif;
|
||||
font-size: 1.5rem;
|
||||
background-color: #eeeeee;
|
||||
color: #222222;
|
||||
}
|
||||
|
||||
header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
max-height: 30vh;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
|
||||
h1 { font-size: 3rem; }
|
||||
img#logo { height: 4rem; }
|
||||
ul { list-style: none; padding: 0; }
|
||||
|
||||
/* font attributes are not inherited by default */
|
||||
input, input::file-selector-button {
|
||||
text-align: inherit;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
|
||||
@media (orientation: portrait) {
|
||||
header { flex-direction: column; max-height: 50vh; }
|
||||
h1 { font-size: 3rem; }
|
||||
img#logo { height: 30vh; }
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
a { color: black; }
|
||||
body {
|
||||
color: #222222;
|
||||
background-color: #eeeeee;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
a { color: white; }
|
||||
body {
|
||||
color: #eeeeee;
|
||||
background-color: #222222;
|
||||
}
|
||||
}
|
||||
|
||||
BIN
static/partage.png
Normal file
BIN
static/partage.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -4,19 +4,23 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="author" content="z3bra">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" type="text/css" href="/partage.css" />
|
||||
<link rel="icon" type="image/png" href="/favicon.ico" />
|
||||
<title>Partage</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Partage</h1>
|
||||
<header>
|
||||
<img id="logo" src="/partage.png" />
|
||||
<h1>partage</h1>
|
||||
</header>
|
||||
<p>
|
||||
Use the box below to upload and share files. File size is
|
||||
limited to {{.Maxsize}}.
|
||||
</p>
|
||||
<form enctype="multipart/form-data" method="post">
|
||||
<label for="uck">Select file(s) to share</label>
|
||||
<input id="uck" name="uck" type="file" multiple/>
|
||||
<input id="output" name="output" type="hidden" value='html' />
|
||||
<input type="submit" value="Upload!"/>
|
||||
<input type="submit" value="...Share"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -4,14 +4,15 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="author" content="z3bra">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" type="text/css" href="/partage.css" />
|
||||
<link rel="icon" type="image/png" href="/favicon.ico" />
|
||||
<title>Partage</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>File uploaded!</h1>
|
||||
<p>
|
||||
Your files have been uploaded. Access and download it from the
|
||||
following links:
|
||||
</p>
|
||||
<header>
|
||||
<h1>partage</h1>
|
||||
<img id="logo" src="/partage.png" />
|
||||
</header>
|
||||
<ul>
|
||||
{{range .Links}}
|
||||
<li><a href="{{.}}">{{.}}</a></li>
|
||||
|
||||
Reference in New Issue
Block a user