-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #501 from rolling-scopes/refactor/499-widget-alumni
499-refactor: Widget alumni
- Loading branch information
Showing
6 changed files
with
88 additions
and
134 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.alumni { | ||
p { | ||
width: 640px; | ||
margin-top: 0; | ||
|
||
@include media-tablet { | ||
width: 100%; | ||
} | ||
} | ||
} | ||
|
||
.alumni-list { | ||
display: grid; | ||
grid-template-columns: repeat(12, 1fr); | ||
row-gap: 48px; | ||
place-items: center; | ||
|
||
padding: 40px 0 48px; | ||
} | ||
|
||
.logo-container { | ||
display: block; | ||
grid-column: span 2; | ||
|
||
@include media-laptop { | ||
grid-column: span 3; | ||
|
||
&:nth-child(n + 13) { | ||
display: none; | ||
} | ||
} | ||
|
||
@include media-tablet { | ||
grid-column: span 6; | ||
|
||
&:nth-child(n + 7) { | ||
display: none; | ||
} | ||
} | ||
|
||
@include media-mobile { | ||
grid-column: span 12; | ||
} | ||
} | ||
|
||
.logo { | ||
width: 136px; | ||
height: 40px; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { render, screen } from '@testing-library/react'; | ||
import { describe, expect, it } from 'vitest'; | ||
import { Alumni } from './alumni'; | ||
|
||
describe('Alumni', () => { | ||
beforeEach(() => { | ||
render(<Alumni />); | ||
}); | ||
|
||
it('renders the title correctly', () => { | ||
const titleElement = screen.getByText('Our alumni'); | ||
|
||
expect(titleElement).toBeInTheDocument(); | ||
}); | ||
|
||
it('renders the paragraph correctly', () => { | ||
const paragraphElement = screen.getByText(/We are immensely proud of RS School alumni/i); | ||
|
||
expect(paragraphElement).toBeInTheDocument(); | ||
}); | ||
|
||
it('renders all images for large screens', () => { | ||
const imageElements = screen.getAllByRole('img'); | ||
|
||
expect(imageElements).toHaveLength(18); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters