-
Notifications
You must be signed in to change notification settings - Fork 2
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
Landing Page initial #8
Conversation
✅ Deploy Preview for currenci-ecell ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
src/model/Testimonial.ts
Outdated
updatedAt: { | ||
type: Date, | ||
required: true, | ||
default: () => moment().tz("Asia/Kolkata").toDate(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
never assign time at schema level. Assign time in a controller
src/app/(pages)/page.js
Outdated
export default function Home() { | ||
return ( | ||
<main className="bg-white w-screen min-h-screen flex flex-col items-center pb-16"> | ||
<div className="w-[80vw] h-[45vw] rounded-lg md:rounded-3xl mt-28"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reduce height for wider displays. Its covering the more than screen height
key={item.title} | ||
> | ||
<div | ||
className={`w-[84vw] h-[35vw] md:h-[30vw] mx-[10vw] p-[4vw] rounded-3xl flex items-center justify-evenly text-justify ${index % 2 === 1 ? "flex-row-reverse" : ""}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't use vw for height cause for larger wider displays it looks hideous.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use vw units for anything except the width otherwise you won't have control over how your component looks. The margin ,padding looks way different than the design. Also if you are fixing the height of outer div then fix the height of inner div as well. The quote does not look good as it looks aligned downwards. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job
style={{ fontFamily: "Sofia Pro UltraLight" }} | ||
> | ||
{item.content} | ||
{item.content.split(" ").slice(0, 80).join(" ")}... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will it not add '...' even if the content <80? Its better to condition on character rather than on words.(length of a word varies..) . Do the samething for anywhere with longer text.
No description provided.