Compare commits
2 Commits
version_14
...
version_15
| Author | SHA1 | Date | |
|---|---|---|---|
| 03ae71d325 | |||
| 7394739242 |
@@ -16,6 +16,17 @@ import TeamCardSix from '@/components/sections/team/TeamCardSix';
|
||||
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
|
||||
|
||||
export default function LandingPage() {
|
||||
const handleScroll = (id: string) => {
|
||||
const element = document.getElementById(id);
|
||||
if (element) {
|
||||
element.scrollIntoView({ behavior: "smooth" });
|
||||
}
|
||||
const menu = document.querySelector('[data-fullscreen-menu]');
|
||||
if (menu) {
|
||||
(menu as HTMLElement).style.display = 'none';
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="directional-hover"
|
||||
@@ -51,7 +62,7 @@ export default function LandingPage() {
|
||||
{
|
||||
text: "Записаться на приём", href: "https://wa.me/+79291033003?text=Здравствуйте!%20Хочу%20записаться%20на%20приём%20в%20Diamond%20Dent%20Grozny"},
|
||||
{
|
||||
text: "Узнать больше", href: "#about"},
|
||||
text: "Узнать больше", onClick: () => handleScroll('about')},
|
||||
]}
|
||||
mediaItems={[
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user