Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
beyaz committed Sep 14, 2024
1 parent 869e505 commit c75e620
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ReactWithDotNet.WebSite/Components/GradientText.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace ReactWithDotNet.WebSite.Components;

sealed class GradientText : PureComponent
{
protected override Element render()
{
return new span
{
children,

PaddingLeftRight(3),
WebkitTextFillColor(transparent),
Background(linear_gradientTo("right", Blue400, Blue600)),
BackgroundClipText,
WebkitBackgroundClipText
};
}
}

0 comments on commit c75e620

Please sign in to comment.