From ee225b37d8efa681e8b8e145b587489bc6c911e8 Mon Sep 17 00:00:00 2001 From: martintomas Date: Wed, 27 Sep 2023 18:09:52 +0200 Subject: [PATCH] feat: ASCOR layer --- app/assets/images/tpi/ascor/circles_1.svg | 15 ++ app/assets/images/tpi/ascor/circles_2.svg | 15 ++ app/assets/images/tpi/ascor/logo.png | Bin 0 -> 3582 bytes .../stylesheets/tpi/_nested-dropdown.scss | 9 ++ app/assets/stylesheets/tpi/_variables.scss | 1 + app/assets/stylesheets/tpi/pages/ascor.scss | 128 ++++++++++++++---- .../components/tpi/RemoteDropdown.js | 2 +- app/views/layouts/tpi/_banner.html.erb | 21 +-- app/views/layouts/tpi/_hosted_by.html.erb | 20 +++ app/views/tpi/ascor/index.html.erb | 11 +- app/views/tpi/ascor/show.html.erb | 9 +- 11 files changed, 176 insertions(+), 55 deletions(-) create mode 100644 app/assets/images/tpi/ascor/circles_1.svg create mode 100644 app/assets/images/tpi/ascor/circles_2.svg create mode 100644 app/assets/images/tpi/ascor/logo.png create mode 100644 app/views/layouts/tpi/_hosted_by.html.erb diff --git a/app/assets/images/tpi/ascor/circles_1.svg b/app/assets/images/tpi/ascor/circles_1.svg new file mode 100644 index 000000000..47899dcd6 --- /dev/null +++ b/app/assets/images/tpi/ascor/circles_1.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/app/assets/images/tpi/ascor/circles_2.svg b/app/assets/images/tpi/ascor/circles_2.svg new file mode 100644 index 000000000..8b63c8694 --- /dev/null +++ b/app/assets/images/tpi/ascor/circles_2.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/app/assets/images/tpi/ascor/logo.png b/app/assets/images/tpi/ascor/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..c3b8f8a6a37bfda992d8c21fc02df9a7c8c9ab2e GIT binary patch literal 3582 zcmb7{=Q|sY*TyLoTZvV%)hxAZYZHP*?Y${#loDdEB8gSRs@l6o8k*YGP`g^2FKX7P zt!h_MkLO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Y@{MtDWam}g8)k-yD678NXyWVZGb1hiqI`aClr}$) zoT@29bUphgw)M(oz7WTY$jATOgk diff --git a/app/views/layouts/tpi/_banner.html.erb b/app/views/layouts/tpi/_banner.html.erb index 6d60362ab..53b57fe2d 100644 --- a/app/views/layouts/tpi/_banner.html.erb +++ b/app/views/layouts/tpi/_banner.html.erb @@ -10,26 +10,7 @@ /> <% end %> -
-

Hosted by:

- - -
+ <%= content_for?(:hosted_by) ? content_for(:hosted_by) : render('layouts/tpi/hosted_by') %> diff --git a/app/views/layouts/tpi/_hosted_by.html.erb b/app/views/layouts/tpi/_hosted_by.html.erb new file mode 100644 index 000000000..404c1b97b --- /dev/null +++ b/app/views/layouts/tpi/_hosted_by.html.erb @@ -0,0 +1,20 @@ +
+

Hosted by:

+ + +
\ No newline at end of file diff --git a/app/views/tpi/ascor/index.html.erb b/app/views/tpi/ascor/index.html.erb index 82e0e77c4..53b9b4113 100644 --- a/app/views/tpi/ascor/index.html.erb +++ b/app/views/tpi/ascor/index.html.erb @@ -1,19 +1,24 @@ <% content_for :page_title, "ASCOR Tool - Transition Pathway Initiative" %> +<% content_for :hosted_by do %><% end %>