1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-08 20:32:24 +04:00

AOS component

This commit is contained in:
codecalm
2023-07-30 13:45:52 +02:00
parent 49a5b9d9f7
commit 1354c6d899
4 changed files with 24 additions and 8 deletions
+6 -3
View File
@@ -1,5 +1,6 @@
import Header from '@/components/layout/Header';
import Footer from '@/components/layout/Footer';
import AOS from '@/components/AOS';
export default function CoreLayout({
children
@@ -8,9 +9,11 @@ export default function CoreLayout({
}) {
return (
<>
<Header />
<main className="main">{children}</main>
<Footer />
<AOS>
<Header />
<main className="main">{children}</main>
<Footer />
</AOS>
</>
);
}
+13
View File
@@ -0,0 +1,13 @@
"use client"
import { useEffect } from 'react';
import AOS from 'aos';
export default function AOSComponent({ children }: { children: React.ReactNode }) {
useEffect(() => {
AOS.init();
}, []);
return <>{children}</>;
}
+4 -4
View File
@@ -1,6 +1,7 @@
import Browser from '@/components/Browser';
import ResponsiveImage from '@/components/ResponsiveImage';
import { uiDownloadUrl } from '@/config/site';
import React from 'react';
export default function LayoutHeroUi() {
return (
@@ -11,8 +12,7 @@ export default function LayoutHeroUi() {
Develop beautiful web apps with&nbsp;Tabler
</h1>
<p className="hero-description mt-4" data-aos="zoom-y-out" data-aos-delay="150">
Tabler is a free and open source web application UI kit based on Bootstrap&nbsp;5, with hundreds responsive
components and multiple layouts.
Tabler is a free and open source web application UI kit based on Bootstrap&nbsp;5, with hundreds responsive components and multiple layouts.
</p>
<div className="mt-5" data-aos="zoom-y-out" data-aos-delay="300">
@@ -30,8 +30,8 @@ export default function LayoutHeroUi() {
</div>
</div>
<div className="hero-img img-overlap-margin">
<Browser data-aos="zoom-y-out" data-aos-delay="450">
<div className="hero-img img-overlap-margin" data-aos="zoom-y-out" data-aos-delay="450">
<Browser>
<ResponsiveImage src="/img/tabler/preview.png" width={1040} height={760} priority />
</Browser>
</div>
+1 -1
View File
@@ -1,5 +1,5 @@
$aos-distance: 50px;
// @import 'aos/src/sass/aos.scss';
@import 'aos/src/sass/aos.scss';
@keyframes float {