-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
454 lines (406 loc) · 15.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-KCT6R7SKFW"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-KCT6R7SKFW');
</script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BAM Portfolio</title>
<script src="https://d3js.org/d3.v7.min.js"></script>
<style>
:root {
--primary-color: #2C3E50;
--secondary-color: #ECF0F1;
--accent-color: #E74C3C;
--background-color: #F5F5F5;
--text-color: #333;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: var(--background-color);
color: var(--text-color);
}
header {
background-color: var(--primary-color);
color: var(--secondary-color);
padding: 20px;
text-align: center;
}
nav {
display: flex;
justify-content: center;
gap: 15px;
padding: 10px 0;
}
nav a {
color: var(--secondary-color);
text-decoration: none;
font-weight: bold;
}
.hero {
text-align: center;
padding: 50px 20px;
}
.section {
padding: 20px;
max-width: 1200px;
margin: auto;
}
.project {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
.project-card {
background: var(--secondary-color);
border: 1px solid var(--primary-color);
border-radius: 8px;
padding: 20px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin: 20px;
}
.project-card-row {
}
footer {
text-align: center;
padding: 20px;
background-color: var(--primary-color);
color: var(--secondary-color);
}
.chart-container {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
}
.controls {
margin-bottom: 20px;
}
/* Modal styles */
.modal {
display: none;
position: fixed;
/* z-index: 1000; */
left: 0;
top: 0;
width: 100%;
height: 100%;
/* overflow: auto; */
background-color: rgba(0, 0, 0, 0.5);
justify-content: center;
align-items: center;
}
.modal-content {
background-color: white;
padding: 20px;
border-radius: 10px;
width: 90%;
max-width: 600px;
max-height: 90%;
overflow-y: auto;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}
.close-btn {
display: block;
margin-left: auto;
margin-bottom: 10px;
padding: 5px 10px;
background: red;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
#chart {
width: 100%;
height: auto;
}
.tooltip {
position: absolute;
background-color: white;
padding: 5px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 12px;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s;
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
}
/* Larger screen adjustments */
@media (min-width: 768px) {
.modal-content {
width: 80%; /* More space for larger screens */
}
}
@media (min-width: 1200px) {
.modal-content {
width: 60%;
}
}
</style>
<script>window.addEventListener('load', function () { var el = document.createElement('script'); el.setAttribute('src', 'https://client.consolto.com/iframeApp/iframeApp.js'); el.id = 'et-iframe'; el.async = true; el.setAttribute('data-widgetId', '6153673fc026597060d3764a'); el.setAttribute('data-version', 0.5); el.setAttribute('data-test', false); document.body.appendChild(el); }); </script>
<link rel="manifest" href="/manifest.json">
<meta name="theme-color" content="#2C3E50">
</head>
<body>
<header>
<h1>Brand Anthony McDonald</h1>
<p>Training to be the World's Fastest Centenarian.</p>
<p>Get Fit & Enjoy Trying.</p>
<nav>
<a href="#about">About</a>
<a href="#portfolio">Portfolio</a>
<a href="https://i.til.show/i-write-code-blog" target="_blank">iWriteCode Blog</a>
<a href="#contact">Contact</a>
</nav>
</header>
<section class="hero">
<h2>Welcome to BAM Portfolio</h2>
<p>Discover my projects, skills, and what I’m passionate about.</p>
<p>You may chat with me, video call, or schedule a meeting using the bubble at the bottom right corner of the screen.</p>
</section>
<section id="about" class="section">
<h2>About Me</h2>
<p>I'm a lifelong learner, educator, advocate for holistic well-being, handmodel, actor, and aspiring voiceover artist. I believe teaching should inspire curiosity, empower action, and promote lasting impact. I'm driven by a passion for storytelling. I aim to use this skill in developer relations to help tech companies achieve their goals while building community and fostering meaningful connections with the community.</p>
</section>
<section id="portfolio" class="section">
<h2>My Projects</h2>
<div class="project">
<div class="project-card-row">
<div class="project-card">
<div><i class="fa-brands fa-python"></i></div>
<h3>Fit T. Cent: Get Fit & Enjoy Tryin'</h3>
<p>A Retrieval-Augmented Generation (RAG) system using open-source tools like Weaviate, Verba, and Ollama. Fit T. Cent, my personal AI assistant designed to answer fitness, wellness, and nutrition questions based on the evidence-based curriculums of the National Academy of Sports Medicine (NASM).</p>
<a target=”_blank” href="https://i.til.show/fit-t-cent-rag-tutorial-ver-0000">View Project</a>
</div>
<div class="project-card">
<h3>Food Recall App</h3>
<p>Project Manager building a Food Recall Tracking App with Python, FastAPI, and MongoDB with the <a target="_blank" href="https://www.techbychoice.org/" >Tech By Choice Community</a>. Food recalls can have significant impacts on public health and safety, but tracking and understanding these recalls can be challenging. I built the api of the MVP using the <a target="_blank" href="https://fastapi.tiangolo.com/">Python FastAPI</a></p>
<a target=”_blank” href="https://github.com/TechByChoice/food-recall-app/tree/api">View Project.</a>
</div>
<div class="project-card">
<h3>RideWitUS</h3>
<p>Use D3.JS to show mileage usage and investment overtime. The user may dynamically adjust data on the graph. The graph opens in a modal when you click the button below.</p>
<button id="view-project-btn">View Project</button>
</div>
</div>
<div class="project-card-row">
<div class="project-card">
<h3>Science Clickbait RAG</h3>
<p>This project is a Retrieval-Augmented Generation (RAG) Tool designed to help users better understand scientific studies and avoid misinformation propagated by clickbait or hyperbolic posts. The tool uses free and open-source technologies to provide insights, detect misinformation, and promote critical thinking when analyzing scientific claims.</p>
<a target=”_blank” href="https://github.com/dapperAuteur/kys-rag">View Project</a>
</div>
<div class="project-card">
<h3>The Elementary MBA (TEMBA) Financial Dashboard</h3>
<p>TEMBA is the sound of breaking down barriers when you escape poverty. This financial dashboard app helps users track their accounts, optimize credit card payments, and stay informed about their financial health. Whether you're managing personal finances or streamlining workflows, this tool is designed to simplify your experience and provide actionable insights. Visit <a target="_blank" href="https://dashboard.elementarymba.com">TEMBA Financial Dashbord</a>. <a target="_blank" href="https://github.com/dapperAuteur/temba-fin-dashboard">TEMBA Code</a>.</p>
<a target=”_blank” href="#">View Project</a>
</div>
<div class="project-card">
<h3>Elementary MBA</h3>
<p>An MBA curriculum designed for children. The Elementary MBA was taught to 3rd-5th graders at Hirsch Academy Team CFA in Scottsdale, AZ for four years. The curriculum included coding and STEAM components to illustrate the application in the children's world. At least one student has started a business after completing the program, <a target="_blank" href="https://linktr.ee/teenshinepress">Teen Shine Press</a>.</p>
<a target=”_blank” href="#">View Project</a>
</div>
</div>
</div>
</section>
<section id="contact" class="section">
<h2>Contact Me</h2>
<p>You may chat with me in real-time using the chat bubble in the lower right corner. Feel free to connect via the following platforms:</p>
<ul>
<li><a target=”_blank” href="https://www.linkedin.com/in/brandanthonymcdonald">LinkedIn</a></li>
<li><a target=”_blank” href="https://github.com/dapperAuteur">GitHub</a></li>
<li><a href="mailto:[email protected]?subject=I Saw Your Portfolio Site&body=Let's talk about working together.">Email</a></li>
</ul>
</section>
<footer>
<p>© 2024 Brand Anthony McDonald. All rights reserved.</p>
</footer>
<div class="modal" id="visualization-modal">
<div class="modal-content">
<div class="chart-container">
<div class="controls">
<label for="date-range">Filter by Date Range: </label>
<input type="range" id="date-range" min="0" max="4" step="1" value="4" />
</div>
<button class="close-btn" id="close-modal-btn">Close</button>
<div id="chart"></div>
<div class="tooltip" id="tooltip"></div>
</div>
</div>
</div>
<!-- Add this JavaScript at the end of <body> -->
<script>
const data = [
{ date: "2024-01", mileage: 25, cost: 100 },
{ date: "2024-02", mileage: 27, cost: 95 },
{ date: "2024-03", mileage: 24, cost: 110 },
{ date: "2024-04", mileage: 28, cost: 90 },
{ date: "2024-05", mileage: 26, cost: 100 },
];
const viewProjectBtn = document.getElementById("view-project-btn");
const closeModal = document.getElementById("close-modal-btn");
const modal = document.getElementById("visualization-modal");
viewProjectBtn.addEventListener("click", () => {
modal.style.display = "flex";
renderChart();
});
closeModal.addEventListener("click", () => {
modal.style.display = "none";
d3.select("#chart").select("svg").remove(); // Remove chart when modal closes
});
// Close the modal when clicking outside the content
window.addEventListener("click", (event) => {
if (event.target === modal) {
modal.style.display = "none";
d3.select("#chart").select("svg").remove();
}
});
// Ensure chart size dynamically adjusts
window.addEventListener("resize", () => {
d3.select("#chart").select("svg").remove();
renderChart();
});
const renderChart = () => {
const margin = { top: 20, right: 50, bottom: 50, left: 70 };
const width = 600 - margin.left - margin.right;
const height = 400 - margin.top - margin.bottom;
const svg = d3.select("#chart")
.append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
.append("g")
.attr("transform", `translate(${margin.left},${margin.top})`);
const x = d3.scaleTime()
.domain(d3.extent(data, d => new Date(d.date)))
.range([0, width]);
const yMileage = d3.scaleLinear()
.domain([20, d3.max(data, d => d.mileage) * 1.1])
.range([height, 0]);
const yCost = d3.scaleLinear()
.domain([80, d3.max(data, d => d.cost) * 1.1])
.range([height, 0]);
const color = d3.scaleSequential(d3.interpolateBlues)
.domain([20, d3.max(data, d => d.cost)]);
const lineMileage = d3.line()
.x(d => x(new Date(d.date)))
.y(d => yMileage(d.mileage));
const lineCost = d3.line()
.x(d => x(new Date(d.date)))
.y(d => yCost(d.cost));
svg.append("g")
.attr("transform", `translate(0,${height})`)
.call(d3.axisBottom(x)
.tickFormat(d3.timeFormat("%b %Y"))
.ticks(width / 100)
);
// New Y-axis
// Y-axis (Left - Cost)
svg.append("g")
.call(d3.axisLeft(yCost))
.append("text")
.attr("transform", "rotate(-90)")
.attr("y", -50)
.attr("x", -height / 2)
.attr("text-anchor", "middle")
.attr("fill", "black")
.text("$ Spent On Fuel");
// Y-axis (Right - Mileage)
svg.append("g")
.attr("transform", `translate(${width},0)`)
.call(d3.axisRight(yMileage))
.append("text")
.attr("transform", "rotate(-90)")
.attr("y", 50)
.attr("x", -height / 2)
.attr("text-anchor", "middle")
.attr("fill", "black")
.text("Miles Driven");
const updateGraph = (filteredData) => {
svg.selectAll(".line").remove();
svg.selectAll(".circle").remove();
// Mileage Line
svg.append("path")
.datum(filteredData)
.attr("class", "line")
.attr("fill", "none")
.attr("stroke", "steelblue")
.attr("stroke-width", 2)
.attr("d", lineMileage)
.style("opacity", 0)
.transition()
.duration(1000)
.style("opacity", 1);
// Cost Line
svg.append("path")
.datum(filteredData)
.attr("class", "line")
.attr("fill", "none")
.attr("stroke", "red")
.attr("stroke-width", 2)
.attr("d", lineCost)
.style("opacity", 0)
.transition()
.duration(1000)
.style("opacity", 1);
// Points
svg.selectAll(".circle")
.data(filteredData)
.join("circle")
.attr("class", "circle")
.attr("cx", d => x(new Date(d.date)))
.attr("cy", d => yMileage(d.mileage))
.attr("r", 5)
.attr("fill", d => color(d.cost))
.on("mouseover", (event, d) => {
d3.select("#tooltip")
.style("opacity", 1)
.style("left", `${event.pageX + 10}px`)
.style("top", `${event.pageY}px`)
.html(`Date: ${d.date}<br>Mileage: ${d.mileage} mpg<br>Cost: $${d.cost}`);
})
.on("mouseout", () => {
d3.select("#tooltip").style("opacity", 0);
});
};
const handleSliderChange = (value) => {
const filteredData = data.slice(0, +value + 1);
updateGraph(filteredData);
};
document.getElementById("date-range").addEventListener("input", (e) => {
handleSliderChange(e.target.value);
});
updateGraph(data);
};
</script>
<script>
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/service-worker.js").then(registration => {
console.log("Service Worker registered with scope:", registration.scope);
}).catch(error => {
console.error("Service Worker registration failed:", error);
});
}
</script>
</body>
</html>