From 3d1519c38441d405188bdacb57d85f09ba7a849d Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 27 Dec 2021 12:18:35 -0400 Subject: chore(wpcarro/website): Archive dusty, old websites Change-Id: I07b6e70ec4026644733e58a2c5f2aa6696a038f3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4719 Reviewed-by: wpcarro Autosubmit: wpcarro Tested-by: BuildkiteCI --- users/wpcarro/website/goals/src/App.tsx | 132 -------------------------------- 1 file changed, 132 deletions(-) delete mode 100644 users/wpcarro/website/goals/src/App.tsx (limited to 'users/wpcarro/website/goals/src/App.tsx') diff --git a/users/wpcarro/website/goals/src/App.tsx b/users/wpcarro/website/goals/src/App.tsx deleted file mode 100644 index 53195d9af98f..000000000000 --- a/users/wpcarro/website/goals/src/App.tsx +++ /dev/null @@ -1,132 +0,0 @@ -import React from "react"; - -function ProgressBar(props: { - done: number; - total: number; - units: string; - color: string; -}) { - const { done, total, units, color } = props; - const width = Math.floor((done / total) * 100); - const rest = 100 - width; - - let [fg, bg] = [`bg-${color}-600`, `bg-${color}-100`]; - - if (color === "white") { - [fg, bg] = ["bg-gray-600", "bg-gray-100"]; - } - - return ( -
-
-

- {done} of {total} {units} -

-
- ); -} - -function Goal(props: { - subject: string; - goal: string; - done: number; - total: number; - units: string; - color: string; -}) { - const { subject, goal, done, total, units, color } = props; - const width = "6em"; - - const Tr = (props: { - label: string; - value: string; - valueComponent?: React.ReactElement; - }) => ( - - - {props.label} - - - {props.valueComponent ? props.valueComponent : props.value} - - - ); - - return ( - - - - - - } - /> - -
- ); -} - -function Copy(props: { children: React.ReactNode }) { - return

{props.children}

; -} - -function App() { - return ( -
-
-

Goals

- - For me, a goal is something that is difficult for me to complete but - easy for me to measure. I tend to add new goals as time progresses, - mistakenly assuming that I can support additional goals for free. To - counterbalance my tendancy to casually accumulate goals, I aim to only - have three goals; I will not add a new goal until I complete an - existing goal. I created and published this page to clarify that idea. - - - Here are my current goals and the progress I have made towards - achieving them. - -
-
- - - -
-
- ); -} - -export default App; -- cgit 1.4.1