Skip to content
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

Agenda App #5

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Agenda App #5

wants to merge 10 commits into from

Conversation

CatalinGheorghiu
Copy link
Owner

No description provided.

@CatalinGheorghiu
Copy link
Owner Author

Please check my PR @mihaiandrei97 and @ivanms1. Thanks

Copy link
Collaborator

@ivanms1 ivanms1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incredible job!!

Comment on lines +75 to +91
{contactFile ? (
<img
width={80}
height={80}
className="h-14 w-14 rounded-full border border-violet-400 bg-slate-300 object-cover object-center md:h-20 md:w-20"
src={contactFile}
alt={contactName}
/>
) : (
<img
width={80}
height={80}
className="h-14 w-14 rounded-full border border-violet-400 object-cover object-center md:h-20 md:w-20"
src="../../public/avatar_default.png"
alt="Default avatar"
/>
)}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{contactFile ? (
<img
width={80}
height={80}
className="h-14 w-14 rounded-full border border-violet-400 bg-slate-300 object-cover object-center md:h-20 md:w-20"
src={contactFile}
alt={contactName}
/>
) : (
<img
width={80}
height={80}
className="h-14 w-14 rounded-full border border-violet-400 object-cover object-center md:h-20 md:w-20"
src="../../public/avatar_default.png"
alt="Default avatar"
/>
)}
<img
width={80}
height={80}
className="h-14 w-14 rounded-full border border-violet-400 bg-slate-300 object-cover object-center md:h-20 md:w-20"
src={contactFile || "../../public/avatar_default.png"}
alt={contactName || Default avatar"}
/>

Comment on lines +129 to +148
<div className="border-b border-slate-200 py-2">
<p className="text-sm font-black">Mobile</p>
<p className="text-xs text-slate-400">
{contactPhoneNumber}
</p>
</div>
<div className="border-b border-slate-200 py-2">
<p className="text-sm font-black">Group</p>
<p className="text-xs text-slate-400">{contactGroup}</p>
</div>
<div className="border-b border-slate-200 py-2">
<p className="text-sm font-black">Link numbers</p>
<p className="text-xs text-slate-400">{contactGroup}</p>
</div>
<div className="border-b border-slate-200 py-2">
<p className="text-sm font-black">Add to favorites</p>
</div>
<div className="border-b border-slate-200 py-2">
<p className="text-sm font-black">Share my location</p>
</div>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if these have all the same styles you could make a static array and map through it

Comment on lines +94 to +110
{currentContact.contactFile ? (
<img
width={48}
height={48}
className="mr-4 h-12 w-12 rounded-full border border-violet-400 object-cover object-center md:h-14 md:w-14"
src={currentContact?.contactFile}
alt={currentContact?.contactName}
/>
) : (
<img
width={48}
height={48}
className="mr-4 h-12 w-12 rounded-full border border-violet-400 object-cover object-center md:h-14 md:w-14"
src="../../public/avatar_default.png"
alt="Default avatar"
/>
)}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same above img

Comment on lines +139 to +140
<input
className="w-full rounded-2xl border border-gray-200 bg-gray-50 px-4 py-2 text-sm text-black placeholder:text-sm placeholder:text-gray-300"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it will be nice to have an component that you can reuse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants