main page changes

This commit is contained in:
2024-03-21 03:01:53 +03:00
parent 6d02c56ed4
commit 3591fb4bd0
11 changed files with 111 additions and 82 deletions

View File

@@ -30,20 +30,17 @@
}
.backdropOnText {
background-color: var(--background);
padding: 0.5rem 8px;
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
}
.backdropOnText {
background-color: var(--background);
padding: 0 8px;
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
z-index: 1 !important;
position: relative;
box-shadow: 0px 5px 0px var(--background);
}
.backdropTextHelper {
@@ -55,7 +52,7 @@
}
.backdropTextHelper .backdropOnText {
box-shadow: 00px -5px 0px var(--background);
// box-shadow: 00px -5px 0px var(--background);
}
.content {

View File

@@ -0,0 +1 @@
export * from './telegramLink';

View File

@@ -0,0 +1,14 @@
.linkWrapper {
display: inline-flex;
height: min-content;
}
.link {
display: inline-flex;
padding: 18px;
cursor: none;
}
.linkIcon {
color: var(--on-background);
}

View File

@@ -0,0 +1,30 @@
import styles from './telegramLink.module.scss';
import Link, { LinkProps } from 'next/link';
import TelegramIcon from '@/assets/icons/telegram.svg';
import clsx from 'clsx';
import { CursorEffect } from '@/components/cursor';
type TelegramLinkProps = Omit<LinkProps, 'href'> & { className?: string };
export function TelegramLink(props: TelegramLinkProps) {
const { className: restClassName, ...restProps } = props;
return (
<CursorEffect
effectDistance={48}
effectForce={4}
cursorPadding={0}
className={clsx(styles.linkWrapper)}
>
<Link
{...restProps}
className={clsx(styles.link, restClassName)}
target="_blank"
href="https://t.me/ridebus"
prefetch={false}
>
<TelegramIcon className={styles.linkIcon} />
</Link>
</CursorEffect>
);
}

View File

@@ -8,6 +8,7 @@ import useScroll from '@/utils/useScroll';
import { CursorEffect } from '@/components/cursor';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { TelegramLink } from '../telegramLink';
type TopBarProps = {
notHide?: boolean;
@@ -46,6 +47,7 @@ export function TopBar(props: TopBarProps) {
)}
<GooglePlayLink className={styles.googlePlayLink} />
<GithubLink />
<TelegramLink />
<LangSwitcher />
</div>
);