-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add new event page Signed-off-by: Animesh Pathak <[email protected]> * feat: add new event page Signed-off-by: Animesh Pathak <[email protected]> * feat: add new event page Signed-off-by: Animesh Pathak <[email protected]> * fix: neon cta design fix Signed-off-by: Animesh Pathak <[email protected]> --------- Signed-off-by: Animesh Pathak <[email protected]> Signed-off-by: Animesh Pathak <[email protected]>
- Loading branch information
Showing
25 changed files
with
1,384 additions
and
24 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
app/(default)/devscribe/css/additional-styles/range-slider.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' fillRule='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' fillRule='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' fillRule='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; | ||
} |
152 changes: 152 additions & 0 deletions
152
app/(default)/devscribe/css/additional-styles/theme.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
.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: 0; transform: scale(0.1) translateZ(0); } | ||
40% { opacity: 1; } | ||
60% { opacity: 1; } | ||
100% { opacity: 0; transform: scale(2) translateZ(0); } | ||
} | ||
.pulse { | ||
transform: scale(0.1); | ||
opacity: 0; | ||
transform-origin: center; | ||
animation: pulseLoop 8000ms linear infinite; | ||
} | ||
.pulse-1 { | ||
animation-delay: -2000ms; | ||
} | ||
.pulse-2 { | ||
animation-delay: -4000ms; | ||
} | ||
.pulse-3 { | ||
animation-delay: -6000ms; | ||
} | ||
|
||
/* Custom AOS distance */ | ||
@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); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
app/(default)/devscribe/css/additional-styles/toggle-switch.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* Switch element */ | ||
.form-switch { | ||
@apply relative select-none; | ||
width: 60px; | ||
} | ||
|
||
.form-switch label { | ||
@apply block overflow-hidden cursor-pointer h-8 rounded-full; | ||
} | ||
|
||
.form-switch label>span:first-child { | ||
@apply absolute block rounded-full; | ||
width: 28px; | ||
height: 28px; | ||
top: 2px; | ||
left: 2px; | ||
right: 50%; | ||
transition: all .15s ease-out; | ||
} | ||
|
||
.form-switch input[type="checkbox"]:checked+label { | ||
@apply bg-purple-600; | ||
} | ||
|
||
.form-switch input[type="checkbox"]:checked+label>span:first-child { | ||
left: 30px; | ||
} |
79 changes: 79 additions & 0 deletions
79
app/(default)/devscribe/css/additional-styles/utility-patterns.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/* Typography */ | ||
.h1 { | ||
@apply text-4xl font-extrabold leading-tight tracking-tighter; | ||
} | ||
|
||
.h2 { | ||
@apply text-3xl font-extrabold leading-tight tracking-tighter; | ||
} | ||
|
||
.h3 { | ||
@apply text-3xl font-bold leading-tight; | ||
} | ||
|
||
.h4 { | ||
@apply text-2xl font-bold leading-snug tracking-tight; | ||
} | ||
|
||
@screen md { | ||
.h1 { | ||
@apply text-5xl; | ||
} | ||
|
||
.h2 { | ||
@apply text-4xl; | ||
} | ||
} | ||
|
||
/* Buttons */ | ||
.btn, | ||
.btn-sm { | ||
@apply font-medium inline-flex items-center justify-center border border-transparent rounded-sm leading-snug transition duration-150 ease-in-out; | ||
} | ||
|
||
.btn { | ||
@apply px-8 py-3; | ||
} | ||
|
||
.btn-sm { | ||
@apply px-4 py-2; | ||
} | ||
|
||
/* Forms */ | ||
.form-input, | ||
.form-textarea, | ||
.form-multiselect, | ||
.form-select, | ||
.form-checkbox, | ||
.form-radio { | ||
@apply bg-transparent border border-gray-700 focus:border-gray-500; | ||
} | ||
|
||
.form-input, | ||
.form-textarea, | ||
.form-multiselect, | ||
.form-select, | ||
.form-checkbox { | ||
@apply rounded-sm; | ||
} | ||
|
||
.form-input, | ||
.form-textarea, | ||
.form-multiselect, | ||
.form-select { | ||
@apply py-3 px-4; | ||
} | ||
|
||
.form-input, | ||
.form-textarea { | ||
@apply placeholder-gray-500; | ||
} | ||
|
||
.form-select { | ||
@apply pr-10; | ||
} | ||
|
||
.form-checkbox, | ||
.form-radio { | ||
@apply text-purple-600; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@import '../../../../node_modules/tailwindcss/base.css'; | ||
@import '../../../../node_modules/tailwindcss/components.css'; | ||
|
||
/* Additional styles */ | ||
@import 'additional-styles/utility-patterns.css'; | ||
@import 'additional-styles/range-slider.css'; | ||
@import 'additional-styles/toggle-switch.css'; | ||
@import 'additional-styles/theme.css'; | ||
|
||
@import '../../../../node_modules/tailwindcss/utilities.css'; | ||
|
||
/* Additional Tailwind directives: https://tailwindcss.com/docs/functions-and-directives/#responsive */ | ||
@layer utilities { | ||
.rtl { | ||
direction: rtl; | ||
} | ||
} | ||
|
||
/* See Alpine.js: https://github.com/alpinejs/alpine#x-cloak */ | ||
[x-cloak=""] { | ||
display: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import './css/style.css' | ||
|
||
import { Inter, Architects_Daughter } from 'next/font/google' | ||
|
||
import Header from '@/components/devscribe/header' | ||
|
||
const inter = Inter({ | ||
subsets: ['latin'], | ||
variable: '--font-inter', | ||
display: 'swap' | ||
}) | ||
|
||
const architects_daughter = Architects_Daughter({ | ||
subsets: ['latin'], | ||
variable: '--font-architects-daughter', | ||
weight: '400', | ||
display: 'swap' | ||
}) | ||
export default function RootLayout({children,}: { | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<html lang="en"> | ||
<title>DevScribe: Senior Developers X Open-Source = Practical Productivity</title> | ||
<body className={`${inter.variable} ${architects_daughter.variable} font-inter antialiased bg-gray-900 text-gray-200 tracking-tight`}> | ||
<div className="flex flex-col min-h-screen overflow-hidden"> | ||
<Header /> | ||
{children} | ||
</div> | ||
</body> | ||
</html> | ||
) | ||
} | ||
|
Oops, something went wrong.