forked from Transparency/kgroad-frontend2
made all pages
This commit is contained in:
1 parent
f6ceb252b2
commit
d6c6504d1f
57 files changed
+2260
-43
No files matched your search
@@ -0,0 +1,13 @@
|
||||
.report-like {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
|
||||
span {
|
||||
align-self: center;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
line-height: 18px;
|
||||
color: rgb(74, 192, 63);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
import "./ReportLike.scss";
|
||||
import Image from "next/image";
|
||||
import like from "./icons/like.svg";
|
||||
import { apiInstance } from "@/shared/config/apiConfig";
|
||||
|
||||
interface IReportLikeProps {
|
||||
count: number;
|
||||
}
|
||||
|
||||
const ReportLike: React.FC<IReportLikeProps> = ({
|
||||
count,
|
||||
}: IReportLikeProps) => {
|
||||
const likeReport = async () => {
|
||||
const res = await apiInstance.post("");
|
||||
};
|
||||
return (
|
||||
<button className="report-like">
|
||||
<Image src={like} alt="Like Icon" />
|
||||
<span>{count}</span>
|
||||
</button>
|
||||
);
|
||||
};
|
||||
|
||||
export default ReportLike;
|
||||
@@ -0,0 +1,8 @@
|
||||
<svg width="26.000000" height="26.000000" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<desc>
|
||||
Created with Pixso.
|
||||
</desc>
|
||||
<defs/>
|
||||
<rect id="thumbs-up" width="26.000000" height="26.000000" fill="#FFFFFF" fill-opacity="0"/>
|
||||
<path id="Vector" d="M7.58301 11.917L4.33301 11.917C3.7583 11.917 3.20752 12.1455 2.80127 12.5518C2.39502 12.958 2.1665 13.5088 2.1665 14.084L2.1665 21.667C2.1665 22.2412 2.39502 22.793 2.80127 23.1992C3.20752 23.6055 3.7583 23.834 4.33301 23.834L7.58301 23.834L19.8027 23.834C20.3262 23.8398 20.833 23.6562 21.2305 23.3184C21.6289 22.9795 21.8916 22.5088 21.9697 21.9922L23.4648 12.2422C23.5117 11.9316 23.4912 11.6143 23.4033 11.3125C23.3154 11.0107 23.1641 10.7324 22.958 10.4951C22.752 10.2578 22.4961 10.0684 22.21 9.94043C21.9229 9.81152 21.6123 9.74707 21.2979 9.75L15.167 9.75L15.167 5.41699C15.167 4.55469 14.8242 3.72852 14.2148 3.11914C13.6055 2.50977 12.7783 2.16699 11.916 2.16699L7.58301 11.917L7.58301 23.834" stroke="#4AC03F" stroke-opacity="1.000000" stroke-width="2.000000" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
Reference in new issue
Block a user