mirror of
https://github.com/bewcloud/bewcloud.git
synced 2026-03-11 08:54:49 +00:00
Remove all uses of Google Services (#133)
* Use OS default Sans-Serif font instead of Google Nunito Sans Font * Link calendar event locations to OSM instead of Google Maps Better would be to use https://www.mediawiki.org/wiki/GeoHack – which is used by WikiPedia to show an interactive selector for the mapping service to use –, but it requires geo coordinates. Some systems also support generic geo:-URIs, but they require coodinates and outside Android support is pretty spotty (Apple wants you to use Apple Maps links instead, desktop platforms generally require installed third-party apps …). Android does support an extension (`?q=`) (https://developer.android.com/guide/components/intents-common#Maps) to search by address via geo:-links though.
This commit is contained in:
parent
dcac5d8c44
commit
05cae80c12
2 changed files with 3 additions and 3 deletions
|
|
@ -86,7 +86,7 @@ export default function ViewEventModal(
|
|||
? (
|
||||
<section class='py-5 my-0 border-b border-slate-500'>
|
||||
<a
|
||||
href={`https://maps.google.com/maps?q=${encodeURIComponent(calendarEvent.location)}`}
|
||||
href={`https://www.openstreetmap.org/search?query=${encodeURIComponent(calendarEvent.location)}`}
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
>
|
||||
|
|
|
|||
|
|
@ -59,7 +59,6 @@ export class EmailModel {
|
|||
<style type="text/css" rel="stylesheet" media="all">
|
||||
/* Base ------------------------------ */
|
||||
|
||||
@import url("https://fonts.googleapis.com/css?family=Nunito+Sans:400,700&display=swap");
|
||||
body {
|
||||
width: 100% !important;
|
||||
height: 100%;
|
||||
|
|
@ -95,7 +94,8 @@ export class EmailModel {
|
|||
body,
|
||||
td,
|
||||
th {
|
||||
font-family: "Nunito Sans", Helvetica, Arial, sans-serif;
|
||||
/* Source: https://fontsarena.com/blog/operating-systems-default-sans-serif-fonts/ */
|
||||
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Oxygen, Cantarell, sans-serif;
|
||||
}
|
||||
|
||||
h1 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue