diff --git a/components/buttons/basicButton.tsx b/components/buttons/basicButton.tsx index 7bbafc4..b03c0e6 100644 --- a/components/buttons/basicButton.tsx +++ b/components/buttons/basicButton.tsx @@ -1,32 +1,9 @@ -import colors from '../../styles/colors'; +import styles from './button.module.scss'; const BasicButton = ({ children, className }: BasicButtonProps) => { return ( <> - - + > ); }; diff --git a/components/buttons/button.module.scss b/components/buttons/button.module.scss new file mode 100644 index 0000000..b40a30f --- /dev/null +++ b/components/buttons/button.module.scss @@ -0,0 +1,69 @@ +@import "../../styles/colors"; + +.socialButton { + user-select: none; + cursor: pointer; + color: white; + font-size: 1.5rem; + border: none; + border-radius: 100%; + padding: 10px 0; + transition: background-color 0.3s cubic-bezier(0.4, 0, 1, 1); + max-height: 36px; + max-width: 36px; + display: flex; + justify-content: center; + align-items: center; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.telegram { + background-color: $blue-300; +} + +.facebook { + background-color: $blue-200; +} + +.discord { + background-color: $blue-100; +} + +.newsletter { + background-color: $gray-400; +} + +.socialButton:hover { + filter: brightness(1.2); +} + +@media only screen and (max-width: 600px) { + .socialButton { + max-height: 48px; + max-width: 48px; + } +} + +.basicButton { + user-select: none; + cursor: pointer; + color: white; + font-size: 1rem; + border: none; + border-radius: 64px; + background-color: var(--primary); + display: flex; + align-items: center; + justify-content: center; + padding: 6px 12px 6px 6px; + transition: all 0.3s; + width: 126px; + height: 36px; +} + +.basicButton:hover { + filter: brightness(1.2); + transform: scale(1.02); +} diff --git a/components/buttons/socialButton.tsx b/components/buttons/socialButton.tsx index 42462f2..31e258c 100644 --- a/components/buttons/socialButton.tsx +++ b/components/buttons/socialButton.tsx @@ -1,51 +1,9 @@ -import colors from '../../styles/colors'; +import styles from './button.module.scss'; const SocialButton = ({ children, className }: BasicButtonProps) => { return ( <> - - + > ); }; diff --git a/components/personCard/personCard.module.scss b/components/personCard/personCard.module.scss index dffb13e..b685717 100644 --- a/components/personCard/personCard.module.scss +++ b/components/personCard/personCard.module.scss @@ -1,4 +1,5 @@ @import "../../styles/media"; +@import "../../styles/colors"; .card { width: 100%; @@ -106,3 +107,11 @@ } } } + +.card_default_theme { + border-bottom-color: $red-200; +} + +.icon_default_theme { + color: $red-200; +} diff --git a/components/personCard/personCard.tsx b/components/personCard/personCard.tsx index 028e848..273d8f0 100644 --- a/components/personCard/personCard.tsx +++ b/components/personCard/personCard.tsx @@ -1,4 +1,5 @@ import { useMemo, useRef } from 'react'; +import classNames from 'classnames'; import { mdiFacebook, mdiGithub, @@ -11,7 +12,6 @@ import { import Icon from '@mdi/react'; import { IPerson } from '../../services/people'; import styles from './personCard.module.scss'; -import colors from '../../styles/colors'; import ShowMore from '../showMore/showMore'; import Label from '../label/label'; @@ -35,7 +35,6 @@ export function PersonCard({ person }: IPersonProps) { roles, customImage, } = person; - const theme = useMemo(() => themeColor ?? colors.secondary_color, [themeColor]); const icons = useMemo( () => [ { link: github, icon: mdiGithub }, @@ -54,7 +53,12 @@ export function PersonCard({ person }: IPersonProps) { const onToggleCard = () => card?.current?.classList.toggle(styles.card__open); return ( -