Skip to content

Commit

Permalink
Merge pull request #13 from suvanbanerjee/main
Browse files Browse the repository at this point in the history
🎉 Init
  • Loading branch information
SkySingh04 authored Aug 12, 2024
2 parents 33c38ca + 686e3a8 commit 8c0d70c
Show file tree
Hide file tree
Showing 30 changed files with 9,577 additions and 1,461 deletions.
11 changes: 11 additions & 0 deletions app/(default)/achievements/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export const metadata = {
title: 'Achievements',
description: 'Achievements page',
}

export default function Achievements() {
return (
<>
</>
)
}
10 changes: 10 additions & 0 deletions app/(default)/events/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export const metadata = {
title: 'Events',
description: 'Events page',
}
export default function Events() {
return (
<>
</>
)
}
36 changes: 36 additions & 0 deletions app/(default)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
'use client'

import { useEffect } from 'react'

import AOS from 'aos'
import 'aos/dist/aos.css'

import Footer from '@/components/ui/footer'

export default function DefaultLayout({
children,
}: {
children: React.ReactNode
}) {

useEffect(() => {
AOS.init({
once: true,
disable: 'phone',
duration: 700,
easing: 'ease-out-cubic',
})
})

return (
<>
<main className="grow">

{children}

</main>

<Footer />
</>
)
}
11 changes: 11 additions & 0 deletions app/(default)/leads/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export const metadata = {
title: 'Leads',
description: 'Leads page',
}

export default function Leads() {
return (
<>
</>
)
}
14 changes: 14 additions & 0 deletions app/(default)/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export const metadata = {
title: 'Home',
description: 'Landing page',
}

import Hero from '@/components/hero'

export default function Home() {
return (
<>
<Hero />
</>
)
}
57 changes: 57 additions & 0 deletions app/css/additional-styles/range-slider.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/* Range slider */
:root {
--range-thumb-size: 36px;
}

input[type=range] {
appearance: none;
background: #ccc;
border-radius: 3px;
height: 6px;
margin-top: (--range-thumb-size - 6px) * 0.5;
margin-bottom: (--range-thumb-size - 6px) * 0.5;
--thumb-size: #{--range-thumb-size};
}

input[type=range]::-webkit-slider-thumb {
appearance: none;
-webkit-appearance: none;
background-color: #000;
background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 .5v7L12 4zM0 4l4 3.5v-7z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E");
background-position: center;
background-repeat: no-repeat;
border: 0;
border-radius: 50%;
cursor: pointer;
height: --range-thumb-size;
width: --range-thumb-size;
}

input[type=range]::-moz-range-thumb {
background-color: #000;
background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 .5v7L12 4zM0 4l4 3.5v-7z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E");
background-position: center;
background-repeat: no-repeat;
border: 0;
border: none;
border-radius: 50%;
cursor: pointer;
height: --range-thumb-size;
width: --range-thumb-size;
}

input[type=range]::-ms-thumb {
background-color: #000;
background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 .5v7L12 4zM0 4l4 3.5v-7z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E");
background-position: center;
background-repeat: no-repeat;
border: 0;
border-radius: 50%;
cursor: pointer;
height: --range-thumb-size;
width: --range-thumb-size;
}

input[type=range]::-moz-focus-outer {
border: 0;
}
181 changes: 181 additions & 0 deletions app/css/additional-styles/theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
html {
scroll-behavior: smooth;
}

.form-input:focus,
.form-textarea:focus,
.form-multiselect:focus,
.form-select:focus,
.form-checkbox:focus,
.form-radio:focus {
@apply ring-0;
}

/* Hamburger button */
.hamburger svg>*:nth-child(1),
.hamburger svg>*:nth-child(2),
.hamburger svg>*:nth-child(3) {
transform-origin: center;
transform: rotate(0deg);
}

.hamburger svg>*:nth-child(1) {
transition: y 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19), opacity 0.1s ease-in;
}

.hamburger svg>*:nth-child(2) {
transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger svg>*:nth-child(3) {
transition: y 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19), width 0.1s 0.25s ease-in;
}

.hamburger.active svg>*:nth-child(1) {
opacity: 0;
y: 11;
transform: rotate(225deg);
transition: y 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.1s 0.12s ease-out;
}

.hamburger.active svg>*:nth-child(2) {
transform: rotate(225deg);
transition: transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger.active svg>*:nth-child(3) {
y: 11;
transform: rotate(135deg);
transition: y 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1), width 0.1s ease-out;
}

/* Pulsing animation */
@keyframes pulseLoop {
0% { opacity: .15; transform: scale(1) translateZ(0); }
30% { opacity: .15; }
60% { opacity: 0; }
80% { opacity: 0; transform: scale(1.8) translateZ(0); }
}
@keyframes pulseMiniLoop {
0% { opacity: 0; transform: scale(1) translateZ(0); }
30% { opacity: .3; }
50% { opacity: .3; }
80% { opacity: 0; transform: scale(3) translateZ(0); }
}
.pulse {
transform: scale(1);
opacity: 0;
transform-origin: center;
animation: pulseLoop 10000ms linear infinite;
}
.pulse-mini {
animation: pulseMiniLoop 6000ms linear infinite;
}
.pulse-1 {
animation-delay: -3000ms;
}
.pulse-2 {
animation-delay: -6000ms;
}

/* Animations delay */
.animation-delay-500 {
animation-delay: 500ms !important;
}

.animation-delay-1000 {
animation-delay: 1000ms !important;
}

.translate-z-0 {
transform: translateZ(0);
}

/* Custom AOS animations */
[data-aos="zoom-y-out"] {
transform: scaleX(1.03);
opacity: 0;
transition-property: transform, opacity;
}

@media screen {
html:not(.no-js) body [data-aos=fade-up] {
-webkit-transform: translate3d(0, 10px, 0);
transform: translate3d(0, 10px, 0);
}

html:not(.no-js) body [data-aos=fade-down] {
-webkit-transform: translate3d(0, -10px, 0);
transform: translate3d(0, -10px, 0);
}

html:not(.no-js) body [data-aos=fade-right] {
-webkit-transform: translate3d(-10px, 0, 0);
transform: translate3d(-10px, 0, 0);
}

html:not(.no-js) body [data-aos=fade-left] {
-webkit-transform: translate3d(10px, 0, 0);
transform: translate3d(10px, 0, 0);
}

html:not(.no-js) body [data-aos=fade-up-right] {
-webkit-transform: translate3d(-10px, 10px, 0);
transform: translate3d(-10px, 10px, 0);
}

html:not(.no-js) body [data-aos=fade-up-left] {
-webkit-transform: translate3d(10px, 10px, 0);
transform: translate3d(10px, 10px, 0);
}

html:not(.no-js) body [data-aos=fade-down-right] {
-webkit-transform: translate3d(-10px, -10px, 0);
transform: translate3d(-10px, -10px, 0);
}

html:not(.no-js) body [data-aos=fade-down-left] {
-webkit-transform: translate3d(10px, -10px, 0);
transform: translate3d(10px, -10px, 0);
}

html:not(.no-js) body [data-aos=zoom-in-up] {
-webkit-transform: translate3d(0, 10px, 0) scale(.6);
transform: translate3d(0, 10px, 0) scale(.6);
}

html:not(.no-js) body [data-aos=zoom-in-down] {
-webkit-transform: translate3d(0, -10px, 0) scale(.6);
transform: translate3d(0, -10px, 0) scale(.6);
}

html:not(.no-js) body [data-aos=zoom-in-right] {
-webkit-transform: translate3d(-10px, 0, 0) scale(.6);
transform: translate3d(-10px, 0, 0) scale(.6);
}

html:not(.no-js) body [data-aos=zoom-in-left] {
-webkit-transform: translate3d(10px, 0, 0) scale(.6);
transform: translate3d(10px, 0, 0) scale(.6);
}

html:not(.no-js) body [data-aos=zoom-out-up] {
-webkit-transform: translate3d(0, 10px, 0) scale(1.2);
transform: translate3d(0, 10px, 0) scale(1.2);
}

html:not(.no-js) body [data-aos=zoom-out-down] {
-webkit-transform: translate3d(0, -10px, 0) scale(1.2);
transform: translate3d(0, -10px, 0) scale(1.2);
}

html:not(.no-js) body [data-aos=zoom-out-right] {
-webkit-transform: translate3d(-10px, 0, 0) scale(1.2);
transform: translate3d(-10px, 0, 0) scale(1.2);
}

html:not(.no-js) body [data-aos=zoom-out-left] {
-webkit-transform: translate3d(10px, 0, 0) scale(1.2);
transform: translate3d(10px, 0, 0) scale(1.2);
}
}
28 changes: 28 additions & 0 deletions app/css/additional-styles/toggle-switch.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* Switch element */
.form-switch {
@apply relative select-none;
width: 68px;
}

.form-switch label {
@apply block overflow-hidden cursor-pointer rounded;
height: 38px;
}

.form-switch label>span:first-child {
@apply absolute block rounded shadow;
width: 30px;
height: 30px;
top: 4px;
left: 4px;
right: 50%;
transition: all .15s ease-out;
}

.form-switch input[type="checkbox"]:checked+label {
@apply bg-blue-600;
}

.form-switch input[type="checkbox"]:checked+label>span:first-child {
left: 34px;
}
Loading

0 comments on commit 8c0d70c

Please sign in to comment.