Skip to content

Commit

Permalink
Merge pull request #45 from Code-the-Dream-School/about-us
Browse files Browse the repository at this point in the history
About us
  • Loading branch information
ozzydogandev authored Jan 21, 2025
2 parents f3ec2e3 + 6e2378e commit 763fa53
Show file tree
Hide file tree
Showing 7 changed files with 195 additions and 8 deletions.
Binary file added images/hh-team8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import HomePage from "./views/HomePage";
import ShareAProject from "./views/ShareAProject";
import ExploreProjects from "./views/ExploreProjects";
import PrivateRoute from "./views/PrivateRoute";
import AboutUs from "./views/AboutUsPage";
const URL = "http://localhost:8000/api/v1/";

function App() {
Expand Down Expand Up @@ -34,6 +35,7 @@ function App() {
<Route path="/share-project" element={<ShareAProject />} />
</Route>
<Route path="/explore-project" element={<ExploreProjects />} />
<Route path="/about-us" element={<AboutUs />} />
<Route path="/message" element={<h1>{message}</h1>} />
</Routes>
</Provider>
Expand Down
7 changes: 4 additions & 3 deletions src/components/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { InputGroup } from "./ui/input-group";
import { LuUser } from "react-icons/lu";
import { useState } from "react";
import { useNavigate } from "react-router-dom";
import { Toaster, toaster } from "../components/ui/toaster";
import { toaster } from "../components/ui/toaster";
const Login = ({ onFormSwitch, onLoginSuccess, isAuthentificated }) => {
const navigate = useNavigate();
const url = "http://localhost:8001/api/v1/login";
Expand Down Expand Up @@ -54,8 +54,9 @@ const Login = ({ onFormSwitch, onLoginSuccess, isAuthentificated }) => {
navigate("/"); // Redirect to share-project after successful login
toaster.create({
title: "Login successful!",
description: "Successfully logged in!",
type: "success",
duration: 8000,
duration: 4000,
action: {
label: "x",
},
Expand Down Expand Up @@ -159,7 +160,7 @@ const Login = ({ onFormSwitch, onLoginSuccess, isAuthentificated }) => {
</Button>
</VStack>
</Group>
<Toaster />
<toaster />
</VStack>
);
};
Expand Down
6 changes: 3 additions & 3 deletions src/components/LoginAuth.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box, HStack, VStack, Image, Button } from "@chakra-ui/react";
import React, { useState } from "react";
import { useNavigate } from "react-router-dom";
import { Toaster, toaster } from "../components/ui/toaster";
import { toaster } from "../components/ui/toaster";
import {
DialogBody,
DialogHeader,
Expand Down Expand Up @@ -41,7 +41,7 @@ const CardWithForm = ({ isAuthentificated }) => {
const data = await response.json();
toaster.create({
title: "Logout",
description: data.message,
description: `${data.message}!`,
type: "success",
duration: 4000,
action: {
Expand Down Expand Up @@ -136,7 +136,7 @@ const CardWithForm = ({ isAuthentificated }) => {
</DialogFooter>
</DialogContent>
</DialogRoot>
<Toaster />
<toaster />
</div>
) : (
<DialogRoot placement="center" id={"authDialog"}>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ const Navbar = () => {
<MenuItem value="new-txt2" as="a" href="/home">
Home
</MenuItem>
<MenuItem value="new-txt">About Us</MenuItem>
<MenuItem value="new-txt" as="a" href="/about-us">About Us</MenuItem>
</MenuContent>
</MenuRoot>
</div>
<div className="menu">
<a className="menulink" href="/home">
HOME
</a>
<a className="menulink" href="">
<a className="menulink" href="/about-us">
ABOUT US
</a>
<LoginAuth isAuthentificated={isAuthentificated} />
Expand Down
74 changes: 74 additions & 0 deletions src/styles/AboutUs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
.about-us-container{
margin-top: 140px;
padding: 0 40px;
display: flex;
flex-direction: column;
}
.about-us-img-container{
display: flex;
justify-content: center;
align-items: center;
margin-top: 30px;
}
.about-us-img{
width: 80%;
transition: transform 0.5s ease;
border-radius: 22px;
box-shadow: 4px 4px 10px rgba(99, 233, 238, 0.5); /* Horizontal, Vertical, Blur, Spread */

}
.about-us-img:hover {
transform: scale(1.04); /* Zoom in */
}
.about-us-header{
font-size: 48px;
font-weight: 600;
text-align: center;
}
.about-us-header-below{
font-size: 20px;
text-align: center;
font-weight: 600;
}
.about-us-text-area{
max-width: 770px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
flex-direction: column;
font-size: 20px;
line-height: 40px;
font-weight: 400;
}
.our-values-header{
text-align: left;
font-weight: 600;
font-size: 30px;
}
.grid-box{
margin-bottom: 30px;
}
.ctd-logo{
margin-top: 20px;
}
.our-values-below{
text-decoration: underline;
}
@media (max-width: 768px) {
.about-us-container{
margin-top: 120px;
text-align: center;
}
.our-values-below{
line-height: 30px;
}
.our-values-header{
text-align: center;
font-weight: 600;
font-size: 30px;
}
.about-us-img{
width: 100%;
}
}
110 changes: 110 additions & 0 deletions src/views/AboutUsPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
import React from 'react';
import "../styles/AboutUs.css";
import { Box, VStack, Heading, Text } from "@chakra-ui/react";
import { Separator } from "@chakra-ui/react"
import { FaTools, FaShareAlt, FaSearch, FaRedo } from "react-icons/fa"; // Example icons
import { Grid, GridItem, Icon } from "@chakra-ui/react";


const AboutUs = () => {
const values = [
{
title: "Build",
description:
"Lay the foundation by creating innovative projects that solve real-world problems and inspire learning.",
icon: FaTools,
},
{
title: "Share",
description:
"Exchange ideas and solutions by sharing knowledge and projects with the community to foster collaboration.",
icon: FaShareAlt,
},
{
title: "Review",
description:
"Provide constructive feedback to refine ideas and approaches, ensuring quality and innovation.",
icon: FaSearch,
},
{
title: "Repeat",
description:
"Iterate on processes and projects to continuously improve and achieve even greater results.",
icon: FaRedo,
},
];



return(
<div className='about-us-container'>
<p className='about-us-header'>About Us</p>
<p className='about-us-header-below'>Build. Share. Review. Repeat.</p>
<div className='about-us-img-container'>
<img className="about-us-img" src="./images/hh-team8.png"></img>
</div>
<div className='about-us-text-area'>
<Text fontSize="lg" marginBottom="4" marginTop='40px'>
Welcome to our collaborative project-sharing platform! Our mission is
to empower developers, designers, and creatives to showcase their
work, get feedback, and inspire others in the community.
</Text>

<Box textAlign="center" py={5} px={4} className='grid-box'>
<Heading className='our-values-header'>
Our Values
</Heading>
<Text maxW="700px" mx="auto" mb={10} color="gray.500" fontSize='16px' className='our-values-below'>
Our process revolves around these core principles: Build, Share, Review, and Repeat.
</Text>
<Grid
templateColumns={{ base: "1fr", lg: "repeat(2, 1fr)" }}
gap={6}
>
{values.map((value, index) => (
<GridItem
key={index}
bg="blue.50"
borderRadius="22px"
p={6}
boxShadow="md"
transition="all 0.3s"
_hover={{ transform: "translateY(-5px)", boxShadow: "lg" }}
>
<VStack spacing={4} align="center">
<Icon fontSize="4xl" color="blue.500">
<value.icon />
</Icon>
<Heading as="h3" size="md" color="blue.700">
{value.title}
</Heading>
<Text color="gray.600" textAlign={{lg: "left"}} fontSize='18px' lineHeight='30px' className='box-text'>
{value.description}
</Text>
</VStack>
</GridItem>
))}
</Grid>
</Box>
<Text fontSize="lg" marginBottom="4">
With features like project discovery, real-time commenting, and
dynamic engagement, we aim to create a vibrant ecosystem where ideas
thrive and collaborations flourish.
</Text>
<Text fontSize="lg" marginBottom="8">
Our team is passionate about building tools that connect people and
drive innovation. Join us in making this platform a hub for creative
expression and growth.
</Text>
<Separator size="xs" marginBottom='20px'/>
<Text fontSize="lg" marginBottom="8">
Ready to make an impact? Join us today, share your project, and connect with like-minded creators shaping the future! 🚀
</Text>
</div>
<footer>
<img className="ctd-logo" src="./images/ctd-logo.png" alt="CTD Logo" />
</footer>
</div>
)
}
export default AboutUs;

0 comments on commit 763fa53

Please sign in to comment.