Skip to content

Commit 376009b

Browse files
committed
duhc
1 parent 8eff1da commit 376009b

File tree

5 files changed

+44
-11
lines changed

5 files changed

+44
-11
lines changed

sites/mainweb/app/layout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { Metadata } from "next";
33
import { GeistSans, GeistMono } from "geist/font"; // combine imports
44
import "./globals.css";
55

6-
// these are already usable
76
const geistSansVar = GeistSans.variable;
87
const geistMonoVar = GeistMono.variable;
98

sites/mainweb/app/page.tsx

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import furnichanter from "@/assets/images/logos/furnichanter.png";
3030
import arc from "@/assets/images/logos/arc-logo-v3.png";
3131
import gtaa from "@/assets/images/logos/gtaa.png";
3232
import blueconduit from "@/assets/images/logos/blueconduit.png";
33+
import stock from "@/assets/images/logos/stock.png"
3334

3435
const Pie = dynamic(() => import("react-chartjs-2").then(mod => mod.Pie), {
3536
ssr: false,
@@ -154,7 +155,7 @@ const Home = () => {
154155
Learn <strong>Python</strong>, <strong>pandas</strong>, visualization, and machine learning fundamentals through a structured, hands-on project.
155156
</Mini>
156157
<Mini>
157-
<LearnMore to="https://dsgtbootcamp.netlify.app/" target="_blank" rel="noopener noreferrer">Learn more at our Bootcamp site</LearnMore>
158+
<LearnMore to="/bootcamp" rel="noopener noreferrer">Learn more at our Bootcamp site</LearnMore>
158159
</Mini>
159160
</div>
160161
<div className="md:w-1/2 w-full group" role="figure">
@@ -258,15 +259,33 @@ const Home = () => {
258259

259260
{/* Other project cards */}
260261
<Card
261-
img={dlp4}
262-
heading="Deep Learning Playground"
263262
linkUrl="https://datasciencegt-dlp.com/"
264263
className="flex flex-col justify-between h-full hover:shadow-2xl hover:-translate-y-1 transition-all duration-300 border border-white/5 p-6 rounded-xl"
265264
>
266-
<p className="text-gray-300 text-sm leading-relaxed line-clamp-4 mb-4">
267-
Deep Learning Playground is a user-friendly web app that provides an
268-
interactive and accessible introduction to <strong>Machine Learning</strong> and <strong>Deep Learning</strong> concepts.
265+
{/* Logo on top (manual) */}
266+
<div className="w-full flex justify-center mb-4">
267+
<div className="p-4 bg-white rounded-xl">
268+
<Image
269+
src={stock}
270+
alt="Roboinvesting Logo"
271+
className="object-contain w-32 h-32"
272+
width={128}
273+
height={128}
274+
/>
275+
</div>
276+
</div>
277+
278+
{/* Title below image */}
279+
<h3 className="text-teal-400 text-lg font-bold text-center mb-3">Roboinvesting</h3>
280+
281+
<p className="text-gray-300 text-sm leading-relaxed">
282+
A <strong>machine learning–driven trading simulation</strong> that analyzes
283+
<strong> technical indicators</strong>, <strong>macroeconomic signals</strong>,
284+
and <strong>risk metrics</strong> to generate
285+
<strong> data-informed trading decisions</strong>. Built for
286+
<strong> education</strong> and <strong>real-world financial modeling experience</strong>.
269287
</p>
288+
270289
<a
271290
href="https://datasciencegt-dlp.com/"
272291
target="_blank"
1.32 MB
Loading

sites/mainweb/components/Card/index.tsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ interface CardProps {
1515
const Card: React.FC<CardProps> = ({ img, imgClassName = "", heading, linkUrl, children, className = "" }) => {
1616
const [imgError, setImgError] = useState(false);
1717

18+
// Compute initials from heading to use in the fallback placeholder
19+
const initials = heading
20+
? heading
21+
.split(/\s+/)
22+
.slice(0, 2)
23+
.map((w) => w[0])
24+
.join("")
25+
.toUpperCase()
26+
: "PG"; // PG = Project
27+
1828
return (
1929
<div
2030
className={`bg-[#111] text-white rounded-xl shadow-lg overflow-hidden flex flex-col justify-between transition-transform duration-300 hover:-translate-y-1 ${className}`}
@@ -29,16 +39,21 @@ const Card: React.FC<CardProps> = ({ img, imgClassName = "", heading, linkUrl, c
2939
className={`object-contain w-4/5 h-full ${imgClassName}`}
3040
width={400}
3141
height={160}
32-
onError={() => setImgError(true)}
42+
onError={(e) => {
43+
// log for easier debugging and show the fallback
44+
// eslint-disable-next-line no-console
45+
console.error("Project image failed to load:", heading, e);
46+
setImgError(true);
47+
}}
3348
// keep placeholder prop for optimization while handling potential failures
3449
placeholder="empty"
3550
/>
3651
) : (
3752
// Fallback: simple SVG with initials so something meaningful is always visible
38-
<div className="w-full h-full flex items-center justify-center p-4 bg-white/5">
53+
<div className="w-full h-full flex items-center justify-center p-4 bg-white/5" role="img" aria-label={`${heading} placeholder` }>
3954
<svg width="120" height="80" viewBox="0 0 120 80" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden>
4055
<rect width="120" height="80" rx="8" fill="#0f172a" />
41-
<text x="50%" y="55%" dominantBaseline="middle" textAnchor="middle" fill="#74b1aa" fontSize="18" fontFamily="Inter, ui-sans-serif, system-ui">ARC</text>
56+
<text x="50%" y="55%" dominantBaseline="middle" textAnchor="middle" fill="#74b1aa" fontSize="20" fontFamily="Inter, ui-sans-serif, system-ui">{initials}</text>
4257
</svg>
4358
</div>
4459
)}

sites/mainweb/components/Navbar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const Navbar: React.FC<NavbarProps> = ({
3636
{ name: "Home", to: "home", link: false },
3737
{ name: "About", to: "about", link: false },
3838
{ name: "Bootcamp", to: "bootcamp", link: false },
39-
{ name: "Golden Byte", to: "golden-byte", link: false },
39+
{ name: "Hacklytics", to: "golden-byte", link: false },
4040
{ name: "Projects", to: "projects", link: false },
4141
{ name: "Get Involved", to: "getinvolved", link: false },
4242
{

0 commit comments

Comments
 (0)