Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates based on feedback #14

Merged
merged 27 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
3c5a795
Add color transitions between slides
devin-ai-integration[bot] Dec 13, 2024
50f45e9
Add color transitions for slides 3-6
devin-ai-integration[bot] Dec 13, 2024
ec078de
Add color transitions for slide 7
devin-ai-integration[bot] Dec 13, 2024
31e9927
Add color transitions for slide 8
devin-ai-integration[bot] Dec 13, 2024
7d101d5
Add color transitions for slide 9
devin-ai-integration[bot] Dec 13, 2024
4ecc29a
Add color transitions for slide 10
devin-ai-integration[bot] Dec 13, 2024
e9b4482
Add color transitions for slide 11
devin-ai-integration[bot] Dec 13, 2024
94509a7
Add color transitions for slide 12
devin-ai-integration[bot] Dec 13, 2024
1e4d1d1
Add color transitions for slide 13
devin-ai-integration[bot] Dec 13, 2024
bcf4871
Add color transitions for slide 14
devin-ai-integration[bot] Dec 13, 2024
77000e4
Add color transitions for slide 15
devin-ai-integration[bot] Dec 13, 2024
16c7c3b
Add color transitions for slide 16
devin-ai-integration[bot] Dec 13, 2024
3d7f02e
Add color transitions for slide 18
devin-ai-integration[bot] Dec 13, 2024
e0c7089
Remove static color properties from slides and use random color gener…
devin-ai-integration[bot] Dec 13, 2024
41d3ba2
Refactor color generation in SlideDeck component for cleaner variable…
devin-ai-integration[bot] Dec 13, 2024
4ea6873
Merge branch 'main' into devin/1734057449-add-slide-color-transitions
slavingia Dec 16, 2024
ee488cd
cp
slavingia Dec 30, 2024
d51b0ed
Merge branch 'main' into devin/1734057449-add-slide-color-transitions
slavingia Dec 30, 2024
0bd11bc
cp
slavingia Dec 30, 2024
d84fc62
cp
slavingia Dec 30, 2024
3ddb0cd
cp
slavingia Dec 30, 2024
9138998
cp
slavingia Dec 30, 2024
45a053a
style: auto-fix code formatting and linting issues
slavingia Dec 30, 2024
fff5bbd
cp
slavingia Dec 30, 2024
f3bad91
cp
slavingia Dec 30, 2024
d77956c
cp
slavingia Dec 30, 2024
9375626
style: auto-fix code formatting and linting issues
slavingia Dec 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"extends": ["next/core-web-vitals", "next/typescript"]
"extends": ["next/core-web-vitals", "prettier"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error"
}
}
40 changes: 40 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Auto Fix Code Issues

on:
pull_request:
types: [opened, synchronize]

jobs:
autofix:
name: Auto-fix Code Issues
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Run Prettier
run: npx prettier --write .

- name: Run ESLint fix
run: npx eslint . --fix --ext .js,.jsx,.ts,.tsx

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: auto-fix code formatting and linting issues"
branch: ${{ github.head_ref }}
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"plugins": ["prettier-plugin-tailwindcss"]
}
100 changes: 50 additions & 50 deletions app/2024/q4/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function QuarterlyAllHands() {
{
backgroundColor: "bg-black",
content: (
<div className="text-center space-y-6">
<div className="space-y-6 text-center">
<div className="flex items-center justify-center gap-2">
<div>
<Link href="/">
Expand All @@ -97,14 +97,14 @@ export default function QuarterlyAllHands() {
{
backgroundColor: "bg-white",
content: (
<div className="text-center space-y-6">
<div className="space-y-6 text-center">
<div className="flex items-center justify-center gap-2">
<div className="flex gap-[2px]">
<Logo size={50} color="black" background="transparent" />
</div>
<span className="text-5xl font-bold">Anti-Work</span>
</div>
<h2 className="text-2xl text-gray-500 dark:text-gray-400 font-normal">
<h2 className="text-2xl font-normal text-gray-500 dark:text-gray-400">
Transforming Work and Compensation
</h2>
</div>
Expand All @@ -113,8 +113,8 @@ export default function QuarterlyAllHands() {
{
backgroundColor: "bg-white",
content: (
<main className="prose mx-auto p-4 sm:p-8 flex-1 w-full max-w-3xl relative z-10">
<label className="block mt-8 mb-8">
<main className="prose relative z-10 mx-auto w-full max-w-3xl flex-1 p-4 sm:p-8">
<label className="mb-8 mt-8 block">
Jan 7, 2021 by{" "}
<a href="https://sahillavingia.com/work">
<u>Sahil Lavingia</u>
Expand Down Expand Up @@ -177,8 +177,8 @@ export default function QuarterlyAllHands() {
{
backgroundColor: "bg-white",
content: (
<main className="prose mx-auto p-4 sm:p-8 flex-1 w-full max-w-3xl relative z-10">
<label className="block mt-8 mb-8">
<main className="prose relative z-10 mx-auto w-full max-w-3xl flex-1 p-4 sm:p-8">
<label className="mb-8 mt-8 block">
October 17, 2024 by{" "}
<a href="https://sahillavingia.com/god">
<u>Sahil Lavingia</u>
Expand Down Expand Up @@ -244,10 +244,10 @@ export default function QuarterlyAllHands() {
{
backgroundColor: "bg-gray-50",
content: (
<div className="w-full h-full flex flex-col items-center justify-center p-20">
<div className="grid grid-cols-2 gap-40 w-full max-w-7xl">
<div className="flex h-full w-full flex-col items-center justify-center p-20">
<div className="grid w-full max-w-7xl grid-cols-2 gap-40">
<div className="flex flex-col items-center">
<h1 className="text-4xl font-bold text-gray-800 mb-12">
<h1 className="mb-12 text-4xl font-bold text-gray-800">
What was destructed
</h1>
<div className="prose">
Expand All @@ -270,7 +270,7 @@ export default function QuarterlyAllHands() {
</div>

<div className="flex flex-col items-center">
<h1 className="text-4xl font-bold text-gray-800 mb-12">TBD</h1>
<h1 className="mb-12 text-4xl font-bold text-gray-800">TBD</h1>
<div className="prose">
<ul>
<li>Swift, Kotlin → React Native/Expo/Electron</li>
Expand All @@ -286,9 +286,9 @@ export default function QuarterlyAllHands() {
{
backgroundColor: "bg-gray-50",
content: (
<div className="w-full h-full flex items-center justify-center">
<div className="flex h-full w-full items-center justify-center">
<div className="w-1/2 p-20">
<h1 className="text-4xl font-bold text-gray-800 mb-12">
<h1 className="mb-12 text-4xl font-bold text-gray-800">
Welcome to New York
</h1>
<div className="prose">
Expand All @@ -302,13 +302,13 @@ export default function QuarterlyAllHands() {
</ul>
</div>
</div>
<div className="w-1/2 relative h-full group">
<div className="group relative h-full w-1/2">
<Image
src="/2024/q4/whiteboard.png"
alt="Whiteboard"
fill
priority
className="object-cover group-hover:object-contain group-hover:p-8 transition-all duration-200"
className="object-cover transition-all duration-200 group-hover:object-contain group-hover:p-8"
/>
</div>
</div>
Expand All @@ -317,10 +317,10 @@ export default function QuarterlyAllHands() {
{
backgroundColor: "bg-gray-50",
content: (
<div className="w-full h-full flex items-center justify-center">
<div className="flex gap-8 w-full max-w-7xl mx-auto px-8">
<div className="flex-1 bg-white rounded-lg shadow-sm p-8 border border-gray-200 flex flex-col transition-all duration-300 hover:flex-[2] group">
<div className="h-12 flex items-center mb-6">
<div className="flex h-full w-full items-center justify-center">
<div className="mx-auto flex w-full max-w-7xl gap-8 px-8">
<div className="group flex flex-1 flex-col rounded-lg border border-gray-200 bg-white p-8 shadow-sm transition-all duration-300 hover:flex-[2]">
<div className="mb-6 flex h-12 items-center">
<Image
src="/2024/q4/Gumroad.svg"
alt="Gumroad"
Expand All @@ -336,8 +336,8 @@ export default function QuarterlyAllHands() {
</ul>
</div>

<div className="flex-1 bg-white rounded-lg shadow-sm p-8 border border-gray-200 flex flex-col transition-all duration-300 hover:flex-[2] group">
<div className="h-12 flex items-center mb-6">
<div className="group flex flex-1 flex-col rounded-lg border border-gray-200 bg-white p-8 shadow-sm transition-all duration-300 hover:flex-[2]">
<div className="mb-6 flex h-12 items-center">
<Image
src="/2024/q4/Flexile.svg"
alt="Flexile"
Expand All @@ -353,8 +353,8 @@ export default function QuarterlyAllHands() {
</ul>
</div>

<div className="flex-1 bg-white rounded-lg shadow-sm p-8 border border-gray-200 flex flex-col transition-all duration-300 hover:flex-[2] group">
<div className="h-12 flex items-center mb-6">
<div className="group flex flex-1 flex-col rounded-lg border border-gray-200 bg-white p-8 shadow-sm transition-all duration-300 hover:flex-[2]">
<div className="mb-6 flex h-12 items-center">
<Image
src="/2024/q4/Helper.svg"
alt="Helper"
Expand All @@ -369,8 +369,8 @@ export default function QuarterlyAllHands() {
</ul>
</div>

<div className="flex-1 bg-white rounded-lg shadow-sm p-8 border border-gray-200 flex flex-col transition-all duration-300 hover:flex-[2] group">
<div className="h-12 flex items-center mb-6">
<div className="group flex flex-1 flex-col rounded-lg border border-gray-200 bg-white p-8 shadow-sm transition-all duration-300 hover:flex-[2]">
<div className="mb-6 flex h-12 items-center">
<Image
src="/2024/q4/iffy.svg"
alt="Iffy"
Expand All @@ -385,11 +385,11 @@ export default function QuarterlyAllHands() {
</ul>
</div>

<div className="flex-1 bg-white rounded-lg shadow-sm p-8 border border-gray-200 flex flex-col transition-all duration-300 hover:flex-[2] group">
<div className="h-12 flex items-center mb-6">
<div className="group flex flex-1 flex-col rounded-lg border border-gray-200 bg-white p-8 shadow-sm transition-all duration-300 hover:flex-[2]">
<div className="mb-6 flex h-12 items-center">
<h2 className="text-xl font-bold">
<span className="ml-2 font-semibold text-gray-900 flex items-center">
<span className="text-2xl transform scale-y-75">S</span>
<span className="ml-2 flex items-center font-semibold text-gray-900">
<span className="scale-y-75 transform text-2xl">S</span>
<span className="text-xl">hortest</span>
</span>
</h2>
Expand All @@ -408,10 +408,10 @@ export default function QuarterlyAllHands() {
{
backgroundColor: "bg-white",
content: (
<div className="w-full h-full flex">
<div className="w-1/2 p-20 flex flex-col justify-center">
<div className="flex h-full w-full">
<div className="flex w-1/2 flex-col justify-center p-20">
<div className="prose">
<h1 className="text-4xl font-bold text-gray-900 mb-12">
<h1 className="mb-12 text-4xl font-bold text-gray-900">
AI, AI, AI
</h1>
<ul>
Expand All @@ -427,7 +427,7 @@ export default function QuarterlyAllHands() {
</ul>
</div>
</div>
<div className="w-1/2 relative">
<div className="relative w-1/2">
<Image
src="/2024/q4/ai.png"
alt="AI illustration"
Expand All @@ -442,17 +442,17 @@ export default function QuarterlyAllHands() {
{
backgroundColor: "bg-white",
content: (
<div className="w-full h-full flex items-center justify-center">
<div className="flex h-full w-full items-center justify-center">
<Tweet id="1750589558876705087" />
</div>
),
},
{
backgroundColor: "bg-white",
content: (
<div className="w-full h-full flex">
<div className="w-1/2 h-full flex flex-col justify-center p-8">
<h1 className="text-4xl font-bold text-gray-900 mb-8">
<div className="flex h-full w-full">
<div className="flex h-full w-1/2 flex-col justify-center p-8">
<h1 className="mb-8 text-4xl font-bold text-gray-900">
Retirement via Profit-sharing
</h1>

Expand All @@ -463,8 +463,8 @@ export default function QuarterlyAllHands() {
</p>
</div>

<div className="w-full max-w-xl mb-8">
<div className="flex justify-between mb-2">
<div className="mb-8 w-full max-w-xl">
<div className="mb-2 flex justify-between">
<span>
Annual compensation: ${annualCompensation.toLocaleString()}
</span>
Expand All @@ -477,8 +477,8 @@ export default function QuarterlyAllHands() {
onValueChange={(value) => setAnnualCompensation(value[0])}
/>
</div>
<div className="w-full max-w-xl mb-8">
<div className="flex justify-between mb-2">
<div className="mb-8 w-full max-w-xl">
<div className="mb-2 flex justify-between">
<span>Equity split: {equitySplit}%</span>
</div>
<Slider
Expand All @@ -489,8 +489,8 @@ export default function QuarterlyAllHands() {
onValueChange={(value) => setEquitySplit(value[0])}
/>
</div>
<div className="w-full max-w-xl mb-8">
<div className="flex justify-between mb-2">
<div className="mb-8 w-full max-w-xl">
<div className="mb-2 flex justify-between">
<span>Yearly growth: {yearlyGrowth}%</span>
</div>
<Slider
Expand All @@ -503,7 +503,7 @@ export default function QuarterlyAllHands() {
</div>

<div className="overflow-x-auto">
<table className="text-sm border-collapse">
<table className="border-collapse text-sm">
<thead>
<tr className="bg-gray-100">
<th className="border border-gray-300 p-2">Year</th>
Expand Down Expand Up @@ -558,7 +558,7 @@ export default function QuarterlyAllHands() {
</table>
</div>
</div>
<div className="w-1/2 h-full flex items-center justify-center">
<div className="flex h-full w-1/2 items-center justify-center">
<ChartContainer
config={chartConfig}
className="min-h-[200px] w-full"
Expand Down Expand Up @@ -611,8 +611,8 @@ export default function QuarterlyAllHands() {
{
backgroundColor: "bg-gray-50",
content: (
<div className="w-full h-full flex flex-col items-center justify-center p-20">
<h1 className="text-4xl font-bold text-gray-900 mb-12">DIYPO</h1>
<div className="flex h-full w-full flex-col items-center justify-center p-20">
<h1 className="mb-12 text-4xl font-bold text-gray-900">DIYPO</h1>
<div className="prose">
<ul>
<li>
Expand All @@ -639,7 +639,7 @@ export default function QuarterlyAllHands() {
{
backgroundColor: "bg-gray-50",
content: (
<div className="w-full h-full flex items-center justify-center">
<div className="flex h-full w-full items-center justify-center">
<h1 className="text-6xl font-bold text-gray-900">Questions?</h1>
</div>
),
Expand Down Expand Up @@ -744,15 +744,15 @@ export default function QuarterlyAllHands() {
</Slide>
</div>
<div
className={`py-1 px-2 rounded fixed bottom-2 right-2 text-sm flex items-center gap-1 ${
className={`fixed bottom-2 right-2 flex items-center gap-1 rounded px-2 py-1 text-sm ${
typedNumber
? "bg-black text-white opacity-100"
: "bg-white text-black opacity-50"
}`}
>
{typedNumber ? (
<>
<Loader2 className="w-4 h-4 animate-spin" />
<Loader2 className="h-4 w-4 animate-spin" />
<span>Jumping to {typedNumber}</span>
</>
) : (
Expand Down
14 changes: 1 addition & 13 deletions app/2025/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,26 @@ import Slide1 from "./slides/1";
import Slide2 from "./slides/2";
import Slide4 from "./slides/4";
import Slide5 from "./slides/5";
import Slide6 from "./slides/6";
import Slide7 from "./slides/7";
import Slide8 from "./slides/8";
import Slide9 from "./slides/9";
import Slide10 from "./slides/10";
import Slide11 from "./slides/11";
import Slide12 from "./slides/12";
import Slide13 from "./slides/13";
import Slide14 from "./slides/14";
import Slide15 from "./slides/15";
import Slide16 from "./slides/16";
import Slide18 from "./slides/18";

export default function AnnualMeeting() {
const slides = [
<Slide1 key={1} />,
<Slide2 key={2} />,
<Slide4 key={4} />,
<Slide5 key={5} />,
<Slide6 key={6} />,
<Slide7 key={7} />,
<Slide9 key={9} />,
<Slide10 key={10} />,
<Slide11 key={11} />,
<Slide12 key={12} />,
<Slide13 key={13} />,
<Slide14 key={14} />,
<Slide15 key={15} />,
<Slide8 key={8} />,
<Slide16 key={16} />,
<Slide18 key={18} />,
];

return <SlideDeck slides={slides} backgroundColor="bg-gray-200" />;
return <SlideDeck slides={slides} />;
}
Loading