Skip to content

Commit

Permalink
style: add secondary color & apply in feature section
Browse files Browse the repository at this point in the history
  • Loading branch information
nezz0746 committed Oct 16, 2024
1 parent 09f18ae commit 1f8e9c2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
18 changes: 9 additions & 9 deletions src/assets/illustrations/claim-chains-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Club/features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export function Features({ sections, marquee = { visible: false } }: FeaturesPro
}}
transition={{ type: 'spring', damping: 15 }}
key={index}
className={`feature ${index % 2 === 0 ? 'feature-primary' : ''}`}
className={`feature ${index % 2 === 0 ? 'feature-secondary' : ''}`}
>
{item}
</motion.div>
Expand Down
5 changes: 5 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@tailwind utilities;
:root {
--primary-color: #f681df;
--secondary-color: #b23386;
--background-color: #fbfdd8;
--accent-color: #6340df;
}
Expand Down Expand Up @@ -289,6 +290,10 @@ Firefox input[type='number'] {
@apply bg-primary text-white;
}

.feature-secondary {
@apply border-secondary bg-secondary text-white;
}

/* Form styling */
.input-text {
@apply h-12 w-full rounded-md border-2 border-n-1 bg-white px-3 font-medium outline-none ring-2 ring-white transition-colors focus:border-purple-1 dark:border-white dark:border-white dark:bg-n-1 dark:text-white dark:placeholder:text-white/75 dark:focus:border-purple-1;
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ module.exports = {
// background: '#FAF4F0',
red: '#FF0000',
black: '#000000',

primary: 'var(--primary-color)',
secondary: 'var(--secondary-color)',
background: 'var(--background-color)',
accent: 'var(--accent-color)',
},
Expand Down

0 comments on commit 1f8e9c2

Please sign in to comment.