-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b872402
commit 0007902
Showing
8 changed files
with
63 additions
and
24 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,15 +1,30 @@ | ||
import setup, { iCard } from './setup.ts'; | ||
import Panel from '../Panel/index.tsx'; | ||
import Gradient from '../Gradient/index.tsx'; | ||
|
||
export default function (props: Partial<iCard>) { | ||
const { c, fref, fwd, children, ...p } = setup(props); | ||
const { c, fref, fwd, children, top_gradient_pattern, bottom_gradient_pattern, ...p } = setup(props); | ||
|
||
return ( | ||
<div ref={fwd.wrapper?.ref!} class={c.wrapper}> | ||
{top_gradient_pattern ? ( | ||
<Gradient | ||
fref={fwd.top_gradient?.fref} | ||
class={c.top_gradient} | ||
flip | ||
gradient_pattern={top_gradient_pattern} | ||
/> | ||
) : null} | ||
<Panel fref={fref} class={c.card} {...p}> | ||
{children} | ||
</Panel> | ||
{/* <div ref={fwd.gradient?.ref!} class={c.gradient} /> */} | ||
{bottom_gradient_pattern ? ( | ||
<Gradient | ||
fref={fwd.bottom_gradient?.fref} | ||
class={c.bottom_gradient} | ||
gradient_pattern={bottom_gradient_pattern} | ||
/> | ||
) : null} | ||
</div> | ||
); | ||
} |
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
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
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
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
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 |
---|---|---|
|
@@ -18,3 +18,11 @@ | |
.y-flip { | ||
transform: scaleY(-1); | ||
} | ||
|
||
.x-flip { | ||
transform: scaleX(-1); | ||
} | ||
|
||
.flip { | ||
transform: scale(-1); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.