Skip to content

Commit

Permalink
Merge pull request #2 from thinc-org/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ebonian authored Oct 7, 2023
2 parents f00ecd3 + 394a8d2 commit d0b71bd
Show file tree
Hide file tree
Showing 46 changed files with 824 additions and 391 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@
"unused-imports/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
]
],
"import/no-extraneous-dependencies": "off" // mjs is only used by Astro for configuration, false positive
}
},
// Configuration for Astro
Expand Down
10 changes: 9 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"plugins": ["prettier-plugin-tailwindcss"]
"plugins": ["prettier-plugin-tailwindcss", "prettier-plugin-astro"],
"overrides": [
{
"files": "*.astro",
"options": {
"parser": "astro"
}
}
]
}
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "thinc-roadmap",
"name": "thinc-knowledge",
"type": "module",
"scripts": {
"dev": "astro dev",
Expand All @@ -18,8 +18,10 @@
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"astro": "^3.2.2",
"get-src": "^1.0.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"rss-parser": "^3.13.0",
"tailwind-merge": "^1.14.0",
"tailwindcss": "^3.0.24"
},
Expand All @@ -37,6 +39,7 @@
"eslint-plugin-unused-imports": "^3.0.0",
"prettier": "^3.0.3",
"prettier-plugin-astro": "^0.12.0",
"prettier-plugin-tailwindcss": "^0.5.5"
"prettier-plugin-tailwindcss": "^0.5.5",
"react-icons": "^4.11.0"
}
}
47 changes: 46 additions & 1 deletion pnpm-lock.yaml

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

Binary file removed public/blog-placeholder-1.jpg
Binary file not shown.
Binary file removed public/blog-placeholder-2.jpg
Binary file not shown.
Binary file removed public/blog-placeholder-3.jpg
Binary file not shown.
Binary file removed public/blog-placeholder-4.jpg
Binary file not shown.
Binary file removed public/blog-placeholder-5.jpg
Binary file not shown.
Binary file removed public/blog-placeholder-about.jpg
Binary file not shown.
24 changes: 16 additions & 8 deletions public/favicon.svg
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/images/2023-background.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/images/404.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions public/images/thinc-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 11 additions & 5 deletions src/components/Section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,21 @@ import { twMerge } from 'tailwind-merge';
export const Section = ({
children,
className,
prose,
}: {
children: React.ReactNode;
className: string;
className?: string;
prose?: boolean;
}) => {
return (
<section
className={twMerge('flex w-full justify-center px-5', className)}
>
<div className="h-full w-full max-w-screen-lg py-8">{children}</div>
<section className={twMerge('flex w-full justify-center', className)}>
<div
className={`h-full w-full p-8 ${
prose ? 'max-w-prose' : 'max-w-screen-lg'
}`}
>
{children}
</div>
</section>
);
};
23 changes: 23 additions & 0 deletions src/components/blog/BlogCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export const BlogCard = ({
title,
link,
imgSrc,
}: {
title: string;
link: string;
imgSrc: string;
}) => {
return (
<a
href={link}
target="_blank"
rel="noopener noreferrer"
className="space-y-4 rounded-lg border bg-white p-4"
>
<div className="grid h-36 w-full place-content-center overflow-hidden rounded-md">
<img src={imgSrc} className="scale-110" />
</div>
<h4 className="text-lg font-semibold text-slate-700">{title}</h4>
</a>
);
};
23 changes: 23 additions & 0 deletions src/components/roadmap/LevelTag.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export const LevelTag = ({ level }: { level: string }) => {
const colorSchema = {
beginner: '#4ade80',
intermediate: '#fbbf24',
advanced: '#ef4444',
};

const color = colorSchema as Record<string, string>;

return (
<div className="flex">
<div
className="rounded-full px-2 py-1 text-xs font-semibold uppercase"
style={{
color: color[level],
backgroundColor: `${color[level]}15`,
}}
>
{level}
</div>
</div>
);
};
40 changes: 40 additions & 0 deletions src/components/roadmap/RoadmapCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { twMerge } from 'tailwind-merge';

import { LevelTag } from './LevelTag';

export const RoadmapCard = ({
className,
slug,
level,
title,
description,
}: {
className?: string;
slug: string;
level: string;
title: string;
description: string;
}) => {
return (
<div
className={twMerge(
'flex w-full rounded-lg border-2 bg-slate-50',
className,
)}
>
<a
href={`/roadmap/${slug}`}
className="flex h-full w-full items-center px-10 py-8 text-center"
>
<div className="text-left">
<LevelTag level={level} />

<h3 className="mt-1 text-2xl font-semibold text-slate-800">
{title}
</h3>
<p className="text-slate-600">{description}</p>
</div>
</a>
</div>
);
};
4 changes: 2 additions & 2 deletions src/consts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Place any global data in this file.
// You can import this data from anywhere in your site by using the `import` keyword.

export const SITE_TITLE = 'Thinc Roadmap';
export const SITE_DESCRIPTION = 'Thinc First Act Roadmap';
export const SITE_TITLE = 'Thinc Knowledgee';
export const SITE_DESCRIPTION = 'Thinc Knowledge';
16 changes: 0 additions & 16 deletions src/content/blog/first-post.md

This file was deleted.

Loading

0 comments on commit d0b71bd

Please sign in to comment.