Skip to content
This repository was archived by the owner on Feb 15, 2022. It is now read-only.

refactor: 100KB+ logo => 14KB logo, dedupe asset #559

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pages/[lang]/resources/language.res
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module T = {
let iconComponent = (id: int, idx: int, item: {"item": Ood.Book.t}) => {
let book = item["item"]
// TODO: Better default image
let cover = Belt.Option.getWithDefault(book.cover, "/static/logo1.jpeg")
let cover = Belt.Option.getWithDefault(book.cover, "/static/ocaml-logo.jpeg")
<div className="w-40 aspect-w-3 aspect-h-2 sm:aspect-w-3 sm:aspect-h-4">
<img
src=cover
Expand Down
Binary file removed public/static/logo1.jpeg
Binary file not shown.
Binary file modified public/static/ocaml-logo.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/HeaderNavigation.res
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let make = (~content) => {
<div className="flex justify-between items-center md:justify-start py-6 md:space-x-10 ">
<div className="flex justify-start ">
<a href="/" className="">
<img className="h-8 w-auto sm:h-10" src="/static/logo1.jpeg" alt="" />
<img className="h-8 w-auto sm:h-10" src="/static/ocaml-logo.jpeg" alt="" />
</a>
</div>
<nav className="hidden md:flex space-x-10 ">
Expand Down Expand Up @@ -271,7 +271,7 @@ let make = (~content) => {
className="rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 bg-white divide-y-2 divide-gray-50">
<div className="pt-5 pb-6 px-5">
<div className="flex items-center justify-between">
<div> <img className="h-8 w-auto sm:h-10" src="/static/logo1.jpeg" alt="" /> </div>
<div> <img className="h-8 w-auto sm:h-10" src="/static/ocaml-logo.jpeg" alt="" /> </div>
<div className="-mr-2">
<button
type_="button"
Expand Down