stuff lol
This commit is contained in:
parent
ca160a824b
commit
ab2c9d8529
2 changed files with 11 additions and 25 deletions
|
@ -7,7 +7,7 @@ h1, h2, h3, h4, h5, h6, p, li, br {
|
|||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin-block: 1.5rem;
|
||||
padding-inline: 0.5rem;
|
||||
padding-inline: 1ch;
|
||||
font-size: 1rem;
|
||||
background-color: var(--color-text);
|
||||
color: var(--color-bg);
|
||||
|
@ -19,14 +19,14 @@ h3, h4, h5, h6 {
|
|||
|
||||
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
|
||||
display: block;
|
||||
margin-inline: -0.5rem;
|
||||
padding-inline: 0.5rem;
|
||||
margin-inline: -1ch;
|
||||
padding-inline: 1ch;
|
||||
background-color: var(--color-accent);
|
||||
color: var(--color-bg);
|
||||
}
|
||||
|
||||
p {
|
||||
margin-inline-start: 1rem;
|
||||
margin-inline-start: 2ch;
|
||||
margin-block: 1.5rem;
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ p.nomargin {
|
|||
|
||||
ul {
|
||||
margin: 0;
|
||||
padding-inline-start: 2rem;
|
||||
padding-inline-start: 4ch;
|
||||
list-style-type: "- ";
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ ul li {
|
|||
|
||||
div {
|
||||
margin-block: 1.5em;
|
||||
margin-inline-start: 1em;
|
||||
margin-inline-start: 2ch;
|
||||
}
|
||||
|
||||
img {
|
||||
|
@ -62,7 +62,7 @@ code {
|
|||
display: inline-block;
|
||||
font: inherit;
|
||||
background-color: var(--color-code);
|
||||
padding-inline: 0.5rem;
|
||||
padding-inline: 1ch;
|
||||
color: var(--color-code-text);
|
||||
user-select: all;
|
||||
}
|
||||
|
@ -76,16 +76,16 @@ button, input {
|
|||
}
|
||||
|
||||
:focus {
|
||||
outline: 0.5em solid var(--color-text);
|
||||
outline: 1ch solid var(--color-text);
|
||||
}
|
||||
|
||||
input[type=text], input[type=url] {
|
||||
padding-inline: 0.5rem;
|
||||
border-inline: 0.5em solid var(--color-accent);
|
||||
padding-inline: 1ch;
|
||||
border-inline: 1ch solid var(--color-accent);
|
||||
}
|
||||
|
||||
button, input[type=submit] {
|
||||
padding-inline: 0.5rem;
|
||||
padding-inline: 1ch;
|
||||
background-color: var(--color-accent);
|
||||
color: var(--color-bg);
|
||||
cursor: pointer;
|
||||
|
|
14
index.js
14
index.js
|
@ -27,20 +27,6 @@ app.set('view engine', 'ejs');
|
|||
app.use('/assets', express.static('assets'));
|
||||
app.set('views', path.join(__dirname, "views", "pages"));
|
||||
|
||||
// app.use(async (req, res, next) => {
|
||||
// const buttonsJson = await fetch("https://cdn.abtmtr.link/site_content/buttons.json")
|
||||
// .catch(() => res.status(500).send())
|
||||
// .then((res) => res.json())
|
||||
// .catch(() => res.status(500).send());
|
||||
// const followingJson = await fetch("https://cdn.abtmtr.link/site_content/following.json")
|
||||
// .catch(() => res.status(500).send())
|
||||
// .then((res) => res.json())
|
||||
// .catch(() => res.status(500).send());
|
||||
// app.locals.buttons = buttonsJson;
|
||||
// app.locals.following = followingJson;
|
||||
// next();
|
||||
// })
|
||||
|
||||
app.get('/', async (req, res) => {
|
||||
const statusesJson = await fetch("https://cdn.abtmtr.link/site_content/v13/statuses.json")
|
||||
.catch(() => res.status(500).send())
|
||||
|
|
Loading…
Reference in a new issue