Skip to content

Commit 36518ba

Browse files
authored
chore(website): drop unused estimate-score API + speed up demo animation (#171)
Co-authored-by: Aiden Bai <aidenybai@users.noreply.github.com>
1 parent 97cb1bb commit 36518ba

2 files changed

Lines changed: 8 additions & 145 deletions

File tree

packages/website/src/app/api/estimate-score/route.ts

Lines changed: 0 additions & 137 deletions
This file was deleted.

packages/website/src/components/terminal.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ import { useEffect, useState, useCallback } from "react";
44
import { Copy, Check, ChevronRight, RotateCcw } from "lucide-react";
55

66
const COPIED_RESET_DELAY_MS = 2000;
7-
const INITIAL_DELAY_MS = 500;
8-
const TYPING_DELAY_MS = 50;
9-
const PROJECT_SCAN_DELAY_MS = 800;
10-
const POST_HEADER_DELAY_MS = 600;
11-
const DIAGNOSTIC_MIN_DELAY_MS = 150;
12-
const DIAGNOSTIC_MAX_DELAY_MS = 350;
13-
const SCORE_REVEAL_DELAY_MS = 600;
7+
const INITIAL_DELAY_MS = 250;
8+
const TYPING_DELAY_MS = 25;
9+
const PROJECT_SCAN_DELAY_MS = 350;
10+
const POST_HEADER_DELAY_MS = 250;
11+
const DIAGNOSTIC_MIN_DELAY_MS = 60;
12+
const DIAGNOSTIC_MAX_DELAY_MS = 140;
13+
const SCORE_REVEAL_DELAY_MS = 250;
1414
const SCORE_FRAME_COUNT = 20;
1515
const SCORE_FRAME_DELAY_MS = 30;
16-
const POST_SCORE_DELAY_MS = 700;
16+
const POST_SCORE_DELAY_MS = 300;
1717
const TARGET_SCORE = 42;
1818
const PERFECT_SCORE = 100;
1919
const SCORE_BAR_WIDTH_MOBILE = 15;

0 commit comments

Comments
 (0)