Skip to content

Commit

Permalink
frontend/edit dikit buat fund information
Browse files Browse the repository at this point in the history
  • Loading branch information
wantouw committed Aug 22, 2024
1 parent 8aaa2ef commit 42a7f91
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
8 changes: 8 additions & 0 deletions canister_ids.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"ss_backend": {
"ic": "guauy-iyaaa-aaaak-ak2ya-cai"
},
"ss_frontend": {
"ic": "gtbsm-faaaa-aaaak-ak2yq-cai"
}
}
5 changes: 5 additions & 0 deletions src/ss_frontend/src/components/DetailPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import blank from '../assets/logo/blankprofpic.png'
import { IoIosHeartEmpty } from "react-icons/io";
import { FaRegComments } from "react-icons/fa6";
import { FaRegComment } from "react-icons/fa";
import { RiMoneyDollarCircleLine } from 'react-icons/ri';

const DetailPage = () => {
return (
Expand Down Expand Up @@ -35,6 +36,10 @@ const DetailPage = () => {
<FaRegComments className='size-8' />
<p className='text-xl text-gray-500'>111</p>
</div>
<div className='flex items-center gap-2'>
<RiMoneyDollarCircleLine className='size-8' />
<p className='text-xl text-gray-500'>funded by 111 users</p>
</div>
</div>
<button class="btn btn-warning text-lg h-[4rem]">I'm interested in funding this project</button>
<details className="dropdown">
Expand Down
9 changes: 7 additions & 2 deletions src/ss_frontend/src/components/HomePost.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import { IoCloseOutline } from "react-icons/io5";
import { IoIosHeartEmpty } from "react-icons/io";
import { FaRegComments } from "react-icons/fa6";
import { FaRegComment } from "react-icons/fa";
import { RiMoneyDollarCircleLine } from "react-icons/ri";

const HomePost = ({ postId, choosePost }) => {
return (
<div className='border-gray-200 border rounded-xl p-8' onClick={() => { choosePost(postId) }}>
<div className='border-gray-200 border rounded-xl p-6 cursor-pointer' onClick={() => { choosePost(postId) }}>
<div className=' w-full flex gap-5 justify-between'>
<img className='rounded-full size-16' src={blank} alt="" />
<div className='w-full gap-4 flex flex-col'>
Expand Down Expand Up @@ -37,9 +38,13 @@ const HomePost = ({ postId, choosePost }) => {
<FaRegComments className='size-8' />
<p className='text-xl text-gray-500'>111</p>
</div>
<div className='flex items-center gap-2'>
<RiMoneyDollarCircleLine className='size-8' />
<p className='text-xl text-gray-500'>funded by 111 users</p>
</div>
</div>
<details className="dropdown">
<summary className="btn text-gray-500 text-lg m-1 w-full">We've detected that this project may have low reliability. Do you agree?</summary>
<summary className="btn text-gray-500 text-lg m-1 w-full">We've detected that this project may have low reliability</summary>
<ul className="menu dropdown-content bg-base-100 rounded-box z-[1] w-full text-lg p-2 shadow">
<li><a>Yes</a></li>
<li><a>No</a></li>
Expand Down
2 changes: 1 addition & 1 deletion src/ss_frontend/src/components/TextInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const TextInput = () => {
console.log(inputText)

try {
const response = await fetch("http://localhost:5000/analyze", {
const response = await fetch("https://web-production-d8ae.up.railway.app/analyze", {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down

0 comments on commit 42a7f91

Please sign in to comment.