Skip to content

Commit

Permalink
Merge branch 'globalping.io' into gh-673
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik authored Sep 28, 2024
2 parents f98d020 + b254969 commit 916f84c
Show file tree
Hide file tree
Showing 19 changed files with 47 additions and 138 deletions.
Binary file removed src/assets/img/landing/render.png
Binary file not shown.
Binary file removed src/assets/img/landing/[email protected]
Binary file not shown.
77 changes: 0 additions & 77 deletions src/assets/img/sponsors/macarne.svg

This file was deleted.

9 changes: 9 additions & 0 deletions src/assets/img/sponsors/render-black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/img/sponsors/render.png
Binary file not shown.
Binary file removed src/assets/img/sponsors/[email protected]
Binary file not shown.
5 changes: 4 additions & 1 deletion src/assets/js/utils/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,14 @@ module.exports.getGlobalpingMeasurement = (id) => {
return _.makeHTTPRequest({ url: `${GLOBALPING_HOST}/v1/measurements/${id}` });
};


module.exports.getBlogRss = () => {
return _.makeHTTPRequest({ url: `/blog/rss`, rawResponse: true });
};

module.exports.getGPBlogRss = () => {
return _.makeHTTPRequest({ url: `https://blog.globalping.io/rss`, rawResponse: true });
};

module.exports.getCdnOssFiles = (
name,
by = 'hits',
Expand Down
22 changes: 7 additions & 15 deletions src/assets/less/pages/globalping/about-us.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

@media (min-width: @screen-sm-min) {
max-width: 856px;
row-gap: 100px;
row-gap: 64px;
padding-top: 64px;
}

Expand All @@ -31,7 +31,6 @@
font-weight: 600;
line-height: 50px;
letter-spacing: .2px;
text-align: left;
}

&_info {
Expand Down Expand Up @@ -66,6 +65,7 @@
font-size: 20px;
font-weight: 400;
line-height: 32px;
color: #17233a;
}

&_focus {
Expand All @@ -78,7 +78,6 @@
font-size: 20px;
font-weight: 600;
line-height: 32px;
text-align: left;
}

&_list {
Expand All @@ -95,7 +94,7 @@
display: flex;
align-items: center;
column-gap: 16px;
padding: 0 0 0 24px;
padding: 0 24px;
height: 80px;
border-radius: 8px;
border: 1.5px solid #e7e7ee;
Expand Down Expand Up @@ -157,15 +156,13 @@
font-size: 16px;
font-weight: 400;
line-height: 20px;
text-align: left;
}

&_value {
align-self: flex-start;
font-size: 24px;
font-weight: 600;
line-height: 36px;
text-align: left;
background: linear-gradient(0deg, #17233a, #17233a), linear-gradient(66.12deg, rgba(23, 212, 167, 0) -.72%, #17d4a7 124.59%);
background-size: cover;
background-blend-mode: overlay;
Expand All @@ -191,10 +188,9 @@
row-gap: 20px;

> span {
font-size: 16px;
font-size: 18px;
font-weight: 400;
line-height: 20px;
text-align: left;
line-height: 26px;
color: #17233a;
}
}
Expand All @@ -208,10 +204,9 @@
padding: 0 24px;

&_descr {
font-size: 16px;
font-size: 18px;
font-weight: 400;
line-height: 20px;
text-align: left;
line-height: 26px;
color: #17233a;
margin: 0;
}
Expand All @@ -238,7 +233,6 @@
font-size: 24px;
font-weight: 600;
line-height: 36px;
text-align: left;
color: #17233a;
}

Expand Down Expand Up @@ -286,15 +280,13 @@
font-size: 20px;
font-weight: 600;
line-height: 32px;
text-align: left;
color: #17233a;
}

&_position {
font-size: 16px;
font-weight: 400;
line-height: 20px;
text-align: left;
color: #17233a;
}

Expand Down
13 changes: 8 additions & 5 deletions src/assets/less/pages/sponsors.less
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,14 @@
height: 30px;
}
}

&.render {
height: 30px;

@media (min-width: 576px) {
height: 40px;
}
}
}

.sp-text {
Expand All @@ -303,11 +311,6 @@
}

&.row-gold .sp-item {
&.auto-height {
min-height: 272px;
height: auto;
}

@media (min-width: @screen-lg-min) {
height: 272px;
}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/jsdelivr.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ koaElasticUtils.addRoutes(router, [
*/
router.get('/globalping/:path(.*)?', async (ctx) => {
ctx.status = 301;
return ctx.redirect(`https://globalping.io/${ctx.params.path || ''}`);
return ctx.redirect(`https://globalping.io${ctx.url.replace(/^\/[^/?]+/, '')}`);
});

module.exports = router;
Loading

0 comments on commit 916f84c

Please sign in to comment.