Skip to content

Commit

Permalink
feat: add initial logo support
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed Jul 9, 2024
1 parent e42b0d1 commit 7f778b3
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ Cargo.lock
# Git
/.git/

# Kubernetes
/kubernetes/

# Makefile/Justfile
/Justfile
/Makefile
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ WORKDIR /usr/local/bin
# Copy static files
ARG PACKAGE
ADD ./LICENSE /usr/share/licenses/${PACKAGE}/LICENSE
# ADD ./favicon.ico /usr/share/nginx/html/favicon.ico
ADD ./nginx.conf /etc/nginx/conf.d/default.conf
ADD ./assets/ /usr/share/nginx/html/assets/

# Be ready for building
FROM docker.io/library/rust:1-${DEBIAN_VERSION} as builder
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Cassette

![Cassette logo](/assets/logo.webp)

This is a Template-based dynamic declarative web UI framework built with [Yew].

## Tutorial
Expand Down
Binary file added assets/logo.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion crates/cassette/src/pages/home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use yew::prelude::*;
pub fn app() -> Html {
html! {
<main>
<img class="logo" src="https://yew.rs/img/logo.png" alt="Yew logo" />
<img class="logo" src="/assets/logo.webp" alt="Cassette logo" />
<h1>{ "Cassette" }</h1>
<span class="subtitle">{ "from Yew with " }<i class="heart" /></span>
</main>
Expand Down
6 changes: 3 additions & 3 deletions kubernetes/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ spec:
name: client
port:
number: 80
- path: /favicon.svg$
- path: /favicon.ico$
pathType: ImplementationSpecific
backend:
service:
name: client
port:
number: 80
- path: /logo.png$
pathType: ImplementationSpecific
- path: /assets/
pathType: Prefix
backend:
service:
name: client
Expand Down

0 comments on commit 7f778b3

Please sign in to comment.