Skip to content

Commit

Permalink
lotso styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Jun 17, 2024
1 parent a496104 commit d65b91b
Show file tree
Hide file tree
Showing 13 changed files with 269 additions and 147 deletions.
4 changes: 4 additions & 0 deletions content/training/building/_index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
+++
title = "Building and Deploying"


[extra]
pos = [300, 400]
+++
3 changes: 3 additions & 0 deletions content/training/cameras/_index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
+++
title = "Cameras"

[extra]
pos = [0, 400]
+++
3 changes: 3 additions & 0 deletions content/training/project-config/_index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
+++
title = "Project Configuration"
sort_by = "weight"

[extra]
pos = [300, 50]
+++
3 changes: 3 additions & 0 deletions content/training/rust/_index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
+++
title = "Learning Rust"
sort_by = "weight"

[extra]
pos = [0, 0]
+++
20 changes: 20 additions & 0 deletions graph-ui/components/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React, { memo } from 'react';
import { Handle, Position } from 'reactflow';

function Page({ data }: any) {
return (
<a href={data.path}>
<div className="w-48 px-4 py-1 shadow-lg rounded-lg bg-gray-400 border-2 border-stone-400">
<div className="flex">
<div className="ml-2">
<div className="text-sm text-black">{data.label}</div>
</div>
</div>
<Handle type="target" position={Position.Top} className="w-16 bg-transparent border-0 pointer-events-auto cursor-auto" />
<Handle type="source" position={Position.Bottom} className="w-16 bg-transparent border-0 pointer-events-auto cursor-auto" />
</div>
</a>
);
}

export default memo(Page);
19 changes: 19 additions & 0 deletions graph-ui/components/section.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React, { memo } from 'react';
import { Handle, Position } from 'reactflow';

function Section({ data }: any) {
let height = (data.children + 1) * 50;
let height_class = `h-[${height}px]`;
let section_class = `w-60 ${height_class} px-4 py-1 shadow-lg rounded-lg bg-slate-800 border-4 border-stone-700`;
return (
<div className={section_class}>
<div className="flex">
<div className="ml-2">
<div className="text-md font-bold text-gray-300">{data.label}</div>
</div>
</div>
</div>
);
}

export default memo(Section);
252 changes: 122 additions & 130 deletions graph-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions graph-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.4",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.4",
"typescript": "^5"
}
}
}
6 changes: 6 additions & 0 deletions graph-ui/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import "@/styles/globals.css";
import type { AppProps } from "next/app";

export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
}
Loading

0 comments on commit d65b91b

Please sign in to comment.