diff --git a/src/components/Button.tsx b/src/components/Button.tsx index d9ce82e..6893f1f 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -5,7 +5,6 @@ import classnames, { backgroundColor, borderRadius, boxShadow, - boxShadowColor, display, flexDirection, fontFamily, @@ -33,14 +32,11 @@ const fontClasses = classnames( backgroundColor('bg-accent'), borderRadius('rounded-4xl'), boxShadow('shadow-button'), - boxShadowColor('shadow-accent'), padding('py-2', 'px-4'), fontWeight('font-bold'), fontFamily('font-primary'), fontSize('text-sm'), - textColor('text-primary-dark'), - translate('hover:-translate-y-0.5'), - willChange('will-change-transform') + textColor('text-primary-dark') ) const button = classnames(commonClasses, fontClasses) @@ -60,7 +56,8 @@ const getCharacterTransitionDelay = (index: number) => const charWrapper = classnames( transitionProperty('transition-letters'), - translate('group-hover:-translate-y-7') + translate('group-hover:-translate-y-7'), + willChange('will-change-transform') ) const renderLetters = (sentence: string) => { diff --git a/src/components/BwlLinks.tsx b/src/components/BwlLinks.tsx new file mode 100644 index 0000000..4a9db0e --- /dev/null +++ b/src/components/BwlLinks.tsx @@ -0,0 +1,12 @@ +import { LinkText } from 'components/Text' +import { bwlBlog, bwlGitHub, contactUs } from 'helpers/constants' + +export default function () { + return ( + <> + Blog + GitHub + Contact + + ) +} diff --git a/src/components/MainPage/BigWhaleLabs.tsx b/src/components/MainPage/BigWhaleLabs.tsx index 9a8d299..c609507 100644 --- a/src/components/MainPage/BigWhaleLabs.tsx +++ b/src/components/MainPage/BigWhaleLabs.tsx @@ -8,6 +8,7 @@ import classnames, { inset, justifyContent, margin, + padding, position, width, zIndex, @@ -18,7 +19,8 @@ const wrapper = classnames( height('h-full'), display('flex'), alignItems('items-center'), - justifyContent('justify-center') + justifyContent('justify-center'), + padding('px-6', 'md:px-0') ) const imageStyles = classNamesToString( position('relative'), @@ -30,8 +32,8 @@ const imageStyles = classNamesToString( ) const videoStyles = classnames( position('absolute'), - inset('right-2', 'top-8'), - width('w-60'), + inset('-right-2', 'top-4', 'md:right-2', 'md:top-8'), + width('w-40', 'sm:w-48', 'md:w-60'), borderRadius('rounded-full'), animation('animate-float') ) diff --git a/src/components/MainPage/InfoBlock.tsx b/src/components/MainPage/InfoBlock.tsx index 31b6a49..a289a1e 100644 --- a/src/components/MainPage/InfoBlock.tsx +++ b/src/components/MainPage/InfoBlock.tsx @@ -14,13 +14,13 @@ import classnames, { const wrapper = classnames( display('flex'), - flexDirection('flex-row'), + flexDirection('flex-col', 'lg:flex-row'), alignItems('items-center'), justifyContent('justify-center'), width('w-full'), - gap('gap-x-20'), - padding('py-4'), - margin('mb-16') + gap('gap-y-8', 'md:gap-x-20'), + padding('md:px-8'), + margin('md:mb-8', 'md:mb-16', 'mt-16', 'md:mt-8') ) export default function () { diff --git a/src/components/MainPage/MobileInfoBlock.tsx b/src/components/MainPage/MobileInfoBlock.tsx index 965d1c5..adcc6a2 100644 --- a/src/components/MainPage/MobileInfoBlock.tsx +++ b/src/components/MainPage/MobileInfoBlock.tsx @@ -1,3 +1,53 @@ +import { BodyText } from 'components/Text' +import BwlLinks from 'components/BwlLinks' +import QuoteBlock from 'components/QuoteBlock' +import classnames, { + alignItems, + display, + flexDirection, + gap, + justifyContent, + margin, + width, +} from 'classnames/tailwind' + +const hideOnBig = display('md:hidden') +const wrapper = classnames(hideOnBig, margin('mb-8')) +const crystal = classnames( + width('w-full'), + display('flex'), + alignItems('items-center'), + justifyContent('justify-center'), + margin('my-8'), + hideOnBig +) +const quoteWrapper = classnames( + display('flex'), + flexDirection('flex-col'), + gap('gap-y-4') +) +const links = classnames( + display('flex'), + flexDirection('flex-row'), + gap('gap-x-2') +) + export default function () { - return <> + return ( + <> +
+ +
+
+ +
+ Learn more or reach out +
+ +
+
+
+
+ + ) } diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 04accd7..3c02913 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -47,7 +47,7 @@ const navbarInternalContainer = classnames( alignItems('items-center'), justifyContent('justify-between'), zIndex('z-10'), - padding('py-8', 'lg:py-10', 'px-4', 'lg:px-16') + padding('p-6', 'lg:py-10', 'lg:px-16') ) const bgCover = (backgroundVisible?: boolean) => classnames( @@ -56,7 +56,7 @@ const bgCover = (backgroundVisible?: boolean) => inset('inset-0'), backgroundColor(backgroundVisible ? 'bg-navbar' : undefined), backdropBlur(backgroundVisible ? 'backdrop-blur-lg' : undefined), - height('h-88', 'md:h-auto'), + height('h-auto'), transitionProperty('transition-all'), transitionDuration('duration-500'), transitionTimingFunction('ease-in-out') diff --git a/src/components/NavbarLinks.tsx b/src/components/NavbarLinks.tsx index 6ebf574..520124f 100644 --- a/src/components/NavbarLinks.tsx +++ b/src/components/NavbarLinks.tsx @@ -1,5 +1,4 @@ -import { LinkText } from 'components/Text' -import { bwlBlog, bwlGitHub, contactUs } from 'helpers/constants' +import BwlLinks from 'components/BwlLinks' import classnames, { alignItems, display, @@ -21,9 +20,7 @@ const navLinkContainer = classnames( export default function () { return (
- Blog - GitHub - Contact +
) } diff --git a/src/components/QuoteBlock.tsx b/src/components/QuoteBlock.tsx index cfafb24..c37368b 100644 --- a/src/components/QuoteBlock.tsx +++ b/src/components/QuoteBlock.tsx @@ -7,6 +7,7 @@ import classnames, { flexDirection, gap, height, + padding, width, } from 'classnames/tailwind' @@ -15,7 +16,8 @@ const wrapper = (small?: boolean) => display('flex'), flexDirection('flex-row'), gap('gap-x-6'), - width(small ? 'w-1/3' : 'w-1/4'), + width(small ? 'lg:w-1/3' : 'lg:w-1/4'), + padding('px-8', 'md:px-0'), height('h-full'), alignItems('items-center') ) diff --git a/src/index.css b/src/index.css index 5254e2a..bc56776 100644 --- a/src/index.css +++ b/src/index.css @@ -90,3 +90,15 @@ circle { .no-text-shadow { text-shadow: none; } + +@media only screen and (max-width: 600px) { + html { + padding: 0.875rem; + } +} + +@media only screen and (max-width: 380px) { + html { + padding: 0; + } +} diff --git a/tailwind.config.js b/tailwind.config.js index d30a01f..a84d0c9 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -85,7 +85,8 @@ module.exports = { navbar: 'var(--navbar)', }, boxShadow: { - button: '0 0 2rem rgb(0 0 0 / 1)', + lg: '0 0 1rem 0 rgb(0 0 0 / 0.25)', + button: '0px 0px 2.25rem 0px rgba(191, 254, 143, 0.50)', }, borderRadius: { '4xl': '2.5rem',