Skip to content

Commit 7f99f72

Browse files
authored
Merge pull request #1292 from json-api-dotnet/sponsor-credits
Add sponsor credits
2 parents c0eb108 + 392d724 commit 7f99f72

File tree

5 files changed

+244
-195
lines changed

5 files changed

+244
-195
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
1010

11-
[*.{config,csproj,css,js,json,props,ruleset,xslt}]
11+
[*.{config,csproj,css,js,json,props,ruleset,xslt,html}]
1212
indent_size = 2
1313

1414
[*.{cs}]

README.md

+5
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

+28-7
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

+8-3
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

0 commit comments

Comments
 (0)