-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into pr/choir27/82
- Loading branch information
Showing
7 changed files
with
137 additions
and
30 deletions.
There are no files selected for viewing
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
18 changes: 18 additions & 0 deletions
18
src/app/components/groupPhotoSection/groupPhotoSection.module.css
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,18 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@800&display=swap'); | ||
|
||
.groupPhotoSection { | ||
background-color: #3c3db9; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
padding: 2em 1.5em; | ||
} | ||
|
||
.groupPhotoImg { | ||
border: #eeeeee 5px solid; | ||
width: 100%; | ||
height: auto; | ||
justify-content: center; | ||
align-items: center; | ||
border-radius: 10px; | ||
} |
14 changes: 14 additions & 0 deletions
14
src/app/components/groupPhotoSection/groupPhotoSection.test.js
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,14 @@ | ||
import React from 'react'; // Import React | ||
import { render, screen } from '@testing-library/react'; | ||
import GroupPhotoSection from './heroSection'; | ||
|
||
describe('GroupPhotoSection component', () => { | ||
const labelMap = { | ||
lblHero: "You don't have to code alone.", | ||
}; | ||
test('renders the component', () => { | ||
render(<GroupPhotoSection label={labelMap.lblHero} />); | ||
const groupPhotoElement = screen.getByTestId('hero'); | ||
expect(groupPhotoElement).toBeInTheDocument(); | ||
}); | ||
}); |
20 changes: 20 additions & 0 deletions
20
src/app/components/groupPhotoSection/groupPhotoSection.tsx
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,20 @@ | ||
'use client'; | ||
|
||
import React from 'react'; | ||
import styles from './groupPhotoSection.module.css'; | ||
import Image from 'next/image'; | ||
import { detectContentType } from 'next/dist/server/image-optimizer'; | ||
|
||
export default function GroupPhotoSection({ label }: { label: string }) { | ||
return ( | ||
<div className={styles.groupPhotoSection} data-testid='groupPhoto'> | ||
<Image | ||
className={styles.groupPhotoImg} | ||
src='/assets/meetupGroupShot5.png' | ||
alt='Meetup Group Shot image' | ||
width={1450} | ||
height={500} | ||
/> | ||
</div> | ||
); | ||
} |
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