mirror of
https://github.com/alex-s168/website.git
synced 2025-09-10 01:05:07 +02:00
make index page responsive
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
]
|
||||
|
||||
#if is-web {section[
|
||||
Note that the #min-pdf-link[PDF Version] of this page might look a bit better styling wise.
|
||||
Note that the #gen-min-pdf-link[PDF Version] of this page might look a bit better styling wise.
|
||||
]}
|
||||
|
||||
#section[
|
||||
|
@@ -23,7 +23,7 @@
|
||||
]
|
||||
|
||||
#if is-web {section[
|
||||
Note that the #min-pdf-link[PDF Version] of this page might look a bit better styling wise.
|
||||
Note that the #gen-min-pdf-link[PDF Version] of this page might look a bit better styling wise.
|
||||
]}
|
||||
|
||||
#section[
|
||||
|
@@ -1,24 +1,6 @@
|
||||
#import "../common.typ": *
|
||||
#import "../simple-page-layout.typ": *
|
||||
|
||||
#let gen-page(content) = {
|
||||
core-page-style[
|
||||
#if is-web {
|
||||
table(
|
||||
stroke: none,
|
||||
columns: (25%, 50%, 25%),
|
||||
[],
|
||||
[
|
||||
#html-style("position: absolute; left: 28%; width: 100%")[
|
||||
#box(width: 50%, content)
|
||||
]
|
||||
],
|
||||
)
|
||||
} else {
|
||||
content
|
||||
}
|
||||
]
|
||||
}
|
||||
#import "../core-page-style.typ": *
|
||||
|
||||
#let tree-list(..elements) = {
|
||||
gen-tree-from-headings(elemfn: (content, x) => [
|
||||
@@ -31,7 +13,11 @@
|
||||
], elements.pos())
|
||||
}
|
||||
|
||||
#gen-page[
|
||||
#simple-page(
|
||||
gen-table-of-contents: false,
|
||||
gen-index-ref: false,
|
||||
min-pdf-link: false,
|
||||
)[
|
||||
|
||||
#br()
|
||||
#title[alex_s168]
|
||||
|
@@ -18,7 +18,7 @@
|
||||
]
|
||||
|
||||
#if is-web {section[
|
||||
Note that the #min-pdf-link[PDF Version] of this page might look a bit better styling wise.
|
||||
Note that the #gen-min-pdf-link[PDF Version] of this page might look a bit better styling wise.
|
||||
|
||||
You can click the PCB images to switch to the other side.
|
||||
]}
|
||||
|
2
pub.sh
2
pub.sh
@@ -1,4 +1,4 @@
|
||||
set -e
|
||||
./build.sh
|
||||
scp -r build/* root@195.26.251.204:/srv/http/alex
|
||||
scp -r res/* root@195.26.251.204:/srv/http/alex/res
|
||||
#scp -r res/* root@195.26.251.204:/srv/http/alex/res
|
||||
|
@@ -7,13 +7,18 @@
|
||||
} else { content }]
|
||||
}
|
||||
|
||||
#let min-pdf-link(content) = {
|
||||
#let gen-min-pdf-link(content) = {
|
||||
[#context if is-html() {
|
||||
html.elem("a", attrs:(href:"#",onclick:"gotoMinPdf();"), content)
|
||||
} else { content }]
|
||||
}
|
||||
|
||||
#let simple-page(gen-table-of-contents: true, gen-index-ref: true, content) = {
|
||||
#let simple-page(
|
||||
gen-table-of-contents: true,
|
||||
gen-index-ref: true,
|
||||
min-pdf-link: true,
|
||||
content) = {
|
||||
|
||||
core-page-style[
|
||||
#if is-web {
|
||||
let off = 3;
|
||||
@@ -24,7 +29,9 @@
|
||||
|
||||
html-style(class:"sidebar", "", column-fixed(
|
||||
[#if gen-table-of-contents { [#table-of-contents()] }],
|
||||
min-pdf-link("Minimal PDF Version"),
|
||||
[#context if min-pdf-link and is-html() {
|
||||
gen-min-pdf-link("Minimal PDF Version")
|
||||
}],
|
||||
[#if gen-index-ref {[
|
||||
#context br()
|
||||
#context html-href("index.html")[#html-bold[Website Home]]
|
||||
|
Reference in New Issue
Block a user