Skip to content

Commit e38d9a3

Browse files
authored
feat: remove background from hero section (#1085)
Closes #1078 Since nothing else is specified, I removed every background gradient from every hero section we have (homepage, sdk page, api page).
1 parent 0e47b50 commit e38d9a3

File tree

5 files changed

+2
-105
lines changed

5 files changed

+2
-105
lines changed

src/components/Hero/styles.module.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
.heroBanner {
4141
padding-top: 80px;
4242
padding-bottom: 56px;
43-
background-image: url('/src/pages/img/hero-background-gradient.svg');
44-
background-position: center center;
45-
background-repeat: no-repeat;
46-
background-size: cover;
4743
margin-bottom: 32px;
4844
}
4945

src/pages/api/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ import Section from '../../components/Section/Section';
1919
import Tabs from '../../components/Tabs';
2020
import UiLibraryWrapper from '../../components/UiLibraryWrapper';
2121

22-
const HeroWrapper = styled(Hero)`
23-
background-image: url("/img/hero_background.svg");
24-
`;
25-
2622
const SectionWrapper = styled(Section)`
2723
display: flex;
2824
flex-direction: column;
@@ -122,7 +118,7 @@ export default function Api() {
122118
return (
123119
<Layout>
124120
<UiLibraryWrapper>
125-
<HeroWrapper
121+
<Hero
126122
heading="Apify API"
127123
isCentered
128124
description={<>Apify API provides programmatic access to the <Link to="/">Apify Platform</Link></>}

src/pages/img/hero-background-gradient.svg

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/pages/sdk/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ async def main():
4040
soup = BeautifulSoup(response.content, 'html.parser')
4141
await Actor.push_data({ 'url': actor_input['url'], 'title': soup.title.string })`;
4242

43-
const HeroWrapper = styled(Hero)`
44-
background-image: url("/img/hero_background.svg");
45-
`;
46-
4743
const StyledContent = styled.div`
4844
width: 100%;
4945
display: flex;
@@ -68,7 +64,7 @@ export default function Home() {
6864
return (
6965
<Layout>
7066
<UiLibraryWrapper>
71-
<HeroWrapper
67+
<Hero
7268
heading="Apify SDK"
7369
isCentered
7470
description={

static/img/hero_background.svg

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)