Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 10 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
},
"dependencies": {
"@probat/react": "^0.4.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
19 changes: 16 additions & 3 deletions src/components/GetStartedButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react'
import { Experiment } from '@probat/react'

interface GetStartedButtonProps {
label?: string
Expand All @@ -7,9 +8,21 @@ interface GetStartedButtonProps {

const GetStartedButton: React.FC<GetStartedButtonProps> = ({ label = 'Get Started Free', large = false }) => {
return (
<button className={`btn btn-primary${large ? ' btn-large' : ''}`}>
{label}
</button>
<Experiment
id="exp_GetStartedButton_20260315_7f8a9c2d"
control={
<button className={`btn btn-primary${large ? ' btn-large' : ''}`}>
{label}
</button>
}
variants={{
V2: (
<button className={`btn btn-primary-enhanced${large ? ' btn-large' : ''}`}>
{label}
</button>
)
}}
/>
)
}

Expand Down
21 changes: 21 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,27 @@ body {
box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary-enhanced {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
animation: subtlePulse 2s ease-in-out infinite;
}

.btn-primary-enhanced:hover {
transform: translateY(-4px);
box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
}

@keyframes subtlePulse {
0%, 100% {
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
50% {
box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
}
}

.btn-outline {
background: transparent;
color: #667eea;
Expand Down