Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

feat: improved gh star animation + fix icon size (#147)

Vlad Sazonauf0f5a013bb8f
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 9e891ff..9c04177 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -8,7 +8,7 @@ jobs:
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
name: Run e2e tests via ${{ github.event_name == 'deployment_status' && 'Vercel deployment' }}
- timeout-minutes: 15
+ timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- run: |
@@ -49,12 +49,12 @@ jobs:
BASE_URL: ${{ github.event_name == 'deployment_status' && github.event.deployment_status.environment_url }}
SENTRY_ENABLED: false
NEXT_PUBLIC_SENTRY_ENABLED: false
- continue-on-error: true
+ continue-on-error: true
# calculate duration of the job and runs playwright test
run: |
start_time=$(date +%s)
- pnpm exec playwright test --reporter=list
+ pnpm exec playwright test --reporter=html,list
end_time=$(date +%s)
duration=$((end_time - start_time))
diff --git a/src/components/github-star-cta.tsx b/src/components/github-star-cta.tsx
index 9ed2ed2..314e9ca 100644
--- a/src/components/github-star-cta.tsx
+++ b/src/components/github-star-cta.tsx
@@ -40,36 +40,15 @@ export function GitHubStarCTA({
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-1.5 px-3 py-2"
- style={{
- animation: "pulse-scale 8s infinite",
- }}
>
{githubStarsCount > 0 ? (
<div className="flex items-center gap-1">
- <Star className="size-4 fill-yellow-400 text-yellow-500 transition-all duration-300 ease-in-out group-hover:scale-110 group-hover:fill-yellow-300 group-hover:text-yellow-600 group-hover:drop-shadow-sm" />
+ <Star className="size-4 animate-star-hover fill-yellow-400 text-yellow-500" />
<CountUpNumber number={githubStarsCount} />
</div>
) : (
<GithubIcon className="size-4 transition-all duration-300 ease-in-out" />
)}
- <style jsx>{`
- @keyframes pulse-scale {
- 0%,
- 80%,
- 100% {
- transform: scale(1);
- }
- 85% {
- transform: scale(1.05);
- }
- 90% {
- transform: scale(1);
- }
- 95% {
- transform: scale(1.05);
- }
- }
- `}</style>
</Link>
</Button>
</TooltipTrigger>
diff --git a/src/components/go-to-app-button-cta.tsx b/src/components/go-to-app-button-cta.tsx
index 390b2ba..910fb1e 100644
--- a/src/components/go-to-app-button-cta.tsx
+++ b/src/components/go-to-app-button-cta.tsx
@@ -21,7 +21,7 @@ export function GoToAppButton({
asChild
>
<Link href="/?template=default" scroll={false}>
- <ArrowRight className="mr-2 h-5 w-5 transition-transform group-hover:scale-110" />
+ <ArrowRight className="mr-2 size-6 transition-transform group-hover:scale-110" />
{children}
</Link>
</Button>
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 5c366a1..e1b7525 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -63,12 +63,28 @@ const config: Config = {
transform: "translateX(4px)",
},
},
+ "star-hover": {
+ "0%, 100%": {
+ transform: "scale(1)",
+ fill: "rgb(250 204 21)", // fill-yellow-400
+ color: "rgb(234 179 8)", // text-yellow-500
+ filter: "none",
+ },
+ "50%": {
+ transform: "scale(1.1)",
+ fill: "rgb(255 215 0)", // gold
+ color: "rgb(255 165 0)", // orange-gold
+ filter:
+ "drop-shadow(0 2px 4px rgb(255 215 0 / 0.3)) drop-shadow(0 1px 2px rgb(255 165 0 / 0.2)) brightness(1.1)",
+ },
+ },
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
heartbeat: "heartbeat 3s ease-in-out infinite 5s", // 3s = duration of animation, infinite = repeat forever, 25s = delay before starting animation,
"pulse-arrow": "pulse-arrow 5s infinite",
+ "star-hover": "star-hover 2s ease-in-out infinite 6s",
},
},
},