From 08557f45db9b484487a3b41d1f8793f5ec8ba9aa Mon Sep 17 00:00:00 2001 From: ange Date: Sat, 21 Dec 2024 11:13:23 +0000 Subject: [PATCH] feat: linkedin --- Dockerfile | 1 + compose.yaml | 9 ++++++--- css/resume.css | 11 +++++++++++ {html => css}/style.css | 0 html/contact.html | 7 ++++++- html/resume.html | 16 ++++++++++------ src/route.go | 8 ++++++-- src/tmpl.go | 2 +- src/views.go | 13 ++++++++----- tmpl/head.tmpl | 8 +++----- tmpl/header.tmpl | 2 +- 11 files changed, 53 insertions(+), 24 deletions(-) create mode 100644 css/resume.css rename {html => css}/style.css (100%) diff --git a/Dockerfile b/Dockerfile index 5d5cc42..22f3387 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ RUN CGO_ENABLED=0 go build -o /app FROM scratch COPY --from=build /app . COPY html/ html/ +COPY css/ css/ COPY static/ static/ COPY tmpl/ tmpl/ EXPOSE 3000 diff --git a/compose.yaml b/compose.yaml index 6ebda20..2660b08 100644 --- a/compose.yaml +++ b/compose.yaml @@ -8,12 +8,15 @@ services: watch: - action: rebuild path: src/ - - action: sync+restart - path: html/ - target: html/ - action: sync+restart path: tmpl/ target: tmpl/ + - action: sync+restart + path: html/ + target: html/ + - action: sync + path: css/ + target: css/ - action: sync path: static/ target: static/ diff --git a/css/resume.css b/css/resume.css new file mode 100644 index 0000000..a987a76 --- /dev/null +++ b/css/resume.css @@ -0,0 +1,11 @@ +@media print { + @page { + size: A4; + size: portrait; + margin: 5mm; + } + + #menu, #credits { + display: none; + } +} diff --git a/html/style.css b/css/style.css similarity index 100% rename from html/style.css rename to css/style.css diff --git a/html/contact.html b/html/contact.html index dff8dc9..022f78a 100644 --- a/html/contact.html +++ b/html/contact.html @@ -2,9 +2,9 @@ {{template "head.tmpl" .}} + - {{template "header.tmpl" .}}