Skip to content

Commit

Permalink
feats/about
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoJustin committed Aug 23, 2024
1 parent 9a1f5f4 commit bb79f7d
Show file tree
Hide file tree
Showing 11 changed files with 144 additions and 32 deletions.
39 changes: 22 additions & 17 deletions src/ss_frontend/Routes/Route.jsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
import AboutPage from "../src/pages/AboutPage";
import HomePage from "../src/pages/HomePage";
import ProfileForm from "../src/pages/ProfileForm/ProfileForm";
import ProfilePage from "../src/pages/ProfilePage";

export const RoutesList = [
{
name: "Profile",
path: "/profile",
element: <ProfilePage />
},
{
name: "Profile Form",
path: "/profile-form",
element: <ProfileForm />
},
{
name: "Home",
path: "/",
element: <HomePage />
},

]
{
name: "Profile",
path: "/profile",
element: <ProfilePage />,
},
{
name: "Profile Form",
path: "/profile-form",
element: <ProfileForm />,
},
{
name: "Home",
path: "/",
element: <HomePage />,
},
{
name: "About",
path: "/about",
element: <AboutPage />,
},
];
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/ss_frontend/src/assets/about/jose.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/ss_frontend/src/assets/about/ryan.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/ss_frontend/src/assets/about/theo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/ss_frontend/src/assets/lang/flask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/ss_frontend/src/assets/lang/icp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/ss_frontend/src/assets/lang/motoko.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/ss_frontend/src/assets/lang/python.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 10 additions & 9 deletions src/ss_frontend/src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,29 @@ import { AiOutlineUser } from "react-icons/ai";
import { AiFillAliwangwang } from "react-icons/ai";
import { AiOutlineTeam } from "react-icons/ai";
import { AiTwotoneAppstore } from "react-icons/ai";
import { Link } from "react-router-dom";

const Navbar = () => {
return (
<div className="navbar fixed bg-white z-10">
<div className="flex-1 flex-row ml-8">
<div className="navbar fixed bg-white z-20">
<Link to={'/'} className="flex-1 flex-row ml-8">
<img src={logo} alt="sunshine logo" className="w-16 h-16" />
<a className="btn btn-ghost text-xl">Sunshine - Socialfi</a>
</div>
</Link>
<div className="flex gap-4">
<div className="flex mr-8 gap-8">
<div className="flex flex-col justify-center items-center cursor-pointer hover:mb-2 hover:transition-all">
<Link to={'/'} className="flex flex-col justify-center items-center cursor-pointer hover:mb-2 hover:transition-all">
<AiOutlineTeam className="text-3xl" />
<p className="text-sm">Friends</p>
</div>
<div className="flex flex-col justify-center items-center cursor-pointer hover:mb-2 hover:transition-all">
</Link>
<Link to={'/'} className="flex flex-col justify-center items-center cursor-pointer hover:mb-2 hover:transition-all">
<AiTwotoneAppstore className="text-3xl" />
<p className="text-sm">Discover</p>
</div>
<div className="flex flex-col justify-center items-center cursor-pointer hover:mb-2 hover:transition-all">
</Link>
<Link to={'/about'} className="flex flex-col justify-center items-center cursor-pointer hover:mb-2 hover:transition-all">
<AiFillAliwangwang className="text-3xl" />
<p className="text-sm">About Us</p>
</div>
</Link>
</div>
<div className="form-control">
<input
Expand Down
118 changes: 112 additions & 6 deletions src/ss_frontend/src/pages/AboutPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,132 @@ import React from "react";
import MainTemplate from "../templates/MainTemplate";
import bg from "../assets/bg-ss-real.jpg";
import logo from "../assets/ss_logo.png";
import profile_1 from "../assets/about/theo.jpg";
import profile_2 from "../assets/about/ryan.jpg";
import profile_3 from "../assets/about/jose.jpg";
import language_1 from "../assets/lang/icp.png";
import language_2 from "../assets/lang/motoko.jpg";
import language_3 from "../assets/lang/python.png";
import language_4 from "../assets/lang/flask.png";
import hackathon from "../assets/about/hackathon_about.jpg";

const AboutPage = () => {
return (
<div>
<MainTemplate>
<div className="w-screen h-80 flex flex-col justify-center items-center relative">
{/* Header Section */}
<div className="w-screen h-[60vh] flex flex-col justify-center items-center relative">
<div
className="absolute inset-0 bg-cover bg-center opacity-80"
className="absolute h-full inset-0 bg-cover bg-center opacity-80"
style={{
backgroundImage: `url(${bg})`,
backgroundPosition: "center 68%",
backgroundPosition: "center 69%",
}}
/>
<p className="font-bold text-4xl z-10">About Sunshine</p>
<p className="font-bold text-4xl z-10 mt-10">About Sunshine</p>
<p className="mt-4 font-semibold text-lg z-10">
Socialfi Crowdfunding with DAO system and NLP AI integration
</p>
</div>
<div className="flex flex-row justify-around items-center">
<img src={logo} alt="sunshine logo" className="w-24 h-24"/>

{/* Project Overview Section */}
<div className="flex flex-col justify-center items-center my-16">
<h2 className="text-3xl font-bold mb-4">Project Overview</h2>
<div className="flex flex-row justify-center items-center">
<img src={logo} alt="Sunshine logo" className="w-64 h-64" />
<p className="text-lg leading-relaxed text-gray-700 max-w-xl font-semibold text-justify ml-8">
Sunshine is a SocialFi and crowdfunding platform that integrates
AI-driven sentiment analysis (NLP) to detect if comments on the
chain contain disturbing content or potential scams. Posts flagged
by the AI are automatically managed through a DAO system, enabling
project post removal when necessary.
</p>
</div>
</div>

{/* Languages and Technologies Section */}
<div className="flex flex-col justify-center items-center my-16">
<h2 className="text-3xl font-bold mb-8">Languages & Technologies</h2>
<div className="flex justify-around items-center gap-28 px-8">
<div className="flex flex-col items-center">
<img
src={language_1}
alt="Internet Computer"
className="w-24 h-24 mb-4 object-contain"
/>
<p className="font-semibold">Internet Computer</p>
</div>
<div className="flex flex-col items-center">
<img
src={language_2}
alt="Motoko"
className="w-24 h-24 mb-4 object-contain"
/>
<p className="font-semibold">Motoko</p>
</div>
<div className="flex flex-col items-center">
<img
src={language_3}
alt="Python"
className="w-24 h-24 mb-4 object-contain"
/>
<p className="font-semibold">Python</p>
</div>
<div className="flex flex-col items-center">
<img
src={language_4}
alt="Flask"
className="w-24 h-24 mb-4 object-contain"
/>
<p className="font-semibold">Flask</p>
</div>
</div>
</div>

{/* Meet Our Team Section */}
<div className="flex flex-col justify-center items-center my-16">
<h2 className="text-3xl font-bold mb-8">Meet Our Team</h2>
<div className="flex flex-row justify-around items-center w-full px-8">
<div className="flex flex-col items-center">
<img
src={profile_1}
alt="Theo"
className="w-40 h-40 rounded-full mb-4 object-cover"
/>
<p className="font-semibold">Theo Justin Amantha</p>
<p className="text-gray-600">Developer</p>
</div>
<div className="flex flex-col items-center">
<img
src={profile_2}
alt="Ryan"
className="w-40 h-40 rounded-full mb-4 object-cover"
/>
<p className="font-semibold">Ryan Ray Wantouw Oei</p>
<p className="text-gray-600">Developer</p>
</div>
<div className="flex flex-col items-center">
<img
src={profile_3}
alt="Jose"
className="w-40 h-40 rounded-full mb-4 object-cover"
/>
<p className="font-semibold">Jose Jonathan Tano</p>
<p className="text-gray-600">Developer</p>
</div>
</div>
</div>

{/* Hackathon Section - Landscape */}
<div className="flex flex-col justify-center items-center my-16">
<h2 className="text-3xl font-bold mb-8">
Made at Chain Fusion Hacker House
</h2>
<img
src={hackathon}
alt="Hackathon"
className="w-1/2 h-auto rounded-lg object-cover mr-8 max-h-96"
/>
</div>
</MainTemplate>
</div>
Expand Down

0 comments on commit bb79f7d

Please sign in to comment.