Skip to content

Commit

Permalink
fix font finally (i hope so)
Browse files Browse the repository at this point in the history
  • Loading branch information
pluja committed Sep 27, 2023
1 parent 66ad53b commit 305f081
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions nerostr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ WORKDIR /app
COPY ./package.json .
COPY ./package-lock.json .
COPY ./tailwind.config.js .
COPY ./html /app/html
RUN npm install && \
npx tailwindcss -o ./style.css --minify
COPY ./html/ /app/
RUN npm i && \
npx tailwindcss -i ./static/input.css -o ./style.css --minify

FROM alpine:latest as certs
RUN apk --update add ca-certificates
Expand Down
Binary file added nerostr/html/static/fonts/monocraft.otf
Binary file not shown.
5 changes: 3 additions & 2 deletions nerostr/html/static/input.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@tailwind utilities;

@font-face {
font-family: 'monocraft'; /* Give a name to your font */
src: url('/static/fonts/monocraft.ttf') format('truetype');
font-family: 'monocraft';
src: url('./fonts/monocraft.ttf') format('truetype'),
url('./fonts/monocraft.otf') format('opentype');
}

0 comments on commit 305f081

Please sign in to comment.