Skip to content

Commit

Permalink
docs(landing): fix showcase preview button transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
aliemir committed Nov 8, 2023
1 parent 37e06ed commit 4046188
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
16 changes: 10 additions & 6 deletions documentation/src/refine-theme/landing-hero-showcase-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const LandingHeroShowcaseSection = ({}) => {
"p-2 landing-sm:p-4",
"relative",
"group/showcase",
"landing-lg:overflow-hidden",
)}
>
<div className={clsx("flex", "w-full", "gap-2")}>
Expand Down Expand Up @@ -184,9 +185,9 @@ export const LandingHeroShowcaseSection = ({}) => {
"hidden",
"landing-lg:block",
"landing-lg:opacity-0",
"landing-lg:translate-y-8",
"landing-lg:translate-y-24",
"landing-lg:group-hover/showcase:opacity-100 landing-lg:group-hover/showcase:translate-y-0",
"duration-150",
"duration-300",
"ease-in-out",
"transition-[opacity,transform,background-color,color]",
"absolute",
Expand All @@ -196,12 +197,10 @@ export const LandingHeroShowcaseSection = ({}) => {
"w-full",
"h-24",
"opacity-0",
"translate-y-16",
activeApp.dark &&
"bg-[linear-gradient(0deg,_#14141F_30%,_transparent_90%,_transparent_100%)]",
!activeApp.dark &&
"bg-[linear-gradient(0deg,_#FFFFFF_30%,_transparent_90%,_transparent_100%)]",
"animate-showcase-bottom-fade-reveal",
"rounded-bl-lg rounded-br-lg",
"landing-md:rounded-bl-xl landing-md:rounded-br-xl",
"landing-lg:rounded-bl-2xl landing-lg:rounded-br-2xl",
Expand All @@ -225,8 +224,9 @@ export const LandingHeroShowcaseSection = ({}) => {
"landing-lg:translate-y-8",
"landing-lg:group-hover/showcase:opacity-100 landing-lg:group-hover/showcase:translate-y-0",
"duration-150",
"delay-75",
"ease-in-out",
"transition-[opacity,transform,background-color,color]",
"transition-all",
"landing-lg:mt-[-110px]",
"hover:no-underline",
"z-[3]",
Expand All @@ -246,7 +246,10 @@ export const LandingHeroShowcaseSection = ({}) => {
"landing-lg:hover:scale-105 landing-lg:hover:brightness-100",
"hover:text-refine-blue dark:hover:text-refine-cyan-alt",
"landing-lg:hover:text-gray-0 dark:landing-lg:hover:text-gray-900",
"duration-150 transition-transform ease-in-out",
"landing-lg:border-8 landing-lg:border-solid",
activeApp.dark
? "landing-lg:border-gray-900"
: "landing-lg:border-gray-0",
)}
>
<span
Expand Down Expand Up @@ -574,6 +577,7 @@ const ShowcaseDevOps = ({ className }: { className?: string }) => {
return (
<ShowcaseWrapper
className={className}
dark
render="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/showcase-images/devops/base_render.png"
highlights={[
{
Expand Down
6 changes: 3 additions & 3 deletions documentation/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,11 +428,11 @@ module.exports = {
"landing-hero-beam-bottom":
"landing-hero-beam-bottom 7.5s ease-in-out infinite",
"showcase-bottom-fade-reveal":
"showcase-bottom-fade-reveal 1s ease-in-out forwards",
"showcase-bottom-fade-reveal 0.3s ease-in-out forwards",
"opacity-reveal": "opacity-reveal 1s ease-in-out forwards",
"wheel-already-invented-reveal":
"wheel-already-invented-reveal 0.6s cubic-bezier(.23,.95,.64,1.24) forwards",
"showcase-reveal": "showcase-reveal 0.3s ease-in-out forwards",
"showcase-reveal": "showcase-reveal 0.2s ease-in-out forwards",
},
keyframes: {
"code-scroll": {
Expand Down Expand Up @@ -621,7 +621,7 @@ module.exports = {
"showcase-bottom-fade-reveal": {
"0%": {
opacity: 0,
transform: "translateY(64px)",
transform: "translateY(96px)",
},
"100%": {
opacity: 1,
Expand Down

0 comments on commit 4046188

Please sign in to comment.