working v1

This commit is contained in:
Oliver Atkinson
2024-05-08 13:56:59 -06:00
parent cc21efdea9
commit ca8c12f56e
20 changed files with 566 additions and 365 deletions

49
www/form.css Normal file
View File

@@ -0,0 +1,49 @@
input {
color: #ffffff;
margin: 0.2rem;
}
input, label, button {
font-size: 1.5rem;
}
input[type="submit"]:focus {
outline-color: #344a70;
}
input[type="submit"] {
background-color: #344a70;
text-align: center;
}
input[type=radio] {
width: 1em;
height: 0.75em;
}
.line {
width: 100%;
text-align: center;
}
input[type="password"], [type="text"] {
background-color: #ffffff;
color: #222222;
width: 75%;
}
input[type="text"]::placeholder {
text-align: center;
color: #dddddd;
}
textarea, input {
border-radius: 0.5rem;
border-style: hidden;
padding: 0.5rem;
}
form {
display: flex;
flex-direction: column;
align-items: center;
}

47
www/index.html Normal file
View File

@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Download Youtube Videos</title>
<link rel="canonical" href="http://localhost:1313/" />
<link rel="stylesheet" type="text/css" media="screen" href="./style.css" />
<link rel="stylesheet" type="text/css" href="./lugo.css"/>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="index, follow" />
</head>
<body>
<header>
<h1>
<a href="./">Download Youtube Videos</a>
</h1>
</header>
<main>
<section>
<div class="article-header">
<h3 class="spaced"></h3>
</div>
<article>
<link rel="stylesheet" type="text/css" media="screen" href="./form.css" />
<form action="/download" enctype="application/x-www-form-urlencoded" method="post">
<input type="text" name="url" placeholder="youtube url" />
<br/>
<div class="line">
<input id="audio" type="radio" name="output" value="Audio" />
<label for="audio">Audio</label>
</div>
<div class="line">
<input id="video" type="radio" name="output" value="Video" />
<label for="video">Video</label>
</div>
<br/>
<button type="submit">Submit</button>
</form>
</article>
</section>
</main>
</body>
</html>

67
www/lugo.css Normal file
View File

@@ -0,0 +1,67 @@
/* Shortcode css*/
/* For NEXTPREV.HTML */
#nextprev {
/* The container for both the previous and next articles. */
color: black;
}
#nextprev a:any-link {
color: black;
}
#nextart {
float: left ;
text-align: left ;
}
#prevart {
float: right ;
text-align: right ;
}
#nextart,#prevart {
max-width: 33% ;
}
/* For TAGLIST.HTML */
.taglist {
text-align: center;
clear: both;
color: var(--bg-text);
}
/* For putting right / left boxes next to each other */
.left {
width: 45%;
padding-right: 5%;
float: left;
clear: both;
}
.right {
width: 45%;
padding-left: 5%;
float: right;
}
figure {
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-content: center;
align-items: center;
}
figcaption {
color: var(--bg-text);
}
img {
max-width: 100%;
max-height: 50vh;
border-radius: var(--radius);
}
.rss {
border-radius: 0.25rem;
}

141
www/style.css Normal file
View File

@@ -0,0 +1,141 @@
:root {
--bg: #222222;
--bg-text: #606060;
--text: #ffffff;
--header: #454545;
--header-text: #707070;
--content-bg: #303030;
--accent: #344a70;
--link: #3e765d;
--radius: 0.75rem;
font-family: Arial, Helvetica, sans-serif;
font-size: x-large;
}
blockquote {
background-color: var(--header);
/* border-radius: var(--radius); */
padding-left: 1rem;
padding-right: 1rem;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
margin-top: 0;
margin-bottom: 0;
}
/* blockquote~blockquote {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
blockquote+blockquote {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
} */
pre {
background-color: var(--bg);
padding: 1rem;
border-radius: var(--radius);
}
.copy:hover {
color: var(--accent);
cursor: copy;
}
::-webkit-scrollbar {
width: 0;
}
body {
background-color: var(--bg);
color: var(--text);
margin: 0;
}
header {
background-color: var(--accent);
text-align: center;
padding: 0.5rem;
}
.article-header {
background-color: var(--header);
color: var(--header-text);
}
section {
border-radius: var(--radius);
margin: 2rem;
overflow: hidden;
}
.spaced {
margin: 0;
padding: 1rem;
}
article {
background-color: var(--content-bg);
padding: 1.5rem;
text-align: left;
}
hr {
margin: 2rem;
height: 1px;
border: 0;
border-top: 1px solid var(--header);
height: 1px;
}
footer {
color: var(--bg-text);
text-align: center;
}
h1,h2,h3,h4,h5,h6 {
margin: 1rem;
text-align: center;
}
header h1 {
margin: 0;
font-size: 2.5rem;
}
article h1 {
margin-bottom: 1rem;
}
a {
color: var(--link);
}
a:hover {
color: var(--accent);
text-decoration-line: none;
}
header a {
color: inherit;
text-decoration-line: none;
font-weight: bold;
}
header a:hover {
font-weight: bold;
color: inherit
}
main {
max-width: 80%;
margin: auto;
}
@media screen and (max-width: 1500px) {
main {
max-width: 100%;
margin: auto;
}
}