-
Notifications
You must be signed in to change notification settings - Fork 4
Dis 31 landing page comments section #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 11 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
fe5b37b
Create signup page and login page
836aaa6
Create TestimonialCard of landing page
1ded0cd
Create TestimonialCard
31e4142
Resolve conflict: remove package-lock.json to match main
8edef40
fix: sync lockfile with package.json
1adb346
chore: remove temporary landing test page
58aabae
fix: add @mui/system to resolve Theme type error
b195a5d
chore: sync lockfile after installing @mui/system
1aa51d7
fix: correct margin typing using SxProps<Theme>
b177b5a
fix: add 'quote' to Testimonial interface
07d6c8f
fix: apply sx margin directly from item prop
eca29c4
Merge branch 'main' of https://github.com/Dispatch-AI-com/frontend inβ¦
c88a7a3
refactor: rewrite testimonial section using styled-components
299a5d0
fix: remove sx type error from styled component
4ee3fa8
chore: remove GlobalStyleSample.tsx to pass ESLint
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| // components/features/TestimonialsSection.tsx | ||
| 'use client'; | ||
|
|
||
| import { Box, Typography } from '@mui/material'; | ||
| import type { SxProps, Theme } from '@mui/system'; | ||
| import TestimonialCard from '@/components/ui/TestimonialCard'; | ||
|
|
||
| interface Testimonial { | ||
| name: string; | ||
| title: string; | ||
| quote: string; | ||
| margin: SxProps<Theme>; | ||
| } | ||
|
|
||
| const testimonials: Testimonial[] = [ | ||
| { | ||
| quote: 'SmartAgent cut our missed calls by 80%. Lifesaver for my plumbing business!', | ||
| name: 'Josn', | ||
| title: 'CEO of ABC Company', | ||
| margin: { xs: 0, md: '72px 48px 120px 240px' }, | ||
| }, | ||
| { | ||
| quote: 'Automated follow-ups saved me 10+ hours a week managing rentals.', | ||
| name: 'Jena', | ||
| title: 'Rental Manager', | ||
| margin: { xs: 0, md: '72px 240px 120px 48px' }, | ||
| }, | ||
| ]; | ||
|
|
||
| export default function TestimonialsSection() { | ||
| return ( | ||
| <Box sx={{ px: 2, py: 10, bgcolor: 'white' }}> | ||
| {/* Section Title */} | ||
| <Typography | ||
| sx={{ | ||
| fontFamily: 'Roboto', | ||
| fontSize: '48px', | ||
| fontWeight: 900, | ||
| lineHeight: 1.17, | ||
| textAlign: 'center', | ||
| color: '#060606', | ||
| maxWidth: '864px', | ||
| mx: 'auto', | ||
| mt: '200px', | ||
| mb: '72px', | ||
| }} | ||
| > | ||
| Trusted by Small Businesses Like Yours | ||
| </Typography> | ||
|
|
||
| {/* Responsive Card Layout */} | ||
| <Box | ||
| display="flex" | ||
| flexDirection={{ xs: 'column', md: 'row' }} | ||
| alignItems="center" | ||
| justifyContent="center" | ||
| gap={{ xs: 4, md: 0 }} | ||
| sx={{ overflowX: 'auto' }} | ||
| > | ||
| {testimonials.map((item, idx) => ( | ||
| <TestimonialCard | ||
| key={idx} | ||
| quote={item.quote} | ||
| name={item.name} | ||
| title={item.title} | ||
| sx={item.margin} | ||
| /> | ||
| ))} | ||
| </Box> | ||
| </Box> | ||
| ); | ||
| } | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.