Skip to content

Commit

Permalink
Merge pull request #2 from martincham/origin
Browse files Browse the repository at this point in the history
all updates
  • Loading branch information
martincham authored Oct 11, 2024
2 parents 6de4dde + 7c50913 commit 04f9bc1
Show file tree
Hide file tree
Showing 92 changed files with 1,917 additions and 249 deletions.
1,297 changes: 1,281 additions & 16 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"name": "portfolio",
"name": "martincham.github.io",
"private": true,
"version": "0.0.0",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
"preview": "vite preview",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
},
"dependencies": {
"@radix-ui/react-accordion": "^1.2.1",
Expand All @@ -22,7 +24,6 @@
"@radix-ui/react-switch": "^1.1.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.446.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.3.0",
Expand All @@ -39,9 +40,11 @@
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.20",
"depcheck": "^1.4.7",
"eslint": "^9.9.0",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"gh-pages": "^6.2.0",
"globals": "^15.9.0",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.13",
Expand Down
Binary file added public/HQPictures/Hubris/hubrisVideoSmallest.mov
Binary file not shown.
Binary file added public/HQPictures/Hubris/insideHubris.webp
Binary file not shown.
Binary file removed public/HQPictures/Lamination/WoodBothFull.webp
Binary file not shown.
Binary file removed public/HQPictures/Lamination/WoodSpiralFull.webp
Binary file not shown.
Binary file removed public/HQPictures/Lamination/woodDetail1.webp
Binary file not shown.
Binary file removed public/HQPictures/Lamination/woodDetail2.webp
Binary file not shown.
Binary file removed public/HQPictures/Levels/Levels1.webp
Binary file not shown.
Binary file removed public/HQPictures/Levels/Levels2.webp
Binary file not shown.
Binary file removed public/HQPictures/Levels/main.webp
Binary file not shown.
Binary file removed public/Pictures/Architectural/Form1.webp
Binary file not shown.
Binary file removed public/Pictures/Architectural/Form2.webp
Binary file not shown.
Binary file removed public/Pictures/Architectural/Form3.webp
Binary file not shown.
Binary file removed public/Pictures/ClayWall/ClayWall1.webp
Binary file not shown.
Binary file removed public/Pictures/ClayWall/ClayWall2.webp
Binary file not shown.
Binary file removed public/Pictures/Cubes/10.webp
Binary file not shown.
Binary file removed public/Pictures/Cubes/11.webp
Binary file not shown.
Binary file removed public/Pictures/Cubes/14.webp
Binary file not shown.
Binary file removed public/Pictures/Cubes/15.webp
Binary file not shown.
Binary file removed public/Pictures/Cubes/19.webp
Binary file not shown.
Binary file removed public/Pictures/Cubes/20.webp
Binary file not shown.
Binary file removed public/Pictures/Cubes/21.webp
Binary file not shown.
Binary file removed public/Pictures/Cubes/9.webp
Binary file not shown.
Binary file removed public/Pictures/Cubes/Cubes1.webp
Binary file not shown.
Binary file removed public/Pictures/Cubes/Cubes2.webp
Binary file not shown.
Binary file removed public/Pictures/Digital/5.webp
Binary file not shown.
Binary file removed public/Pictures/Digital/blackplanet.webp
Binary file not shown.
Binary file removed public/Pictures/Digital/moscrubs.webp
Binary file not shown.
Binary file removed public/Pictures/Digital/warypinkle.webp
Binary file not shown.
Binary file removed public/Pictures/Digital/whataremelon.webp
Binary file not shown.
Binary file removed public/Pictures/Digital/whiteasteroids.webp
Binary file not shown.
Binary file removed public/Pictures/Dump/biscuits.webp
Binary file not shown.
Binary file removed public/Pictures/Dump/cross.webp
Binary file not shown.
Binary file removed public/Pictures/Dump/drsuess.webp
Binary file not shown.
Binary file removed public/Pictures/Dump/pizza2.gif
Binary file not shown.
Binary file removed public/Pictures/Dump/staples.webp
Binary file not shown.
Binary file removed public/Pictures/Dump/whaleroom.webp
Binary file not shown.
Binary file removed public/Pictures/Lamination/WoodBothFull.webp
Binary file not shown.
Binary file removed public/Pictures/Lamination/WoodSpiralFull.webp
Binary file not shown.
Binary file removed public/Pictures/Lamination/woodDetail1.webp
Binary file not shown.
Binary file removed public/Pictures/Lamination/woodDetail2.webp
Binary file not shown.
Binary file removed public/Pictures/Levels/Levels1.webp
Binary file not shown.
Binary file removed public/Pictures/Levels/Levels2.webp
Binary file not shown.
Binary file removed public/Pictures/Levels/main.webp
Binary file not shown.
Binary file removed public/Pictures/PaperSculpture/detail1.webp
Binary file not shown.
Binary file removed public/Pictures/PaperSculpture/detail2.webp
Binary file not shown.
Binary file removed public/Pictures/PaperSculpture/largefront.webp
Binary file not shown.
Binary file removed public/Pictures/Sphere/sphere.webp
Binary file not shown.
Binary file removed public/Pictures/Teddy/Teddylow.webp
Binary file not shown.
Binary file removed public/Pictures/Teddy/Teddymed.webp
Binary file not shown.
Binary file removed public/Pictures/Thumbnails/digital1.webp
Binary file not shown.
Binary file removed public/Pictures/Thumbnails/digital2.webp
Binary file not shown.
Binary file removed public/Pictures/Thumbnails/sculpture1.webp
Binary file not shown.
Binary file removed public/Pictures/Thumbnails/sculpture2.webp
Binary file not shown.
Binary file removed public/Pictures/Thumbnails/wood1.webp
Binary file not shown.
Binary file removed public/Pictures/Thumbnails/wood2.webp
Binary file not shown.
Binary file removed public/Pictures/Tripainting/traingle1.webp
Binary file not shown.
Binary file removed public/Pictures/Tripainting/triangle2.webp
Binary file not shown.
Binary file removed public/Pictures/Tripainting/triangle3.webp
Binary file not shown.
Binary file removed public/Pictures/Tripainting/triangle4.webp
Binary file not shown.
Binary file added public/files/ChamberlinTeachingPortfolio.pdf
Binary file not shown.
Binary file added public/files/KDIC.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 public/files/MartinChamberlinResume.pdf
Binary file not shown.
19 changes: 15 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ import Nba from "@/pages/dev/NBA.tsx";
import HubrisDev from "@/pages/dev/HubrisDev.tsx";
import Websites from "@/pages/dev/Websites.tsx";

import ArtistStatment from "@/pages/about/ArtistStatement.tsx";
import AboutMe from "@/pages/about/AboutMe.tsx";
import Resume from "@/pages/about/Resume.tsx";
import Teaching from "@/pages/about/Teaching.tsx";

const App: React.FC = () => {
const [isOpen, setIsOpen] = useState(false);

Expand Down Expand Up @@ -80,7 +85,7 @@ const App: React.FC = () => {
<div className="flex z-30">
{/* Sidebar Menu */}
<div
className={`fixed md:relative md:translate-x-0 top-0 right-0 h-full w-64 transition-all duration-200 z-40 ${
className={`fixed md:relative md:translate-x-0 top-0 right-0 h-full w-64 dark:w-72 transition-all duration-200 z-40 ${
isOpen
? "translate-x-0 bg-gray-50 dark:bg-zinc-950 md:bg-transparent"
: "translate-x-full duration-0 opacity-0 md:opacity-100"
Expand All @@ -97,12 +102,18 @@ const App: React.FC = () => {
<Route path="/penance" element={<Penance />} />
<Route path="/ballforbouncing" element={<BallForBouncing />} />
<Route path="/tofu" element={<Tofu />} />
<Route path="/nba" element={<Nba />} />
<Route path="/hubrisdev" element={<HubrisDev />} />
<Route path="/websites" element={<Websites />} />
<Route path="/exitsign" element={<ExitSign />} />
<Route path="/ceilingtile" element={<CeilingTile />} />
<Route path="/ironingboard" element={<IroningBoard />} />

<Route path="/nba" element={<Nba />} />
<Route path="/websites" element={<Websites />} />
<Route path="/hubrisdev" element={<HubrisDev />} />

<Route path="/artist" element={<ArtistStatment />} />
<Route path="/about" element={<AboutMe />} />
<Route path="/resume" element={<Resume />} />
<Route path="/teaching" element={<Teaching />} />
</Routes>
</div>
</div>
Expand Down
8 changes: 6 additions & 2 deletions src/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ import React from "react";
const Home: React.FC = () => {
return (
<div className="container mx-auto p-6">
<section className="container mx-auto py-12">
<a>I'm a software developer and an artist.</a>
<section className="container mx-auto py-2">
<img
src="/HQPictures/Hubris/hubrisBlur.webp"
alt="Hubris"
className="w-full h-auto max-w-screen max-h-[800px] object-contain"
/>
</section>
</div>
);
Expand Down
191 changes: 84 additions & 107 deletions src/charts/NbaChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ import {
ChartLegend,
ChartLegendContent,
} from "@/components/ui/chart";
import {
Card,
CardHeader,
CardTitle,
CardContent,
CardFooter,
} from "@/components/ui/card";

const chartData = [
{
Expand Down Expand Up @@ -105,109 +98,93 @@ export const description = "A stacked bar chart with NBA player stats";

export function NbaChart() {
return (
<Card className="max-w-md p-2 transition duration-300 hover:shadow-lg">
<CardHeader>
<CardTitle>NBA Player Stats</CardTitle>
</CardHeader>
<CardContent>
<ChartContainer config={chartConfig} className="min-h-[200px] w-full">
<BarChart accessibilityLayer data={chartData}>
<CartesianGrid vertical={false} />
<XAxis
dataKey="name"
tickLine={false}
tickMargin={10}
axisLine={false}
/>
<ChartTooltip
content={
<ChartTooltipContent
indicator="line"
formatter={(value, name, item, index) => (
<>
<div
className="h-2.5 w-2.5 shrink-0 rounded-[2px] bg-[--color-bg]"
style={
{
"--color-bg": `var(--color-${name})`,
} as React.CSSProperties
}
/>
{chartConfig[name as keyof typeof chartConfig]?.label ||
name}
<ChartContainer config={chartConfig} className="min-h-[200px] w-full">
<BarChart accessibilityLayer data={chartData}>
<CartesianGrid vertical={false} />
<XAxis
dataKey="name"
tickLine={false}
tickMargin={10}
axisLine={false}
/>
<ChartTooltip
content={
<ChartTooltipContent
indicator="line"
formatter={(value, name, item, index) => (
<>
<div
className="h-2.5 w-2.5 shrink-0 rounded-[2px] bg-[--color-bg]"
style={
{
"--color-bg": `var(--color-${name})`,
} as React.CSSProperties
}
/>
{chartConfig[name as keyof typeof chartConfig]?.label || name}
<div className="ml-auto flex items-baseline gap-0.5 font-mono font-medium tabular-nums text-foreground">
{value}
</div>
{/* Add this after the last item */}
{index === 5 && (
<div className="mt-1.5 flex basis-full items-center border-t pt-1.5 text-xs font-medium text-foreground">
Total
<div className="ml-auto flex items-baseline gap-0.5 font-mono font-medium tabular-nums text-foreground">
{value}
{Math.floor(
(item.payload.points +
item.payload.rebounds +
item.payload.assists +
item.payload.steals +
item.payload.blocks +
item.payload.threes) /
6,
)}
</div>
{/* Add this after the last item */}
{index === 5 && (
<div className="mt-1.5 flex basis-full items-center border-t pt-1.5 text-xs font-medium text-foreground">
Total
<div className="ml-auto flex items-baseline gap-0.5 font-mono font-medium tabular-nums text-foreground">
{Math.floor(
(item.payload.points +
item.payload.rebounds +
item.payload.assists +
item.payload.steals +
item.payload.blocks +
item.payload.threes) /
6,
)}
</div>
</div>
)}
</>
</div>
)}
/>
}
/>
<ChartLegend content={<ChartLegendContent />} />
<Bar
dataKey="points"
fill="var(--color-points)"
stackId="a"
radius={[0, 0, 4, 4]}
/>
<Bar
dataKey="rebounds"
fill="var(--color-rebounds)"
stackId="a"
radius={[0, 0, 0, 0]}
/>
<Bar
dataKey="assists"
fill="var(--color-assists)"
stackId="a"
radius={[0, 0, 0, 0]}
/>
<Bar
dataKey="steals"
fill="var(--color-steals)"
stackId="a"
radius={[0, 0, 0, 0]}
/>
<Bar
dataKey="blocks"
fill="var(--color-blocks)"
stackId="a"
radius={[0, 0, 0, 0]}
/>
<Bar
dataKey="threes"
fill="var(--color-threes)"
stackId="a"
radius={[4, 4, 0, 0]}
</>
)}
/>
</BarChart>
</ChartContainer>
</CardContent>
<CardFooter className="flex-col items-start gap-2 text-sm">
<div className="flex gap-2 font-medium leading-none">
2024-25 Season Stats
</div>
<div className="leading-none text-muted-foreground">
Showing total visitors for the last 6 months
</div>
</CardFooter>
</Card>
}
/>
<ChartLegend content={<ChartLegendContent />} />
<Bar
dataKey="points"
fill="var(--color-points)"
stackId="a"
radius={[0, 0, 4, 4]}
/>
<Bar
dataKey="rebounds"
fill="var(--color-rebounds)"
stackId="a"
radius={[0, 0, 0, 0]}
/>
<Bar
dataKey="assists"
fill="var(--color-assists)"
stackId="a"
radius={[0, 0, 0, 0]}
/>
<Bar
dataKey="steals"
fill="var(--color-steals)"
stackId="a"
radius={[0, 0, 0, 0]}
/>
<Bar
dataKey="blocks"
fill="var(--color-blocks)"
stackId="a"
radius={[0, 0, 0, 0]}
/>
<Bar
dataKey="threes"
fill="var(--color-threes)"
stackId="a"
radius={[4, 4, 0, 0]}
/>
</BarChart>
</ChartContainer>
);
}
Loading

0 comments on commit 04f9bc1

Please sign in to comment.