Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

docs: fix blurred logo on homepage in firefox and safari

Martin Adámek9cd007b0168b
diff --git a/website/src/pages/index.js b/website/src/pages/index.js
index d5bd8aefe..8091aeda8 100644
--- a/website/src/pages/index.js
+++ b/website/src/pages/index.js
@@ -8,7 +8,6 @@ import styles from './index.module.css';
import Hightlights from '../components/Highlights';
function Hero() {
- const SvgLogoBlur = require('../../static/img/logo-big.svg').default;
return (
<header className={clsx('container', styles.heroBanner)}>
<div className="row padding-horiz--md">
@@ -39,7 +38,7 @@ function Hero() {
</div>
<div className={clsx(styles.relative, 'col', 'col--5')}>
<div className={styles.logoBlur}>
- <SvgLogoBlur className={clsx(styles.hideSmall)} />
+ <img src={require('../../static/img/logo-blur.png').default} className={clsx(styles.hideSmall)} />
</div>
<div className={styles.codeBlock}>
<CodeBlock className="language-bash">
diff --git a/website/src/pages/index.module.css b/website/src/pages/index.module.css
index 9eebb64ae..56fa11159 100644
--- a/website/src/pages/index.module.css
+++ b/website/src/pages/index.module.css
@@ -91,11 +91,11 @@ html[data-theme='dark'] .heroBanner h2 {
}
.logoBlur {
- position: relative;
- width: 436px;
- height: 396px;
- overflow: hidden;
- filter: blur(45px);
+ position: absolute;
+ width: 680px;
+ height: 680px;
+ top: -120px;
+ left: -100px;
}
.logoBlur > svg {
@@ -175,7 +175,6 @@ html[data-theme='dark'] .heroBanner h2 {
line-height: 28px;
padding: 12px 24px;
background: #ed3545;
- border: 1px solid #cfd4eb;
border-radius: 8px;
color: white;
font-weight: 600;
diff --git a/website/static/img/logo-blur.png b/website/static/img/logo-blur.png
new file mode 100644
index 000000000..bd2ec64e6
Binary files /dev/null and b/website/static/img/logo-blur.png differ
diff --git a/website/static/img/logo-blur.svg b/website/static/img/logo-blur.svg
index 0f82cda0d..b553811c6 100644
--- a/website/static/img/logo-blur.svg
+++ b/website/static/img/logo-blur.svg
@@ -1,72 +1,77 @@
-<svg width="676" height="676" fill="none" xmlns="http://www.w3.org/2000/svg">
- <g stroke-linecap="round" stroke-linejoin="round">
+<svg width="680" height="680" viewBox="0 0 680 680" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <g filter="url(#filter0_f_601_36953)">
<path
- d="M543.647 511.33H132.054c-5.888 0-9.569-6.625-6.625-11.961l102.91-185.348 102.91-185.348c2.944-5.291 10.305-5.291 13.249 0l66.199 119.241c-39.793 9.844-69.281 45.773-69.281 88.602 0 50.42 40.851 91.271 91.271 91.271 24.703 0 47.153-9.798 63.576-25.808l54.054 97.39c2.945 5.29-.736 11.961-6.624 11.961h-.046Z"
- fill="url(#b)" stroke="url(#c)" stroke-width="8.661"/>
+ d="M543.647 511.33H132.054C126.166 511.33 122.485 504.705 125.429 499.369L228.339 314.021L331.249 128.673C334.193 123.382 341.554 123.382 344.498 128.673L410.697 247.914C370.904 257.758 341.416 293.687 341.416 336.516C341.416 386.936 382.267 427.787 432.687 427.787C457.39 427.787 479.84 417.989 496.263 401.979L550.317 499.369C553.262 504.659 549.581 511.33 543.693 511.33H543.647Z"
+ fill="url(#paint0_linear_601_36953)" stroke="url(#paint1_linear_601_36953)" stroke-width="8.66071"
+ stroke-linecap="round" stroke-linejoin="round"/>
<path
- d="M515.815 374.239c-14.353 31.605-46.188 53.548-83.129 53.548-50.419 0-91.27-40.851-91.27-91.27 0-50.42 40.851-91.271 91.27-91.271 14.169 0 27.556 3.22 39.517 8.97"
- stroke="url(#d)" stroke-width="16.667"/>
+ d="M515.815 374.239C501.462 405.844 469.627 427.787 432.686 427.787C382.267 427.787 341.416 386.936 341.416 336.517C341.416 286.097 382.267 245.246 432.686 245.246C446.855 245.246 460.242 248.466 472.203 254.216"
+ stroke="url(#paint2_linear_601_36953)" stroke-width="16.6667" stroke-linecap="round"
+ stroke-linejoin="round"/>
</g>
<defs>
- <linearGradient id="b" x1="551.354" y1="124.705" x2="166.625" y2="549.572" gradientUnits="userSpaceOnUse">
- <stop offset=".001" stop-color="#FFB200"/>
- <stop offset=".081" stop-color="#FFB100"/>
- <stop offset=".156" stop-color="#FFAF02"/>
- <stop offset=".225" stop-color="#FEAB04"/>
- <stop offset=".291" stop-color="#FDA606"/>
- <stop offset=".353" stop-color="#FCA00A"/>
- <stop offset=".413" stop-color="#FB980E"/>
- <stop offset=".471" stop-color="#FA9013"/>
- <stop offset=".529" stop-color="#F98618"/>
- <stop offset=".587" stop-color="#F77B1E"/>
- <stop offset=".647" stop-color="#F56F24"/>
- <stop offset=".709" stop-color="#F3632B"/>
- <stop offset=".774" stop-color="#F25532"/>
- <stop offset=".844" stop-color="#EF473A"/>
- <stop offset=".918" stop-color="#ED3842"/>
- <stop offset=".999" stop-color="#EB284B"/>
- </linearGradient>
- <linearGradient id="c" x1="551.354" y1="124.705" x2="166.625" y2="549.572" gradientUnits="userSpaceOnUse">
- <stop offset=".001" stop-color="#FFB200"/>
- <stop offset=".081" stop-color="#FFB100"/>
- <stop offset=".156" stop-color="#FFAF02"/>
- <stop offset=".225" stop-color="#FEAB04"/>
- <stop offset=".291" stop-color="#FDA606"/>
- <stop offset=".353" stop-color="#FCA00A"/>
- <stop offset=".413" stop-color="#FB980E"/>
- <stop offset=".471" stop-color="#FA9013"/>
- <stop offset=".529" stop-color="#F98618"/>
- <stop offset=".587" stop-color="#F77B1E"/>
- <stop offset=".647" stop-color="#F56F24"/>
- <stop offset=".709" stop-color="#F3632B"/>
- <stop offset=".774" stop-color="#F25532"/>
- <stop offset=".844" stop-color="#EF473A"/>
- <stop offset=".918" stop-color="#ED3842"/>
- <stop offset=".999" stop-color="#EB284B"/>
- </linearGradient>
- <linearGradient id="d" x1="515.815" y1="245.246" x2="333.463" y2="419.463" gradientUnits="userSpaceOnUse">
- <stop offset=".001" stop-color="#FFB200"/>
- <stop offset=".081" stop-color="#FFB100"/>
- <stop offset=".156" stop-color="#FFAF02"/>
- <stop offset=".225" stop-color="#FEAB04"/>
- <stop offset=".291" stop-color="#FDA606"/>
- <stop offset=".353" stop-color="#FCA00A"/>
- <stop offset=".413" stop-color="#FB980E"/>
- <stop offset=".471" stop-color="#FA9013"/>
- <stop offset=".529" stop-color="#F98618"/>
- <stop offset=".587" stop-color="#F77B1E"/>
- <stop offset=".647" stop-color="#F56F24"/>
- <stop offset=".709" stop-color="#F3632B"/>
- <stop offset=".774" stop-color="#F25532"/>
- <stop offset=".844" stop-color="#EF473A"/>
- <stop offset=".918" stop-color="#ED3842"/>
- <stop offset=".999" stop-color="#EB284B"/>
- </linearGradient>
- <filter id="a" x="-2.3" y="-2" width="680" height="680" filterUnits="userSpaceOnUse"
+ <filter id="filter0_f_601_36953" x="-2.29907" y="-2" width="680" height="680" filterUnits="userSpaceOnUse"
color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
- <feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feGaussianBlur stdDeviation="60" result="effect1_foregroundBlur_601_36953"/>
</filter>
+ <linearGradient id="paint0_linear_601_36953" x1="551.354" y1="124.705" x2="166.625" y2="549.572"
+ gradientUnits="userSpaceOnUse">
+ <stop offset="0.000950807" stop-color="#FFB200"/>
+ <stop offset="0.0814769" stop-color="#FFB100"/>
+ <stop offset="0.156006" stop-color="#FFAF02"/>
+ <stop offset="0.225461" stop-color="#FEAB04"/>
+ <stop offset="0.290764" stop-color="#FDA606"/>
+ <stop offset="0.352838" stop-color="#FCA00A"/>
+ <stop offset="0.412606" stop-color="#FB980E"/>
+ <stop offset="0.47099" stop-color="#FA9013"/>
+ <stop offset="0.528912" stop-color="#F98618"/>
+ <stop offset="0.587296" stop-color="#F77B1E"/>
+ <stop offset="0.647064" stop-color="#F56F24"/>
+ <stop offset="0.709138" stop-color="#F3632B"/>
+ <stop offset="0.774441" stop-color="#F25532"/>
+ <stop offset="0.843896" stop-color="#EF473A"/>
+ <stop offset="0.918425" stop-color="#ED3842"/>
+ <stop offset="0.998951" stop-color="#EB284B"/>
+ </linearGradient>
+ <linearGradient id="paint1_linear_601_36953" x1="551.354" y1="124.705" x2="166.625" y2="549.572"
+ gradientUnits="userSpaceOnUse">
+ <stop offset="0.000950807" stop-color="#FFB200"/>
+ <stop offset="0.0814769" stop-color="#FFB100"/>
+ <stop offset="0.156006" stop-color="#FFAF02"/>
+ <stop offset="0.225461" stop-color="#FEAB04"/>
+ <stop offset="0.290764" stop-color="#FDA606"/>
+ <stop offset="0.352838" stop-color="#FCA00A"/>
+ <stop offset="0.412606" stop-color="#FB980E"/>
+ <stop offset="0.47099" stop-color="#FA9013"/>
+ <stop offset="0.528912" stop-color="#F98618"/>
+ <stop offset="0.587296" stop-color="#F77B1E"/>
+ <stop offset="0.647064" stop-color="#F56F24"/>
+ <stop offset="0.709138" stop-color="#F3632B"/>
+ <stop offset="0.774441" stop-color="#F25532"/>
+ <stop offset="0.843896" stop-color="#EF473A"/>
+ <stop offset="0.918425" stop-color="#ED3842"/>
+ <stop offset="0.998951" stop-color="#EB284B"/>
+ </linearGradient>
+ <linearGradient id="paint2_linear_601_36953" x1="515.815" y1="245.246" x2="333.463" y2="419.463"
+ gradientUnits="userSpaceOnUse">
+ <stop offset="0.000950807" stop-color="#FFB200"/>
+ <stop offset="0.0814769" stop-color="#FFB100"/>
+ <stop offset="0.156006" stop-color="#FFAF02"/>
+ <stop offset="0.225461" stop-color="#FEAB04"/>
+ <stop offset="0.290764" stop-color="#FDA606"/>
+ <stop offset="0.352838" stop-color="#FCA00A"/>
+ <stop offset="0.412606" stop-color="#FB980E"/>
+ <stop offset="0.47099" stop-color="#FA9013"/>
+ <stop offset="0.528912" stop-color="#F98618"/>
+ <stop offset="0.587296" stop-color="#F77B1E"/>
+ <stop offset="0.647064" stop-color="#F56F24"/>
+ <stop offset="0.709138" stop-color="#F3632B"/>
+ <stop offset="0.774441" stop-color="#F25532"/>
+ <stop offset="0.843896" stop-color="#EF473A"/>
+ <stop offset="0.918425" stop-color="#ED3842"/>
+ <stop offset="0.998951" stop-color="#EB284B"/>
+ </linearGradient>
</defs>
</svg>