Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 31-01-2024 #125

Merged
merged 126 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
df7a1f0
page init
Ase020 Nov 28, 2023
3014448
remove borders
Ase020 Nov 29, 2023
016cb8d
add paginator
Ase020 Nov 29, 2023
7a8fbf3
add paginator
Ase020 Nov 29, 2023
f416300
Add Paginatoor
Ase020 Nov 29, 2023
21e028c
Merge branch 'main' into new-resources-page-build
Ase020 Nov 29, 2023
f0b60d0
tablet design update
Ase020 Nov 30, 2023
805541c
add text color to Join community btn
Ase020 Dec 4, 2023
37f255b
delete EventAbout.css file
Ase020 Dec 7, 2023
ac5c756
comment out resources navlinks
Ase020 Dec 18, 2023
f55b0cf
Merge remote-tracking branch 'origin/main' into new-resources-page-build
JimmyOty Dec 28, 2023
377b2b6
resolve conflicts
Ase020 Dec 28, 2023
4432ffe
set max-width to 1440px
Ase020 Jan 2, 2024
6e46312
init blog formatting
Ase020 Jan 3, 2024
6ef935d
format blogs page
Ase020 Jan 3, 2024
70fd0c4
add line-clamp to podCard title&desc
Ase020 Jan 3, 2024
0cf2043
return categories
Ase020 Jan 3, 2024
fbd9138
add blog search functionality
Ase020 Jan 4, 2024
aae2da1
prevent blogWrapper.css styles affecting other components
Ase020 Jan 4, 2024
36becdf
add text-primary & bg in global.css
Ase020 Jan 4, 2024
cf2de42
style code on blog body
Ase020 Jan 4, 2024
8d751fc
wrap no result in a p tag
Ase020 Jan 4, 2024
62e59e6
init pageNotFound
Ase020 Jan 4, 2024
1482eac
import 404 image
Ase020 Jan 4, 2024
af0eedb
complete page not found page
Ase020 Jan 4, 2024
d0fcc03
Merge pull request #98 from SpaceyaTech/blog-page-format
JimmyTron Jan 5, 2024
68efe35
import formatDistanceToNow (#100)
Ase020 Jan 5, 2024
21381d4
refactor service section
Ase020 Jan 6, 2024
7cd3014
change param to title_slug
Ase020 Jan 6, 2024
f061fc6
filter blogs by categories
Ase020 Jan 6, 2024
7c53394
make blog categories scrollable
Ase020 Jan 6, 2024
55603c4
span components on the landing page
Ase020 Jan 6, 2024
3176306
add download attribute internship document
Ase020 Jan 6, 2024
5afd015
fix route
Ase020 Jan 7, 2024
5915c09
fetch related blogs on blog page
Ase020 Jan 7, 2024
85632ef
refetch on page change
Ase020 Jan 7, 2024
8b414d1
add error img
Ase020 Jan 7, 2024
cf9b90a
add condition filtering to cat
Ase020 Jan 7, 2024
57f7f8e
add loader to blog page
Ase020 Jan 8, 2024
7c8fa29
build error500 mobile page
Ase020 Jan 9, 2024
3045b72
build error500 web page
Ase020 Jan 9, 2024
37d3217
remove img border
Ase020 Jan 9, 2024
1e0705d
Merge branch 'main' into page-not-found
Ase020 Jan 9, 2024
3876edc
error 400 page build
Ase020 Jan 9, 2024
a0e1171
Merge branch 'page-not-found' of github.com:SpaceyaTech/SYT-Web-Redes…
Ase020 Jan 9, 2024
b55f1e1
error 400 page build
Ase020 Jan 9, 2024
0332d8e
error 403 page build
Ase020 Jan 9, 2024
e3bd03b
reinsert 404 page
Ase020 Jan 9, 2024
c4950cd
remove 403 route
Ase020 Jan 9, 2024
5956c62
removed unbuilt routes
Ase020 Jan 9, 2024
e8f2a34
Filter out recurring current blog on related blogs fetched.
collinskasyoki Jan 9, 2024
f5a9b22
Merge pull request #102 from SpaceyaTech/related-blogs
Ase020 Jan 9, 2024
54cb428
Merge branch 'main' into page-not-found
Ase020 Jan 9, 2024
929c7fb
Add error500 svg img
Ase020 Jan 9, 2024
482a39f
Merge branch 'page-not-found' of github.com:SpaceyaTech/SYT-Web-Redes…
Ase020 Jan 9, 2024
226ca0a
Merge pull request #103 from SpaceyaTech/page-not-found
JimmyTron Jan 9, 2024
4fc2626
Merge branch 'main' into remove-pages-wip-build
JimmyTron Jan 10, 2024
6bff912
Merge pull request #104 from SpaceyaTech/remove-pages-wip-build
JimmyTron Jan 10, 2024
8efc6de
Dev resolve conflict (#106)
Ase020 Jan 10, 2024
4a23d51
Merge branch 'Dev' into main
spaceyatech-org Jan 10, 2024
2e80a94
remove duplicate
Ase020 Jan 11, 2024
37558b7
create error routes
Ase020 Jan 11, 2024
6874a88
re-route to error-pages
Ase020 Jan 11, 2024
82a7fb1
Add related blogs header
Ase020 Jan 11, 2024
11596e7
conditionally render related blogs
Ase020 Jan 11, 2024
ae63223
conditionally render related blogs
Ase020 Jan 11, 2024
b1efb82
Merge pull request #107 from SpaceyaTech/remove-duplicates-main
JimmyTron Jan 11, 2024
a2f91d3
Merge pull request #108 from SpaceyaTech/remove-footer-nav-errorPages
JimmyTron Jan 11, 2024
65e563d
Merge branch 'main' into add-related-blogs-header
JimmyTron Jan 11, 2024
d633b1d
resize subscription form on small screens
Ase020 Jan 12, 2024
ffcc3b7
style: fixed styles on landing page
sonylomo Jan 12, 2024
5cfca6f
refactor: added temp API statements
sonylomo Jan 15, 2024
f15b285
refactor: added single order endpoint
sonylomo Jan 15, 2024
39da8ad
Merge pull request #109 from SpaceyaTech/add-related-blogs-header
JimmyTron Jan 15, 2024
daeb5d6
Merge pull request #110 from SpaceyaTech/resize-subscribe-form-footer
JimmyTron Jan 15, 2024
78a4f37
rename related blogs header to related articles
Ase020 Jan 16, 2024
986be89
Merge pull request #111 from SpaceyaTech/feat/shop-pages
JimmyTron Jan 18, 2024
d1a3caa
gallery init
Ase020 Jan 18, 2024
48efbb5
add dummy photos
Ase020 Jan 19, 2024
289d0a6
reformat event dates
Ase020 Jan 22, 2024
a2a3070
format date on the events page
Ase020 Jan 22, 2024
808f966
remove console logs
Ase020 Jan 22, 2024
1f9c416
add Loader
Ase020 Jan 22, 2024
d6c84ef
remove parse
Ase020 Jan 22, 2024
7ec08a9
Add blog liking functionality
collinskasyoki Jan 22, 2024
b222ab8
add hover effect
Ase020 Jan 22, 2024
2c1c934
Hotfix 0.1 broken events page (#113)
collinskasyoki Jan 22, 2024
3caf87d
use grid to render images
Ase020 Jan 22, 2024
5f5774f
Merge branch 'main' into reformat-events-dates
Ase020 Jan 23, 2024
00ea7f7
add overflow to events container
Ase020 Jan 23, 2024
37232fb
add wrap on Events cities filter for mobile
Ase020 Jan 23, 2024
7837c14
Merge pull request #114 from SpaceyaTech/reformat-events-dates
JimmyTron Jan 23, 2024
aed3a94
Merge pull request #115 from SpaceyaTech/implement-blog-like-feature
spaceyatech-org Jan 23, 2024
327bc73
Merge pull request #112 from SpaceyaTech/rename-related-blogs-to-arti…
spaceyatech-org Jan 23, 2024
06cdd3d
add more photos
Ase020 Jan 23, 2024
66f47ee
change id number
Ase020 Jan 23, 2024
f82d8c6
data syt photos
Ase020 Jan 24, 2024
bd4f643
refactor: add gallery footer link
sonylomo Jan 24, 2024
be21b91
Merge pull request #117 from SpaceyaTech/gallery-page-build
Ase020 Jan 24, 2024
5ccbd4c
add error boundary
Ase020 Jan 25, 2024
9af5daa
add fetch-blog
Ase020 Jan 25, 2024
2aa1343
set p tags font sizes
Ase020 Jan 25, 2024
b985d00
Merge branch 'Dev' into refetch-blog
spaceyatech-org Jan 25, 2024
d00979e
Merge branch 'Dev' into error-boundary
spaceyatech-org Jan 25, 2024
f95c1b4
error500 import
Ase020 Jan 25, 2024
2c7b563
reslove conflicts
Ase020 Jan 25, 2024
8ce7bd1
Update 'date' variable to 'start_date'
collinskasyoki Jan 26, 2024
c48fd84
Remove console log statement
collinskasyoki Jan 26, 2024
2144177
Merge pull request #122 from SpaceyaTech/hotfix-fix_broken_date_filte…
sonylomo Jan 26, 2024
413ef07
Update src/APP/pages/aboutUs/sections/PartnerCTA.jsx
sonylomo Jan 26, 2024
92aedec
Update src/APP/pages/aboutUs/sections/PartnerCTA.jsx
Ase020 Jan 26, 2024
574e96e
remove the justify-between on events display
Ase020 Jan 26, 2024
062ba06
Merge pull request #119 from SpaceyaTech/refetch-blog
sonylomo Jan 27, 2024
29688f8
Merge branch 'main' into error-boundary
Ase020 Jan 29, 2024
d0c0123
replace Link tags with a tags on error pages
Ase020 Jan 29, 2024
9ba597a
add pattern attr to phone input
Ase020 Jan 29, 2024
2920323
add colabs cover
Ase020 Jan 30, 2024
dc3824f
Merge branch 'main' into new-resources-page-build
sonylomo Jan 30, 2024
c8f89eb
refactor: added resources route
sonylomo Jan 30, 2024
3398272
commented out resources page
sonylomo Jan 30, 2024
ffc51c2
Merge pull request #86 from SpaceyaTech/new-resources-page-build
JimmyTron Jan 30, 2024
7e957f4
Merge pull request #118 from SpaceyaTech/error-boundary
sonylomo Jan 30, 2024
a8ce0ba
Merge pull request #124 from SpaceyaTech/add-colabs-cover
sonylomo Jan 31, 2024
4031bf2
Merge pull request #123 from SpaceyaTech/validate-tel-partners
JimmyTron Jan 31, 2024
fab44ba
Merge branch 'Dev' into main
JimmyTron Feb 6, 2024
3774da6
Merge branch 'Dev' into main
JimmyTron Feb 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,145 changes: 572 additions & 573 deletions src/ADMIN/pages/events/AddEventPage.jsx

Large diffs are not rendered by default.

234 changes: 117 additions & 117 deletions src/APP/components/Header2.jsx
Original file line number Diff line number Diff line change
@@ -1,117 +1,117 @@
import { useState } from "react";
import { Link, useLocation } from "react-router-dom";
import logo from "../../assets/images/sytLogo.png";
import menu from "../../assets/images/hamburger-menu.svg";
const navLinks = [
{
id: 1,
link: "Home",
route: "/",
},
{
id: 2,
link: "About Us",
route: "/about-us",
},
{
id: 3,
link: "Community",
route: "/community",
},
{
id: 4,
link: "Products",
route: "/products",
},
{
id: 5,
link: "Blogs",
route: "/blogs",
},
// {
// id: 6,
// link: "Resources",
// route: "/resources",
// },
// {
// id: 7,
// link: "Shop",
// route: "/shop",
// },
// {
// id: 8,
// link: "Donate",
// route: "/donate",
// },
];
const Header2 = () => {
const [showNavlinks, setShowNavlinks] = useState(false);
const { pathname } = useLocation();
return (
<header className="py-5 md:px-10 px-5 flex items-center justify-between md:shadow-none shadow-md relative max-w-[1440px] md:mx-auto">
{/* logo */}
<Link to="/">
<img src={logo} alt="logo" className="md:w-16 w-12" />
</Link>
{/* mobile menu */}
<img
src={menu}
alt="logo"
className="md:hidden"
onClick={() => setShowNavlinks((prev) => !prev)}
/>
{/* mobile navlinks */}
<nav
className="flex flex-col items-start justify-start gap-6 text-base absolute top-[90px] left-0 bg-white border-b w-full h-fit z-[1] p-5 pl-12"
style={
showNavlinks
? { display: "flex", height: "calc(100vh - 90px)" }
: { display: "none" }
}
>
{navLinks.map(({ link, id, route }) => {
const isActive = pathname === route;
return (
<Link
key={id}
className={`${
isActive ? "text-primary underline" : "text-gray-900"
} hover:text-primary hover:underline transition-all duration-300 cursor-pointer`}
to={`${route}`}
onClick={() => setShowNavlinks(false)}
>
{link}
</Link>
);
})}
</nav>
{/* navlinks */}
<nav className="md:flex hidden items-center gap-5 text-base">
{navLinks.map(({ id, link, route }) => {
const isActive = pathname === route;
return (
<Link
key={id}
className={`${
isActive ? "text-primary underline" : "text-gray-900"
} hover:text-primary hover:underline transition-all duration-300 cursor-pointer`}
to={`${route}`}
>
{link}
</Link>
);
})}
</nav>
</header>
);
};
export default Header2;
import { useState } from "react";
import { Link, useLocation } from "react-router-dom";

import logo from "../../assets/images/sytLogo.png";
import menu from "../../assets/images/hamburger-menu.svg";

const navLinks = [
{
id: 1,
link: "Home",
route: "/",
},
{
id: 2,
link: "About Us",
route: "/about-us",
},
{
id: 3,
link: "Community",
route: "/community",
},
{
id: 4,
link: "Products",
route: "/products",
},
{
id: 5,
link: "Blogs",
route: "/blogs",
},
// {
// id: 6,
// link: "Resources",
// route: "/resources",
// },
// {
// id: 7,
// link: "Shop",
// route: "/shop",
// },
// {
// id: 8,
// link: "Donate",
// route: "/donate",
// },
];

const Header2 = () => {
const [showNavlinks, setShowNavlinks] = useState(false);

const { pathname } = useLocation();

return (
<header className="py-5 md:px-10 px-5 flex items-center justify-between md:shadow-none shadow-md relative max-w-[1440px] md:mx-auto">
{/* logo */}
<Link to="/">
<img src={logo} alt="logo" className="md:w-16 w-12" />
</Link>

{/* mobile menu */}
<img
src={menu}
alt="logo"
className="md:hidden"
onClick={() => setShowNavlinks((prev) => !prev)}
/>

{/* mobile navlinks */}
<nav
className="flex flex-col items-start justify-start gap-6 text-base absolute top-[90px] left-0 bg-white border-b w-full h-fit z-[1] p-5 pl-12"
style={
showNavlinks
? { display: "flex", height: "calc(100vh - 90px)" }
: { display: "none" }
}
>
{navLinks.map(({ link, id, route }) => {
const isActive = pathname === route;
return (
<Link
key={id}
className={`${
isActive ? "text-primary underline" : "text-gray-900"
} hover:text-primary hover:underline transition-all duration-300 cursor-pointer`}
to={`${route}`}
onClick={() => setShowNavlinks(false)}
>
{link}
</Link>
);
})}
</nav>

{/* navlinks */}
<nav className="md:flex hidden items-center gap-5 text-base">
{navLinks.map(({ id, link, route }) => {
const isActive = pathname === route;
return (
<Link
key={id}
className={`${
isActive ? "text-primary underline" : "text-gray-900"
} hover:text-primary hover:underline transition-all duration-300 cursor-pointer`}
to={`${route}`}
>
{link}
</Link>
);
})}
</nav>
</header>
);
};

export default Header2;
5 changes: 2 additions & 3 deletions src/APP/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Homepage from "./pages/shop/Homepage";
import SingleItemPage from "./pages/shop/pages/SingleItemPage";
import Layout from "./pages/Layout";
import Products from "./pages/products2/Products";
import Resources from "./pages/resources/Resources";
import Resources from "./pages/resources2/Resources";

import Checkout from "./pages/shop/pages/OrderSummary";

Expand All @@ -26,10 +26,10 @@ import Error404 from "./pages/errorPages/Error404";
import Error500 from "./pages/errorPages/Error500";

import ErrorBoundary from "./pages/errorPages/ErrorBoundary";

import ProductDisplay from "./pages/shop/pages/ProductDisplay";
import GalleryPage from "./pages/gallery/GalleryPage";


export {
LandingPage,
Homepage,
Expand All @@ -56,5 +56,4 @@ export {
ErrorBoundary,
ProductDisplay,
GalleryPage,

};
3 changes: 2 additions & 1 deletion src/APP/pages/aboutUs/sections/LeadershipSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,9 @@ function LeadershipSection() {
/>

<input
type="telephone"
type="tel"
placeholder="Phone number"
pattern="[0-9\s]{10,13}"
required
className="w-full outline-none text-base font-normal placeholder:text-gray-600 border border-[#79747E] rounded-[4px] pl-4 py-2"
value={phoneNumber}
Expand Down
1 change: 0 additions & 1 deletion src/APP/pages/aboutUs/sections/PartnerCTA.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ function PartnerCTA() {
<p>
<a
href="/src/assets/reports/spaceyatech-internship-program.pdf"
download="SpaceYaTech_Internship_Program_2023.pdf"
target="_blank"
rel="noopener noreferrer"
className="text-primary text-sm sm:text-base"
Expand Down
7 changes: 2 additions & 5 deletions src/APP/pages/blog/Blog.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@

import React from "react";
import React, { useEffect } from "react";
import { useParams, useNavigate } from "react-router-dom";


import BlogWrapper from "./sections/BlogWrapper";
import RelatedBlogs from "./sections/RelatedBlogs";
import { Loader } from "../../components";
Expand All @@ -14,7 +11,7 @@ function Blog() {
const navigate = useNavigate();
const {
data: blogData,

refetch: refetchBlogData,
isLoading,
isError,
isSuccess,
Expand Down
Loading
Loading