|
| 1 | +using Microsoft.AspNetCore.Components; |
| 2 | +using Microsoft.AspNetCore.Components.Web; |
| 3 | + |
| 4 | +namespace CodeBeam.UltimateAuth.Sample; |
| 5 | + |
| 6 | +public partial class UAuthLogo : ComponentBase |
| 7 | +{ |
| 8 | + [Parameter] public UAuthLogoVariant Variant { get; set; } = UAuthLogoVariant.Brand; |
| 9 | + |
| 10 | + [Parameter] public int Size { get; set; } = 32; |
| 11 | + |
| 12 | + [Parameter] public string? ShieldColor { get; set; } = "#00072d"; |
| 13 | + [Parameter] public string? KeyColor { get; set; } = "#f6f5ae"; |
| 14 | + |
| 15 | + [Parameter] public string? Class { get; set; } |
| 16 | + [Parameter] public string? Style { get; set; } |
| 17 | + |
| 18 | + private string BuildStyle() |
| 19 | + { |
| 20 | + if (Variant == UAuthLogoVariant.Mono) |
| 21 | + return $"color: {KeyColor}; {Style}"; |
| 22 | + |
| 23 | + return Style ?? ""; |
| 24 | + } |
| 25 | + |
| 26 | + protected string KeyPath => @" |
| 27 | +M120.43,39.44H79.57A11.67,11.67,0,0,0,67.9,51.11V77.37 |
| 28 | +A11.67,11.67,0,0,0,79.57,89H90.51l3.89,3.9v5.32l-3.8,3.81v81.41H99 |
| 29 | +v-5.33h13.69V169H108.1v-3.8H99C99,150.76,111.9,153,111.9,153 |
| 30 | +V99.79h-8V93.32L108.19,89h12.24 |
| 31 | +A11.67,11.67,0,0,0,132.1,77.37V51.11 |
| 32 | +A11.67,11.67,0,0,0,120.43,39.44Z |
| 33 | +
|
| 34 | +M79.57,48.19h5.84a2.92,2.92 0 0 1 2.92,2.92 |
| 35 | +v5.84a2.92,2.92 0 0 1 -2.92,2.92 |
| 36 | +h-5.84a2.91,2.91 0 0 1 -2.91,-2.92 |
| 37 | +v-5.84a2.91,2.91 0 0 1 2.91,-2.92Z |
| 38 | +
|
| 39 | +M79.57,68.62h5.84a2.92,2.92 0 0 1 2.92,2.92 |
| 40 | +v5.83a2.92,2.92 0 0 1 -2.92,2.92 |
| 41 | +h-5.84a2.91,2.91 0 0 1 -2.91,-2.92 |
| 42 | +v-5.83a2.91,2.91 0 0 1 2.91,-2.92Z |
| 43 | +
|
| 44 | +M114.59,48.19h5.84a2.92,2.92 0 0 1 2.91,2.92 |
| 45 | +v5.84a2.91,2.91 0 0 1 -2.91,2.91 |
| 46 | +h-5.84a2.92,2.92 0 0 1 -2.92,-2.91 |
| 47 | +v-5.84a2.92,2.92 0 0 1 2.92,-2.92Z |
| 48 | +
|
| 49 | +M114.59,68.62h5.84a2.92,2.92 0 0 1 2.91,2.92 |
| 50 | +v5.83a2.91,2.91 0 0 1 -2.91,2.92 |
| 51 | +h-5.84a2.92,2.92 0 0 1 -2.92,-2.92 |
| 52 | +v-5.83a2.92,2.92 0 0 1 2.92,-2.92Z |
| 53 | +"; |
| 54 | +} |
0 commit comments