Add some frontend tooling

This commit is contained in:
Dave Smith-Hayes 2024-11-16 21:28:16 -05:00
parent fe627259db
commit 0c6d446c16
6 changed files with 2259 additions and 0 deletions

1
app/gulpfile.js Normal file
View File

@ -0,0 +1 @@
import { series } from "gulp";

1
app/js/index.js Normal file
View File

@ -0,0 +1 @@
// nothing here yet

3
app/js/user/register.js Normal file
View File

@ -0,0 +1,3 @@
export function checkPasswords(form) {
}

2172
app/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

20
app/package.json Normal file
View File

@ -0,0 +1,20 @@
{
"name": "slovocast",
"version": "1.0.0",
"description": "The Slovocast Podcast Platform Frontend",
"main": "js/index.js",
"directories": {
"test": "tests"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Dave Smith-Hayes",
"license": "ISC",
"devDependencies": {
"gulp": "^5.0.0",
"gulp-cli": "^3.0.0",
"gulp-sass": "^5.1.0",
"sass": "^1.81.0"
}
}

62
app/scss/main.scss Normal file
View File

@ -0,0 +1,62 @@
body {
background-color: #eee;
}
.container {
box-sizing: border-box;
max-width: 1200px;
margin: 0 auto;
}
header {
float: left;
padding: 0.25em 1em;
h1 {
margin: 0;
padding: 0;
}
}
nav {
float: right;
padding: 0.25em 1em;
ul {
list-style: none;
margin: 0;
padding: 0;
li {
display: inline;
}
li:last-child {
margin-left: 1em;
}
}
}
main {
clear: both;
background-color: #fff;
border: 1px solid #ccc;
padding: 1em;
box-sizing: border-box;
}
.flash {
padding: 0.5em;
box-sizing: border-box;
margin-bottom: 1em;
color: #fff;
}
.error {
border: 1px solid #140505;
border-radius: 5px;
background-color: #C32727;
}
footer {
text-align: right;
padding: 0.25em 1em;
}