From f8fae1dbb6eaa23ceb00faf2ee34beb2ac643830 Mon Sep 17 00:00:00 2001 From: Zhou Fang Date: Tue, 12 Apr 2022 14:02:41 -0400 Subject: [PATCH 1/2] Added donate button Signed-off-by: Zhou Fang --- config.toml | 5 +++++ less/styles.less | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/config.toml b/config.toml index 16d1507..159487a 100644 --- a/config.toml +++ b/config.toml @@ -80,6 +80,11 @@ pluralizeListTitles = false url = "/resources" weight = 5 +[[menu.main]] + name = "Donate" + url = "https://www.eclipse.org/donate/ecdtools/" + weight = 6 + [[menu.main]] name = "News & Events" url = "/resources/news" diff --git a/less/styles.less b/less/styles.less index 48669ef..b12a609 100644 --- a/less/styles.less +++ b/less/styles.less @@ -42,6 +42,22 @@ #header-row { padding-bottom: 20px; + @media (min-width: @screen-xs-max) { + .navbar-nav li:nth-last-child(2) { + background-color: @brand-primary; + margin: 0 10px; + padding: 0 10px; + cursor: pointer; + + &:hover { + background-color: #175d7e; + } + a { + color: #fff; + text-decoration: none; + } + } + } } //== For event page -- GitLab From 4e18d65577f8e9693b96148b1c98c02d75cfbe14 Mon Sep 17 00:00:00 2001 From: Zhou Fang Date: Wed, 13 Apr 2022 16:00:03 -0400 Subject: [PATCH 2/2] Switched to cta params for donate button based on feedback --- config.toml | 8 +++----- less/styles.less | 18 +++--------------- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/config.toml b/config.toml index 159487a..796c490 100644 --- a/config.toml +++ b/config.toml @@ -31,6 +31,9 @@ pluralizeListTitles = false featured_content_publish_target = "ecd_tools" linkedin_url = "https://www.linkedin.com/showcase/ecd-tools/" jumbotron_bg_class = "header-default-bg-img" + call_for_action_text = "DONATE" + call_for_action_url = "https://www.eclipse.org/donate/ecdtools/" + call_for_action_icon = "fa-star" [taxonomies] category = "categories" @@ -80,11 +83,6 @@ pluralizeListTitles = false url = "/resources" weight = 5 -[[menu.main]] - name = "Donate" - url = "https://www.eclipse.org/donate/ecdtools/" - weight = 6 - [[menu.main]] name = "News & Events" url = "/resources/news" diff --git a/less/styles.less b/less/styles.less index b12a609..55892a3 100644 --- a/less/styles.less +++ b/less/styles.less @@ -42,21 +42,9 @@ #header-row { padding-bottom: 20px; - @media (min-width: @screen-xs-max) { - .navbar-nav li:nth-last-child(2) { - background-color: @brand-primary; - margin: 0 10px; - padding: 0 10px; - cursor: pointer; - - &:hover { - background-color: #175d7e; - } - a { - color: #fff; - text-decoration: none; - } - } + #btn-call-for-action .btn{ + padding: 10px 25px; + margin-left: 10px; } } -- GitLab