diff --git a/app.js b/app.js index 42407d6..170b4e4 100644 --- a/app.js +++ b/app.js @@ -20,6 +20,7 @@ app.use(express.json()); app.use(express.urlencoded({ extended: false })); app.use(cookieParser()); app.use(express.static(path.join(__dirname, 'static'))); +app.use('/_global', express.static(path.join(__dirname, 'static'))) // remove trailing slashes app.use((req, res, next) => { diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..28cc559 Binary files /dev/null and b/favicon.ico differ diff --git a/static/matomo.js b/static/matomo.js new file mode 100644 index 0000000..bffb91c --- /dev/null +++ b/static/matomo.js @@ -0,0 +1,13 @@ +var _paq = window._paq = window._paq || []; +_paq.push(["setDocumentTitle", document.domain + "/" + document.title]); +_paq.push(["setCookieDomain", "*.r-universe.dev"]); +_paq.push(["setDomains", ["*.r-universe.dev"]]); +_paq.push(['trackPageView']); +_paq.push(['enableLinkTracking']); +(function() { + var u="https://ropensci.matomo.cloud/"; + _paq.push(['setTrackerUrl', u+'matomo.php']); + _paq.push(['setSiteId', '2']); + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; + g.type='text/javascript'; g.async=true; g.src='//cdn.matomo.cloud/ropensci.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s); +})(); diff --git a/static/nobody.jpg b/static/nobody.jpg new file mode 100644 index 0000000..b467dec Binary files /dev/null and b/static/nobody.jpg differ diff --git a/static/planets.svg b/static/planets.svg new file mode 100644 index 0000000..267398b --- /dev/null +++ b/static/planets.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/static/rocket.svg b/static/rocket.svg new file mode 100644 index 0000000..3d32652 --- /dev/null +++ b/static/rocket.svg @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/runiverse.svg b/static/runiverse.svg new file mode 100644 index 0000000..94b95d5 --- /dev/null +++ b/static/runiverse.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + R-universe + \ No newline at end of file diff --git a/views/global/galaxy.pug b/views/global/galaxy.pug index 6276ddb..675ebe8 100644 --- a/views/global/galaxy.pug +++ b/views/global/galaxy.pug @@ -6,7 +6,7 @@ head link(rel='stylesheet' href='/galaxy.css') title R-universe: personal package repositories for R! -img#runiverselogo(src='https://r-universe.dev/runiverse.svg') +img#runiverselogo(src='/logo-big.svg') svg(viewbox='0 0 800 600' preserveaspectratio='xMinYMid slice') g#stars each x in orgs