File tree 7 files changed +8
-17
lines changed
angular-example/src/app/components
nextjs-example/src/components
react-example/src/components
react-workshop/src/components
vanilla-js-example/src/components
vue-example/src/components
7 files changed +8
-17
lines changed Original file line number Diff line number Diff line change 1
1
< div
2
- [ngClass] ="[
3
- 'fixed inset-0 z-40 bg-white/30 flex items-center justify-center',
4
- spinner ? 'backdrop-blur-xs' : 'backdrop-blur-xl'
5
- ] ">
2
+ class ="fixed inset-0 z-40 bg-white/30 dark:bg-lavender-blue-200/40 flex items-center justify-center backdrop-blur-xl ">
6
3
< div
7
4
*ngIf ="spinner "
8
5
class ="w-12 h-12 rounded-full animate-spin border-[3px] border-solid border-lavender-blue-600 border-t-transparent "> </ div >
Original file line number Diff line number Diff line change 1
1
< div class ="relative isolate min-h-[100dvh] ">
2
- < main class ="mx-auto max-w-(--breakpoint-2xl) py-16 px-8 md:px-24 [@media(min-height:800px)]:min-h-[calc(100dvh-128px)] ">
2
+ < main
3
+ class ="mx-auto max-w-(--breakpoint-2xl) py-16 px-8 md:px-24 [@media(min-height:800px)]:min-h-[calc(100dvh-128px)] ">
3
4
< h1 class ="dark:text-white text-5xl md:text-6xl font-bold tracking-tight md:pt-24 ">
4
5
Example App
5
6
</ h1 >
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ interface BackdropProps {
3
3
}
4
4
5
5
export const Backdrop = ( { spinner = false } : BackdropProps ) => (
6
- < div
7
- className = { `fixed inset-0 z-40 ${ spinner ? 'backdrop-blur-xs' : 'backdrop-blur-xl' } bg-white/30 flex items-center justify-center` } >
6
+ < div className = "fixed inset-0 z-40 bg-white/30 dark:bg-lavender-blue-200/40 flex items-center justify-center backdrop-blur-xl" >
8
7
{ spinner && (
9
8
< div
10
9
className = "w-12 h-12 rounded-full animate-spin
Original file line number Diff line number Diff line change 1
1
import PropTypes from 'prop-types' ;
2
2
3
3
export const Backdrop = ( { spinner = false } ) => (
4
- < div
5
- className = { `fixed inset-0 z-40 ${ spinner ? 'backdrop-blur-xs' : 'backdrop-blur-xl' } bg-white/30 flex items-center justify-center` } >
4
+ < div className = "fixed inset-0 z-40 bg-white/30 dark:bg-lavender-blue-200/40 flex items-center justify-center backdrop-blur-xl" >
6
5
{ spinner && (
7
6
< div
8
7
className = "w-12 h-12 rounded-full animate-spin
Original file line number Diff line number Diff line change 1
1
import PropTypes from 'prop-types' ;
2
2
3
3
export const Backdrop = ( { spinner = false } ) => (
4
- < div
5
- className = { `fixed inset-0 z-40 ${ spinner ? 'backdrop-blur-xs' : 'backdrop-blur-xl' } bg-white/30 flex items-center justify-center` } >
4
+ < div className = "fixed inset-0 z-40 bg-white/30 dark:bg-lavender-blue-200/40 flex items-center justify-center backdrop-blur-xl" >
6
5
{ spinner && (
7
6
< div
8
7
className = "w-12 h-12 rounded-full animate-spin
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ const showModal = () => {
114
114
</div>
115
115
</div>
116
116
117
- <div class="fixed inset-0 z-40 backdrop-blur-xl bg-white/30 flex items-center justify-center"></div>
117
+ <div class="fixed inset-0 z-40 bg-white/30 dark:bg-lavender-blue-200/40 flex items-center justify-center backdrop-blur-xl "></div>
118
118
` ;
119
119
} ;
120
120
Original file line number Diff line number Diff line change @@ -6,11 +6,7 @@ defineProps<{
6
6
7
7
<template >
8
8
<div
9
- :class =" {
10
- 'backdrop-blur-sm': spinner === true,
11
- 'backdrop-blur-xl': spinner !== true,
12
- }"
13
- class =" fixed inset-0 z-40 bg-white/30 flex items-center justify-center"
9
+ class =" fixed inset-0 z-40 bg-white/30 dark:bg-lavender-blue-200/40 flex items-center justify-center backdrop-blur-xl"
14
10
>
15
11
<div
16
12
v-if =" spinner"
You can’t perform that action at this time.
0 commit comments