Skip to content

Commit 392d724

Browse files
committed
Add sponsors to docs landing page and root readme
1 parent c07b0c2 commit 392d724

File tree

4 files changed

+64
-10
lines changed

4 files changed

+64
-10
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,8 @@ Alternatively, to build and validate the code, run all tests, generate code cove
130130
```bash
131131
pwsh Build.ps1
132132
```
133+
134+
## Sponsors
135+
136+
<a href="https://jb.gg/OpenSourceSupport"><img align="middle" src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg" alt="JetBrains Logo" style="width:150px"></a> &nbsp;
137+
<a href="https://www.araxis.com/buy/open-source"><img align="middle" src="https://www.araxis.com/theme/37/img/araxis-logo-lg.svg" alt="Araxis Logo" style="width:150px"></a>

docs/home/assets/home.css

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ h1, h2, h3, h4, h5, h6, .font-primary {
9595
margin-top: 72px;
9696
}
9797

98-
9998
/*--------------------------------------------------------------
10099
# Hero Section
101100
--------------------------------------------------------------*/
@@ -300,12 +299,6 @@ section {
300299
.breadcrumbs ol li {
301300
display: inline-block;
302301
}
303-
304-
305-
}
306-
307-
div[feature]:hover {
308-
cursor: pointer;
309302
}
310303

311304
/*--------------------------------------------------------------
@@ -401,6 +394,34 @@ div[feature]:hover {
401394
margin-bottom: 0;
402395
}
403396

397+
div[feature]:hover {
398+
cursor: pointer;
399+
}
400+
401+
/*--------------------------------------------------------------
402+
# Sponsors
403+
--------------------------------------------------------------*/
404+
.sponsors .icon-box {
405+
padding: 30px;
406+
position: relative;
407+
overflow: hidden;
408+
margin: 0 0 40px 0;
409+
background: #fff;
410+
box-shadow: 0 10px 29px 0 rgba(68, 88, 144, 0.1);
411+
transition: all 0.3s ease-in-out;
412+
border-radius: 15px;
413+
text-align: center;
414+
border-bottom: 3px solid #fff;
415+
}
416+
417+
.sponsors .icon-box:hover {
418+
transform: translateY(-5px);
419+
border-color: #ef7f4d;
420+
}
421+
422+
div[sponsor]:hover {
423+
cursor: pointer;
424+
}
404425

405426
/*--------------------------------------------------------------
406427
# Footer

docs/home/assets/home.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
}
3939
});
4040

41-
4241
// Feature panels linking
4342
$('div[feature]#filter').on('click', () => navigateTo('usage/reading/filtering.html'));
4443
$('div[feature]#sort').on('click', () => navigateTo('usage/reading/sorting.html'));
@@ -49,13 +48,19 @@
4948
$('div[feature]#validation').on('click', () => navigateTo('usage/options.html#enable-modelstate-validation'));
5049
$('div[feature]#customizable').on('click', () => navigateTo('usage/extensibility/resource-definitions.html'));
5150

52-
5351
const navigateTo = (url) => {
54-
if (!window.getSelection().toString()){
52+
if (!window.getSelection().toString()) {
5553
window.location = url;
5654
}
5755
}
5856

57+
// Sponsor panels linking
58+
$('div[sponsor]#jetbrains').on('click', () => navigateExternalTo('https://jb.gg/OpenSourceSupport'));
59+
$('div[sponsor]#araxis').on('click', () => navigateExternalTo('https://www.araxis.com/buy/open-source'));
60+
61+
const navigateExternalTo = (url) => {
62+
window.open(url, "_blank");
63+
}
5964

6065
hljs.initHighlightingOnLoad()
6166

docs/home/index.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,29 @@ <h4 class="title">Response</h4>
253253
</div>
254254
</div>
255255
</section>
256+
<section id="sponsors" class="sponsors">
257+
<div class="container">
258+
<div class="section-title" data-aos="fade-up">
259+
<h2>Sponsors</h2>
260+
</div>
261+
<div class="row justify-content-center">
262+
<div sponsor class="col-md-4 col-lg-3 d-flex align-items-stretch justify-content-center aos-init aos-animate" data-aos="zoom-in" data-aos-delay="100" id="jetbrains">
263+
<div class="icon-box d-flex align-items-center">
264+
<div class="icon">
265+
<img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg" alt="JetBrains Logo" style="width:150px">
266+
</div>
267+
</div>
268+
</div>
269+
<div sponsor class="col-md-4 col-lg-3 d-flex align-items-stretch justify-content-center aos-init aos-animate" data-aos="zoom-in" data-aos-delay="100" id="araxis">
270+
<div class="icon-box d-flex align-items-center">
271+
<div class="icon">
272+
<img src="https://www.araxis.com/theme/37/img/araxis-logo-lg.svg" alt="Araxis Logo" style="width:150px">
273+
</div>
274+
</div>
275+
</div>
276+
</div>
277+
</div>
278+
</section>
256279
<footer id="footer">
257280
<div class="footer-newsletter section-bg aos-init aos-animate" data-aos="fade-up">
258281
<div class="container">

0 commit comments

Comments
 (0)