Teemu/feature/628 implement reusable cta section component for main page#630
Open
Teemu/feature/628 implement reusable cta section component for main page#630
Conversation
- Implemented a new CTASection component with responsive design and customizable links. - Added localization strings for English and Finnish, including Discord link text. - Introduced Google Play badge image asset. - used the ctasection in contactsection & playwithus components - updated test cases in playwithus.test.tsx
…ns/links; support mobile button layout for selecting flex-direction
…set to reduce duplication. - Moved googleplaybadge.svg to the correct assets location. - Removed the `links` prop from `CTASection` and updated usages to align with the related GitHub issue. - Added JSDoc to `CTASection`
general SharedButton to reduce duplication and improve maintainability.
Skoivumaki
requested changes
Feb 18, 2026
Member
There was a problem hiding this comment.
This is not an icon really. Move to images for clarity.
| "newsSection-title": "ALT Uutiset", | ||
| "newsSection-seeMore": "Lue lisää" | ||
| "newsSection-seeMore": "Lue lisää", | ||
| "contact-discordLinkText": "Liity Discord-ryhmään" |
Member
There was a problem hiding this comment.
Pretty sure its called "yhteisö" and not "ryhmä". Will wait to see what UI/UX has to say about it.
| /** | ||
| * Call-to-action section with image and optional actions. | ||
| * | ||
| * @example |
…21px, and move googleplaybadge.png from icons/ to images/
Contributor
Author
|
The other fixes are done 👍 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

📄 Pull Request Overview
Closes #628
🔧 Changes Made
Introduced a new reusable
CTASectioncomponent inshared/ui/CtaSectionactions,description,extraTextRefactored
PlayWithUsandContactSectioninpreparedPages/MainPage/_components/sectionsCTASection_getPage.tsfor button texts✅ Checklist Before Submission
console.log()or other debugging statements are left.📝 Additional Information
Provide any additional context or information that reviewers may need to know: