Skip to content

Commit

Permalink
Merge branch 'feat/247-change-type-of-eslint-config' of github.com:ro…
Browse files Browse the repository at this point in the history
…lling-scopes/site into feat/247-change-type-of-eslint-config
  • Loading branch information
SpaNb4 committed Jun 14, 2024
2 parents c4b4884 + d9e7e91 commit 81698e9
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 142 deletions.
33 changes: 0 additions & 33 deletions src/features/home/hero/hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,39 +99,6 @@
padding: 0 0 0 24px;
}
}

& > .tags-container {
@include media-tablet {
flex-direction: column;
align-items: flex-start;
padding: 0;
}

@include media-mobile {
padding: 0;
}

display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;

width: max-content;
padding: 0 0 0 24px;

& .tag-container {
@include media-tablet {
margin-top: 16px;
}

display: flex;
align-items: center;
}
}

& .tag-divider {
margin: 0 8px;
}
}

.description-title {
Expand Down
18 changes: 0 additions & 18 deletions src/features/home/hero/hero.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,4 @@ describe('Hero', () => {

expect(descTitle).toBeVisible();
});

it('renders three tags', () => {
renderWithRouter(<Hero />);
const tags = screen.getAllByRole('link');

expect(tags.length).toBe(3);
});

it('renders the correct tag labels', () => {
renderWithRouter(<Hero />);
const tag1 = screen.getByRole('link', { name: /education/i });
const tag2 = screen.getByRole('link', { name: /events & meetups/i });
const tag3 = screen.getByRole('link', { name: /community building/i });

expect(tag1).toBeInTheDocument();
expect(tag2).toBeInTheDocument();
expect(tag3).toBeInTheDocument();
});
});
33 changes: 0 additions & 33 deletions src/features/home/hero/hero.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,5 @@
import { TagDivider } from './tag-divider';
import { LinkCustom } from '@/app/components';

import './hero.scss';

interface TagProps {
id: string;
label: string;
}

const tags: TagProps[] = [
{
id: 'school',
label: 'education',
},
{
id: 'events',
label: 'events & meetups',
},
{
id: 'community',
label: 'community building',
},
];

export const Hero = () => {
return (
<main id="main" className="main container">
Expand All @@ -36,16 +13,6 @@ export const Hero = () => {
</div>
</div>
<h2 className="description-title">Connecting people, growing together, having fun</h2>
<div className="tags-container">
{tags.map(({ id, label }, index) => (
<div className="tag-container" key={id}>
<LinkCustom href={`#${id}`} button variant="outlined" rounded>
{label}
</LinkCustom>
{index !== tags?.length - 1 && <TagDivider />}
</div>
))}
</div>
</div>
</main>
);
Expand Down
1 change: 0 additions & 1 deletion src/features/home/hero/tag-divider/index.ts

This file was deleted.

31 changes: 0 additions & 31 deletions src/features/home/hero/tag-divider/tag-divider.scss

This file was deleted.

19 changes: 0 additions & 19 deletions src/features/home/hero/tag-divider/tag-divider.test.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions src/features/home/hero/tag-divider/tag-divider.tsx

This file was deleted.

0 comments on commit 81698e9

Please sign in to comment.