Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit d030fd0

Browse files
authored
Merge pull request #359 from rom-rb/patrons-banner
Add banner and link to sponsors site
2 parents 534e4ab + 9d59c38 commit d030fd0

5 files changed

Lines changed: 58 additions & 10 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
.sponsorship-banner {
2+
background-color: palette(white);
3+
color: palette(purple);
4+
padding: 1.5rem 1rem;
5+
text-align: center;
6+
font-size: 24px;
7+
position: relative;
8+
border-bottom: 2px solid rgba(palette(purple), 0.2);
9+
10+
a {
11+
color: palette(purple, dark);
12+
@include type-weight(semi-bold);
13+
text-decoration: none;
14+
transition: color 150ms ease;
15+
margin-left: 0.5em;
16+
display: inline-block;
17+
18+
span {
19+
border-bottom: 2px solid rgba(palette(purple, dark), 0.3);
20+
padding-bottom: 3px;
21+
transition: border-bottom 150ms ease;
22+
}
23+
24+
&:hover {
25+
color: palette(purple);
26+
27+
span {
28+
border-bottom: 2px solid rgba(palette(purple), 0.3);
29+
}
30+
31+
&::after {
32+
transform: translateX(3px);
33+
}
34+
}
35+
36+
&::after {
37+
content: "";
38+
display: inline-block;
39+
margin-left: 0.2em;
40+
position: relative;
41+
top: 2px;
42+
transition: transform 200ms ease;
43+
}
44+
}
45+
46+
@include to(3) {
47+
font-size: 19px;
48+
padding: 1.2rem 1rem;
49+
}
50+
}

assets/stylesheets/all.css.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
@import '_base/**/*';
2222

2323
// Modules
24-
@import '_modules/**/*';
24+
@import "_modules/_page";
25+
@import "_modules/**/*";
26+
@import "_modules/_banner";
2527

2628
.feedback {
2729
margin-top: 1rem;

source/layouts/_banner.slim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.sponsorship-banner
2+
| We’re taking ROM to the next level, and we need your help.
3+
a href="https://sponsor.hanamirb.org"
4+
span Become a patron today

source/layouts/_footer.slim

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
.footer__content
2-
h3.footer__header Sponsors
3-
4-
markdown:
5-
We are looking for sustainable sponsorship. If your company is relying
6-
on rom-rb or simply want to see rom-rb evolve faster to meet your requirements,
7-
please consider backing the project through [our campaign on
8-
opencollective.com/rom](https://opencollective.com/rom).
9-
101
.footer__fine-print
112
.footer__fine-print__copyright
123
small

source/layouts/layout.slim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ html
99
= stylesheet_link_tag :all
1010
= javascript_include_tag :all
1111
body[class=page_classes]
12+
= partial 'layouts/banner'
1213
.page
1314
.grid
1415
= partial 'layouts/header'

0 commit comments

Comments
 (0)