Skip to content

Commit

Permalink
Merge pull request #10 from OpenPecha/feat/pecha-logos
Browse files Browse the repository at this point in the history
Feat/pecha logos
  • Loading branch information
Lungsangg authored Jan 23, 2024
2 parents d5dd281 + f60c347 commit a2b3e5a
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions reader/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,8 +1029,8 @@ def _get_user_calendar_params(request):


def texts_list(request):
title = _("Sefaria: a Living Library of Jewish Texts Online")
desc = _("The largest free library of Jewish texts available to read online in Hebrew and English including Torah, Tanakh, Talmud, Mishnah, Midrash, commentaries and more.")
title = _("Pecha - Buddhist texts in your own words")
desc = _("The largest free library of Buddhist texts available to read online in Tibetan, English and Chinese")
return menu_page(request, page="navigation", title=title, desc=desc)


Expand Down
2 changes: 1 addition & 1 deletion sefaria/image_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def make_img_http_response(text, category, ref_str, lang, platform):
height = platforms[platform]["height"]
width = platforms[platform]["width"]
img = Image.new('RGBA', (width, height), color="#18345D")
logo = Image.open("static/img/logo-white.png")
logo = Image.open("static/img/logo.png")
logo.thumbnail((400, 400))
logo_padded = Image.new('RGBA', (width, height))
logo_padded.paste(logo, (int(width/2-logo.size[0]/2), int(height/2-logo.size[1]/2)))
Expand Down
8 changes: 4 additions & 4 deletions static/css/s2.css
Original file line number Diff line number Diff line change
Expand Up @@ -727,9 +727,9 @@ div:has(#bannerMessage) + .readerApp.singlePanel .mobileNavMenu {
}
.header .home img {
vertical-align: middle;
height: 25px;
margin-top: -7px;
width: 92px;
height: 33px;
margin-top: -8px;
width: 77px;
}
.interface-hebrew .header .home img {
width: 77px;
Expand Down Expand Up @@ -12762,4 +12762,4 @@ span.ref-link-color-3 {color: blue}
75%{box-shadow:0 -2.6em 0 0 rgba(0,0,0,0.2),1.8em -1.8em 0 0 rgba(0,0,0,0.2),2.5em 0 0 0 rgba(0,0,0,0.2),1.75em 1.75em 0 0 rgba(0,0,0,0.2),0 2.5em 0 0 rgba(0,0,0,0.5),-1.8em 1.8em 0 0 rgba(0,0,0,0.7),-2.6em 0 0 0 #ffffff,-1.8em -1.8em 0 0 rgba(0,0,0,0.2)}
87.5%{box-shadow:0 -2.6em 0 0 rgba(0,0,0,0.2),1.8em -1.8em 0 0 rgba(0,0,0,0.2),2.5em 0 0 0 rgba(0,0,0,0.2),1.75em 1.75em 0 0 rgba(0,0,0,0.2),0 2.5em 0 0 rgba(0,0,0,0.2),-1.8em 1.8em 0 0 rgba(0,0,0,0.5),-2.6em 0 0 0 rgba(0,0,0,0.7),-1.8em -1.8em 0 0 #fff}
}
/* end css code for loading bezel */
/* end css code for loading bezel */
Binary file added static/icons/favicon-pecha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/logo.png
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 static/js/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class Header extends Component {
return null;
}
const logo = Sefaria.interfaceLang == "hebrew" ?
<img src="/static/img/logo-hebrew.png" alt="Sefaria Logo"/> :
<img src="/static/img/logo.svg" alt="Sefaria Logo"/>;
<img src="/static/img/logo.png" alt="Sefaria Logo"/> :
<img src="/static/img/logo.png" alt="Sefaria Logo"/>;

const headerContent = (
<>
Expand Down
2 changes: 1 addition & 1 deletion static/js/ReaderApp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ class ReaderApp extends Component {
switch (state.menuOpen) {
case "navigation":
var cats = state.navigationCategories ? state.navigationCategories.join("/") : "";
hist.title = cats ? state.navigationCategories.map(Sefaria._).join(", ") + " | " + Sefaria._(siteName) : Sefaria._("Sefaria: a Living Library of Jewish Texts Online");
hist.title = cats ? state.navigationCategories.map(Sefaria._).join(", ") + " | " + Sefaria._(siteName) : Sefaria._("Pecha - Buddhist texts in your own words");
hist.url = "texts" + (cats ? "/" + cats : "");
hist.mode = "navigation";
break;
Expand Down
6 changes: 3 additions & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@

<!-- https://realfavicongenerator.net -->
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'icons/apple-touch-icon.png' %}?v=xQzLlLp7oR">
<link rel="icon" type="image/png" sizes="32x32" href="{% static 'icons/favicon-32x32.png' %}?v=xQzLlLp7oR">
<link rel="icon" type="image/png" sizes="16x16" href="{% static 'icons/favicon-16x16.png' %}?v=xQzLlLp7oR">
<link rel="icon" type="image/png" sizes="32x32" href="{% static 'icons/favicon-pecha.png' %}?v=xQzLlLp7oR">
<link rel="icon" type="image/png" sizes="16x16" href="{% static 'icons/favicon-pecha.png' %}?v=xQzLlLp7oR">
<link rel="manifest" href="{% static 'icons/manifest.json' %}?v=xQzLlLp7oR">
<link rel="mask-icon" href="{% static 'icons/safari-pinned-tab.svg' %}?v=xQzLlLp7oR" color="#273557">
<link rel="shortcut icon" href="{% static 'icons/favicon.ico'%}?v=xQzLlLp7oR">
<link rel="shortcut icon" href="{% static 'icons/favicon-pecha.png'%}?v=xQzLlLp7oR">
<meta name="theme-color" content="#273557">


Expand Down
6 changes: 3 additions & 3 deletions templates/elements/loading.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<div id="appLoading">
<div class='loadingMessage'>
{% if SITE_SETTINGS.TORAH_SPECIFIC %}
<img class="int-en" src="{% static 'img/logo.svg' %}" alt="Sefaria Loading Icon" />
<img class="int-he" src="{% static 'img/logo-hebrew.png' %}" alt="Sefaria Loading Icon" />
<img class="int-en" src="{% static 'img/logo.png' %}" alt="Sefaria Loading Icon" />
<img class="int-he" src="{% static 'img/logo.png' %}" alt="Sefaria Loading Icon" />
<br>
{% endif %}
<div class="smallText">
<span class="int-he">...טעינה</span>
<span class="int-he">ཏོག་ཙམ་སྒུག་རོགས།...</span>
<span class="int-en">Loading...</span>
</div>
</div>
Expand Down

0 comments on commit a2b3e5a

Please sign in to comment.