Skip to content

Commit

Permalink
detail card designed
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemir123 committed Nov 20, 2022
1 parent a8741c7 commit bc1d638
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/conponents/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ const Card = ({ item }) => {
UpdateComment(commentArray);
toastSuccessNotify("Yorum Eklendi");
} else {
toastWarnNotify("girilen harf sayısı 100den fazla olmalıdır");
toastWarnNotify("girilen harf sayısı 20den fazla olmalıdır");
}
};
useEffect(() => {
setCount(comments.split(""));
}, [comments]);
return (
<>
<div className="rounded-lg shadow-md max-w-sm w-[350px] relative bg-gray-200 shadow-black mb-12 py-2">
<div className="rounded-lg shadow-md max-w-sm w-[350px] relative bg-gray-200 shadow-black mb-12 py-6">
<div
onClick={() =>
user.email
Expand Down Expand Up @@ -167,7 +167,7 @@ const Card = ({ item }) => {
onChange={(e) => setComments(e.target.value)}
></textarea>

<div className="modal-footer flex flex-shrink-0 flex-wrap items-center justify-end p-4 border-t border-gray-200 rounded-b-md">
<div className="modal-footer flex flex-shrink-0 flex-wrap items-center justify-end p-4 rounded-b-md">
<p className="absolute bottom-16">3000/{count?.length}</p>
<button
type="button"
Expand Down
6 changes: 3 additions & 3 deletions src/conponents/Comment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
const Comment = ({ item }) => {

return (
<div className="bg-gray-500 text-white font-bold text-xl pl-2 mt-2 flex gap-8 items-center pb-5 relative">
<div className="bg-gray-500 text-white font-bold text-lg pl-2 mt-2 flex gap-8 items-center pb-5 relative">
<div>
<svg width="40" height="40" viewBox="0 0 24 24">
<path fill="orange" d="M18 14V6h-5v8l2.5-1.5z" />
Expand All @@ -13,11 +13,11 @@ const Comment = ({ item }) => {
</svg>
</div>

<div className="px-10 ">
<div className="pr-5">
<p
className="pt-2 font-mono font-bold "
style={{
width: "95%",
width: "100%",
wordWrap: "break-word",
}}
>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Details.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ const Details = () => {
const newArray = (state?.comment)?.map((item)=>item)
newArray?.shift()
return (
<div className="overflow-hidden mb-4">
<div className="overflow-hidden mb-4 ">
<Navbar />
<div className="flex items-center mt-2 flex-col">
<div className="rounded-lg shadow-md max-w-sm w-[550px] relative bg-gray-200 shadow-black mb-12">
<div className="rounded-lg shadow-md max-w-sm w-[550px] relative bg-gray-200 shadow-black mb-12 py-4">
<div className="w-[90%] h-36">
{state.ImgUrl ? (
<img
Expand Down
1 change: 1 addition & 0 deletions src/router/AppRouter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const AppRouter = () => {
<Route path="/login" element={<Login />} />
<Route path="/new" element={<New />} />
<Route path="/:title" element={<Details />}/>
<Route path="*" element={<Home />}/>
</Routes>
</>
);
Expand Down

1 comment on commit bc1d638

@vercel
Copy link

@vercel vercel bot commented on bc1d638 Nov 20, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

auth-redux – ./

auth-redux-git-master-erdemir123.vercel.app
auth-redux.vercel.app
auth-redux-erdemir123.vercel.app

Please sign in to comment.