lp: fix for gradient in the banner.

This commit is contained in:
Matija Sosic 2023-04-11 14:11:39 +02:00
parent 5cd773036f
commit 9d2fa72d34
3 changed files with 13 additions and 5 deletions

View File

@ -111,7 +111,7 @@ page MainPage {
</h1>
<p className='mt-4 sm:mt-5 text-xl lg:text-xl text-neutral-500'>
Rails-like open source framework for React, Node.js and Prisma. Build your app in a day and deploy it anywhere with a single command.
Rails-like open-source framework for React, Node.js and Prisma. Build your app in a day and deploy it anywhere with a single command.
</p>
</div> {/* EOF Hero title and subtitle */}

View File

@ -1,7 +1,10 @@
import React from 'react'
import classNames from 'classnames'
import { useHistory } from '@docusaurus/router'
import { ChevronRight, X } from 'react-feather'
import styles from '../../pages/styles.module.css'
const Announcement = () => {
let history = useHistory()
@ -15,14 +18,12 @@ const Announcement = () => {
return (
<div
onClick={handleLink}
className={`
className={classNames(styles.gradientBackground, `
overflow-hidden
cursor-pointer flex-row
space-x-3
text-white
bg-gradient-to-r from-fuchsia-600 to-[#ffcc00]
`}
`)}
>
<div
className={`

View File

@ -58,3 +58,10 @@
will-change: filter;
mix-blend-mode: normal;
}
/* NOTE(matija): for some reason I couldn't get tailwind gradient to work when docusaurus build,
* so I resorted to doing it manually.
*/
.gradientBackground {
background-image: linear-gradient(to right, #d946ef, #ffcc00);
}