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[
|
#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[
|
#section[
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
]
|
]
|
||||||
|
|
||||||
#if is-web {section[
|
#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[
|
#section[
|
||||||
|
@@ -1,24 +1,6 @@
|
|||||||
#import "../common.typ": *
|
#import "../common.typ": *
|
||||||
#import "../simple-page-layout.typ": *
|
#import "../simple-page-layout.typ": *
|
||||||
|
#import "../core-page-style.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
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
#let tree-list(..elements) = {
|
#let tree-list(..elements) = {
|
||||||
gen-tree-from-headings(elemfn: (content, x) => [
|
gen-tree-from-headings(elemfn: (content, x) => [
|
||||||
@@ -31,7 +13,11 @@
|
|||||||
], elements.pos())
|
], elements.pos())
|
||||||
}
|
}
|
||||||
|
|
||||||
#gen-page[
|
#simple-page(
|
||||||
|
gen-table-of-contents: false,
|
||||||
|
gen-index-ref: false,
|
||||||
|
min-pdf-link: false,
|
||||||
|
)[
|
||||||
|
|
||||||
#br()
|
#br()
|
||||||
#title[alex_s168]
|
#title[alex_s168]
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
]
|
]
|
||||||
|
|
||||||
#if is-web {section[
|
#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.
|
You can click the PCB images to switch to the other side.
|
||||||
]}
|
]}
|
||||||
|
2
pub.sh
2
pub.sh
@@ -1,4 +1,4 @@
|
|||||||
set -e
|
set -e
|
||||||
./build.sh
|
./build.sh
|
||||||
scp -r build/* root@195.26.251.204:/srv/http/alex
|
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 }]
|
} else { content }]
|
||||||
}
|
}
|
||||||
|
|
||||||
#let min-pdf-link(content) = {
|
#let gen-min-pdf-link(content) = {
|
||||||
[#context if is-html() {
|
[#context if is-html() {
|
||||||
html.elem("a", attrs:(href:"#",onclick:"gotoMinPdf();"), content)
|
html.elem("a", attrs:(href:"#",onclick:"gotoMinPdf();"), content)
|
||||||
} else { 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[
|
core-page-style[
|
||||||
#if is-web {
|
#if is-web {
|
||||||
let off = 3;
|
let off = 3;
|
||||||
@@ -24,7 +29,9 @@
|
|||||||
|
|
||||||
html-style(class:"sidebar", "", column-fixed(
|
html-style(class:"sidebar", "", column-fixed(
|
||||||
[#if gen-table-of-contents { [#table-of-contents()] }],
|
[#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 {[
|
[#if gen-index-ref {[
|
||||||
#context br()
|
#context br()
|
||||||
#context html-href("index.html")[#html-bold[Website Home]]
|
#context html-href("index.html")[#html-bold[Website Home]]
|
||||||
|
Reference in New Issue
Block a user