From 7ebe4fe7613716c51b33c75803b1d989e5b89a48 Mon Sep 17 00:00:00 2001 From: futa-ikeda <51409893+futa-ikeda@users.noreply.github.com> Date: Thu, 10 Aug 2023 10:21:11 -0400 Subject: [PATCH] Preprints branding update (#1922) - Ticket: [] - Feature flag: n/a ## Purpose - Remove possible failure point by not using preprintProvider.asset - Add special casing to address nutrixiv's navbar color https://osf.io/preprints/nutrixiv/ ## Summary of Changes - Remove use of ThemeStyles from preprint (this set the navbar logo to use the preprintProvider.asset. square_color_transparent, when we want to just use the brand. topnavLogoImage going forward) - Add special case for nutrixiv to use a white background similar to biohackrxiv --- app/preprints/template.hbs | 1 - .../addon/components/branded-navbar/component.ts | 8 ++++++++ .../addon/components/branded-navbar/styles.scss | 6 +++--- .../addon/components/branded-navbar/template.hbs | 2 +- mirage/fixtures/preprint-providers.ts | 6 ++++++ mirage/scenarios/preprints.ts | 13 ++++++++++++- 6 files changed, 30 insertions(+), 6 deletions(-) diff --git a/app/preprints/template.hbs b/app/preprints/template.hbs index bcf4a6af55..21847e39d8 100644 --- a/app/preprints/template.hbs +++ b/app/preprints/template.hbs @@ -1,6 +1,5 @@ {{page-title this.theme.provider.providerTitle replace=true}}
This is the description for agrixiv!
', }); + const nutrixiv = server.schema.preprintProviders.find('nutrixiv') as ModelInstanceThis is the description for nutrixiv!
', + }); + const biohackrxiv = server.schema.preprintProviders.find('biohackrxiv') as ModelInstance