Skip to content

Commit

Permalink
Replace fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
ginesdt committed May 17, 2024
1 parent 0b60561 commit 797afdf
Show file tree
Hide file tree
Showing 17 changed files with 15 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
file: docker-builds/${{ matrix.image }}/Dockerfile
build-args: BUILD_ENV=${{ inputs.env }}
build-args: |
BUILD_ENV=${{ inputs.env }}
FONTS_PASS=${{ secrets.FONTS_PASS }}
push: true
tags: ${{ secrets.ECR_REGISTRY }}/streamtide-${{ inputs.env }}-${{ matrix.image }}:latest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/resources/public/img/avatar/*
!resources/public/img/avatar/profile_placeholder.svg
/resources/public/contracts/build/
/resources/public/fonts/Kitten*
/node_modules/
/.cpcache/
/.shadow-cljs/
Expand Down
4 changes: 4 additions & 0 deletions bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
:task (do
(println "Watching SCSS under resources/scss")
(shell {:dir "resources/scss"} "npx sass --watch --no-source-map -s compressed main.scss:../public/css/main.css"))}
extract-fonts {:doc "Extract fonts"
:task (do
(println "Extracting fonts to resources/public/fonts/")
(shell {:dir "resources"} (format "unzip -P %s fonts.zip -d public/fonts/" (first *command-line-args*))))}
compile-contracts {:doc "Compile smart contracts"
:task (do
(println "Compiling smart contracts")
Expand Down
2 changes: 2 additions & 0 deletions docker-builds/ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM 487920318758.dkr.ecr.us-west-2.amazonaws.com/cljs-web3-ci:node-18.7.0 AS bu
USER root

ARG BUILD_ENV=qa
ARG FONTS_PASS
ENV BUILD_ENV=${BUILD_ENV}
ENV STREAMTIDE_ENV=${BUILD_ENV}

Expand All @@ -10,6 +11,7 @@ COPY . /build/
WORKDIR /build

RUN yarn install && \
bb extract-fonts ${FONTS_PASS} && \
bb compile-css && \
bb release-ui && \
bb compile-contracts
Expand Down
Binary file added resources/fonts.zip
Binary file not shown.
Empty file added resources/public/fonts/.gitkeep
Empty file.
Binary file removed resources/public/fonts/kittenboldtrial-webfont.woff
Binary file not shown.
Binary file removed resources/public/fonts/kittenboldtrial-webfont.woff2
Binary file not shown.
Binary file removed resources/public/fonts/kittenfattrial-webfont.woff
Binary file not shown.
Binary file removed resources/public/fonts/kittenfattrial-webfont.woff2
Binary file not shown.
Binary file removed resources/public/fonts/kittenslanttrial-webfont.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/public/fonts/kittenswashtrial-webfont.woff
Binary file not shown.
Binary file not shown.
10 changes: 5 additions & 5 deletions resources/scss/vars.scss
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
@font-face {
font-family: 'kitten_boldregular';
src: url('../fonts/kittenboldtrial-webfont.woff2') format('woff2'), url('../fonts/kittenboldtrial-webfont.woff') format('woff');
src: url('../fonts/Kitten-Bold.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'kitten_fatregular';
src: url('../fonts/kittenfattrial-webfont.woff2') format('woff2'), url('../fonts/kittenfattrial-webfont.woff') format('woff');
src: url('../fonts/Kitten-Fat.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'kitten_slantregular';
src: url('../fonts/kittenslanttrial-webfont.woff2') format('woff2'), url('../fonts/kittenslanttrial-webfont.woff') format('woff');
src: url('../fonts/Kitten-Slant.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'kitten_swash_monolineregular';
src: url('../fonts/kittenswashmonolinetrial-webfont.woff2') format('woff2'), url('../fonts/kittenswashmonolinetrial-webfont.woff') format('woff');
src: url('../fonts/Kitten-Swash-Monoline.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'kitten_swashregular';
src: url('../fonts/kittenswashtrial-webfont.woff2') format('woff2'), url('../fonts/kittenswashtrial-webfont.woff') format('woff');
src: url('../fonts/Kitten-Swash.woff') format('woff');
font-weight: normal;
font-style: normal;
}
Expand Down

0 comments on commit 797afdf

Please sign in to comment.