forked from crowetic/commerce
fix cookie mobile
This commit is contained in:
parent
4f3fe0cc7e
commit
cd3a80a381
@ -1,9 +0,0 @@
|
|||||||
.separator {
|
|
||||||
@apply mx-3 bg-secondary;
|
|
||||||
width: 1px;
|
|
||||||
height: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.separator:before {
|
|
||||||
content: '';
|
|
||||||
}
|
|
@ -1,6 +1,5 @@
|
|||||||
import cn from 'classnames'
|
import cn from 'classnames'
|
||||||
import { FC } from 'react'
|
import { FC } from 'react'
|
||||||
import s from './Featurebar.module.css'
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
className?: string
|
className?: string
|
||||||
@ -18,15 +17,16 @@ const Featurebar: FC<Props> = ({
|
|||||||
hide,
|
hide,
|
||||||
}) => {
|
}) => {
|
||||||
const rootClassName = cn(
|
const rootClassName = cn(
|
||||||
'transition-transform transform duration-500 ease-out p-6 bg-primary text-base text-sm md:flex flex-row justify-center items-center font-medium fixed bottom-0 w-full z-10',
|
'transition-transform transform duration-500 text-center ease-out p-6 bg-primary text-base text-sm md:flex md:text-left flex-row justify-center items-center font-medium fixed bottom-0 w-full z-10',
|
||||||
{ 'translate-y-full': hide },
|
{ 'translate-y-full': hide },
|
||||||
className
|
className
|
||||||
)
|
)
|
||||||
return (
|
return (
|
||||||
<div className={rootClassName}>
|
<div className={rootClassName}>
|
||||||
<span>{title}</span>
|
<span className="block md:inline">{title}</span>
|
||||||
<span className={s.separator} />
|
<span className="block mb-6 md:inline md:mb-0 md:ml-2">
|
||||||
<span>{description}</span>
|
{description}
|
||||||
|
</span>
|
||||||
{action && action}
|
{action && action}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user