optimization
parent
57421abc43
commit
5ad60b819a
@ -0,0 +1,13 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="1300" height="1300" fill="none"
|
||||||
|
viewBox="0 0 1300 1300">
|
||||||
|
<path fill="url(#b)" fill-opacity=".3"
|
||||||
|
d="M190.1 1085.4c-35-44.9-173.1-341.4 34.6-503.1 207.6-161.7 793.5-439.6 877-378.6 53.6 86.6-110 579.3-317.6 741-207.7 161.8-559 185.7-594 140.7Z" />
|
||||||
|
|
||||||
|
<defs>
|
||||||
|
<linearGradient id="b" x1="1025.5" x2="400.4" y1="264.7" y2="862.3"
|
||||||
|
gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#1d4fac" />
|
||||||
|
<stop offset="1" stop-color="#1d4aac" stop-opacity=".2" />
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 560 B |
@ -0,0 +1,9 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="1300" height="1300" fill="none" viewBox="0 0 1300 1300">
|
||||||
|
<path fill="url(#b)" fill-opacity=".3" d="M1191.5 321.5c24.7 51.3 96.8 370.4-140.4 484.4s-868.7 261.4-937.3 184.2c-34-96 230.2-543 467.4-657s585.6-63 610.3-11.6Z"/>
|
||||||
|
<defs>
|
||||||
|
<linearGradient id="b" x1="201.2" x2="938.6" y1="946.6" y2="495" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#715573"/>
|
||||||
|
<stop offset="1" stop-color="#715573" stop-opacity=".3"/>
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 518 B |
Binary file not shown.
|
After Width: | Height: | Size: 409 KiB |
@ -0,0 +1 @@
|
|||||||
|
export * from './telegramCardButton';
|
||||||
@ -0,0 +1,38 @@
|
|||||||
|
.card {
|
||||||
|
border-radius: 36px;
|
||||||
|
overflow: hidden;
|
||||||
|
background-color: #a4a4a41c;
|
||||||
|
backdrop-filter: blur(18px);
|
||||||
|
|
||||||
|
a {
|
||||||
|
cursor: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
padding: 14px;
|
||||||
|
padding-left: 28px;
|
||||||
|
padding-right: 22px;
|
||||||
|
transition: 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.linkIcon {
|
||||||
|
width: 42px;
|
||||||
|
height: 42px;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.storeNameText {
|
||||||
|
color: #242424;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 2rem;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 620px) {
|
||||||
|
.content {
|
||||||
|
padding: 36px;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
import styles from './telegramCardButton.module.scss';
|
||||||
|
import Link, { LinkProps } from 'next/link';
|
||||||
|
import LinkIcon from '@/assets/icons/link.svg';
|
||||||
|
import clsx from 'clsx';
|
||||||
|
import { CursorEffect } from '@/components/cursor';
|
||||||
|
|
||||||
|
type TelegramCardButtonProps = Omit<LinkProps, 'href'> & { className?: string };
|
||||||
|
|
||||||
|
export function TelegramCardButton(props: TelegramCardButtonProps) {
|
||||||
|
const { className: restCalssName, ...restProps } = props;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<CursorEffect cursorBorderRadius={36} cursorPadding={12}>
|
||||||
|
<div className={clsx(styles.card, restCalssName)}>
|
||||||
|
<Link
|
||||||
|
{...restProps}
|
||||||
|
target="_blank"
|
||||||
|
href="https://t.me/ridebus"
|
||||||
|
>
|
||||||
|
<div className={styles.content}>
|
||||||
|
<span className={styles.storeNameText}>Telegram</span>
|
||||||
|
<LinkIcon className={styles.linkIcon} />
|
||||||
|
</div>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</CursorEffect>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue