Skip to content

Commit

Permalink
Merge pull request #684 from jsdelivr/gh-671
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik authored Oct 1, 2024
2 parents b5bcfa3 + 48880c8 commit 1233cbb
Show file tree
Hide file tree
Showing 9 changed files with 629 additions and 7 deletions.
3 changes: 3 additions & 0 deletions src/assets/img/globalping/heart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/img/globalping/link-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/img/globalping/mail-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/assets/js/app-globalping.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const cGlobalpingSlack = require('../../views/pages/globalping/slack.html');
const cGlobalpingNetworkTools = require('../../views/pages/globalping/network-tools.html');
const cGlobalpingIntegrations = require('../../views/pages/globalping/integrations.html');
const cGlobalpingAbout = require('../../views/pages/globalping/about-us.html');
const cGlobalpingSponsors = require('../../views/pages/globalping/sponsors.html');
const cGlobalpingCredits = require('../../views/pages/globalping/credits.html');
const { getGlobalpingUser } = require('./utils/http');

Expand All @@ -34,6 +35,7 @@ app.router.addRoute('/slack', cGlobalpingSlack);
app.router.addRoute('/network-tools/:params?', cGlobalpingNetworkTools);
app.router.addRoute('/integrations', cGlobalpingIntegrations);
app.router.addRoute('/about-us', cGlobalpingAbout);
app.router.addRoute('/sponsors', cGlobalpingSponsors);
app.router.addRoute('/credits', cGlobalpingCredits);

app.router.replaceQueryParam = function (name, newValue) {
Expand Down
1 change: 1 addition & 0 deletions src/assets/less/app-globalping.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@
@import "pages/globalping/network-tools.less";
@import "pages/globalping/integrations.less";
@import "pages/globalping/about-us.less";
@import "pages/globalping/sponsors.less";
@import "pages/globalping/credits.less";
28 changes: 23 additions & 5 deletions src/assets/less/components/gp-jumbotron.less
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@
}
}

&.credits {
&.credits, &.sponsors {
padding: 0;
height: 100%;
top: 0;
Expand All @@ -273,17 +273,35 @@
.jumbotron {
&_grid {
position: absolute;
top: -14px;
left: 65px;
}

&_blur {
display: none;
}
}
}

&.credits {
.jumbotron {
&_grid {
top: -14px;

@media (min-width: @screen-sm-min) {
top: -32px;
left: 65px;
}
}
}
}

&_blur {
display: none;
&.sponsors {
.jumbotron {
&_grid {
top: -38px;

@media (min-width: @screen-sm-min) {
top: -32px;
}
}
}
}
Expand Down
274 changes: 274 additions & 0 deletions src/assets/less/pages/globalping/sponsors.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,274 @@
.p-globalping-sponsors {
font-family: Lexend, sans-serif;
font-style: normal;
font-weight: 400;
-webkit-font-smoothing: antialiased;
display: flex;
flex-direction: column;
row-gap: 48px;
padding: 24px 24px 0;
margin-bottom: -16px;

@media (min-width: @screen-sm-min) {
padding: 100px 24px 88px;
margin: 0 auto;
width: 100%;
max-width: 856px;
row-gap: 80px;
}

.gp-sponsors {
&_header {
font-size: 40px;
font-weight: 600;
line-height: 60px;
color: #17233a;
margin: 0;

@media (min-width: @screen-sm-min) {
margin-bottom: -32px;
}
}

&_main-info {
display: flex;
flex-direction: column;

&_descr {
font-size: 16px;
font-weight: 400;
line-height: 32px;
}

&_list-wrapper {
display: flex;
flex-direction: column;
row-gap: 8px;
margin-top: 24px;
font-size: 16px;
font-weight: 400;
line-height: 32px;
color: #17233a;

@media (min-width: @screen-sm-min) {
margin-top: 16px;
}

&_list {
display: flex;
flex-direction: column;
row-gap: 8px;

&_item {
display: flex;
column-gap: 8px;

> img {
margin-top: 6px;
}
}
}
}

&_contact-us {
display: flex;
column-gap: 8px;
margin-top: 32px;
font-size: 16px;
font-weight: 400;
line-height: 20px;

&_mail {
display: flex;
align-items: center;
column-gap: 4px;
cursor: pointer;
text-decoration: none;

> span {
color: #17d4a7;
}
}
}
}

&_sponsors-list {
display: flex;
flex-direction: column;
row-gap: 24px;

@media (min-width: @screen-sm-min) {
row-gap: 80px;
}

&_bronze_list {
flex-wrap: wrap;
}

&_platinum, &_gold, &_bronze {
display: flex;
flex-direction: column;
row-gap: 40px;

&_title {
background-clip: text;
-webkit-background-clip: text;
-moz-background-clip: text;
-webkit-text-fill-color: transparent;
-moz-text-fill-color: transparent;
color: transparent;
font-size: 40px;
font-weight: 600;
line-height: 56px;
letter-spacing: .2px;
text-align: center;
}

&_list {
display: flex;
flex-direction: column;
row-gap: 24px;

@media (min-width: @screen-sm-min) {
flex-direction: row;
column-gap: 24px;
}

.gp-sponsors_sponsors-list_platinum_list_item.become-a-sponsor,
.gp-sponsors_sponsors-list_gold_list_item.become-a-sponsor {
min-height: 240px;
}

.gp-sponsors_sponsors-list_bronze_list_item.become-a-sponsor {
display: flex;
}

&_item {
display: flex;
flex-direction: column;
row-gap: 24px;
background: #f3f5f6;
padding: 24px;
border-radius: 8px;
border: 1px solid #e7e7ee;
box-sizing: border-box;

@media (min-width: @screen-sm-min) {
width: calc((100% - 24px) / 2);
}

&_logo {
display: flex;
justify-content: center;
align-items: center;
height: 80px;
}

&_descr {
font-size: 16px;
font-weight: 400;
line-height: 20px;
color: #17233a;
margin: 0;
}

&_link {
display: flex;
column-gap: 12px;
justify-content: center;
align-items: center;

> a {
text-decoration: none;
color: #17d4a7;
font-size: 14px;
font-weight: 600;
line-height: 24px;
letter-spacing: .2px;
}
}

&.become-a-sponsor {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 29px 24px;
row-gap: 10px;
background: #e8fff9;

.gp-sponsors_sponsors-list_platinum_list_item_title,
.gp-sponsors_sponsors-list_gold_list_item_title,
.gp-sponsors_sponsors-list_bronze_list_item_title {
text-align: center;
font-size: 24px;
font-weight: 600;
line-height: 36px;
letter-spacing: .2px;
color: #17d4a7;
}

.gp-sponsors_sponsors-list_platinum_list_item_descr,
.gp-sponsors_sponsors-list_gold_list_item_descr,
.gp-sponsors_sponsors-list_bronze_list_item_descr {
text-align: center;
font-size: 16px;
font-weight: 400;
line-height: 20px;

> a {
color: #17d4a7;
font-size: 16px;
font-weight: 600;
line-height: 24px;
}
}
}
}
}
}

&_platinum_title {
background-image: linear-gradient(180deg, #5e7182 0%, rgba(94, 113, 130, .24) 53.67%, #5e7182 100%);
}

&_gold_title {
background-image: linear-gradient(180deg, #ff8200 0%, rgba(255, 130, 0, .24) 49.17%, #ff8200 100%);
}

&_bronze_title {
background-image: linear-gradient(180deg, #9a5a37 0%, rgba(155, 91, 54, .24) 50.17%, #9a5a37 100%);
}
}

&_help-us {
display: flex;
flex-direction: column;
align-items: center;
padding: 48px 0;
row-gap: 24px;

@media (min-width: @screen-sm-min) {
flex-direction: row;
height: 136px;
column-gap: 24px;
justify-content: center;
}

&_text {
font-size: 24px;
font-weight: 600;
line-height: 36px;
letter-spacing: .2px;
text-align: center;
}

.gp_btn_green {
font-size: 14px;
font-weight: 400;
line-height: 20px;
min-width: 179px;
}
}
}
}
4 changes: 2 additions & 2 deletions src/views/components/gp-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
</ul>
</li>
<li><a href="/credits">Credits</a></li>
<!-- <li><a href="/network">Network</a></li>-->
<!-- <li><a href="/sponsors">Sponsors</a></li>-->
<!--<li><a href="/network">Network</a></li>-->
<li><a href="/sponsors">Sponsors</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
The Project <i class="fa fa-angle-down" aria-hidden="true"></i>
Expand Down
Loading

0 comments on commit 1233cbb

Please sign in to comment.