-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from dragonfruitnetwork/add-dragon6-info
Add dragon6 info
- Loading branch information
Showing
8 changed files
with
253 additions
and
1 deletion.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
DragonFruit.Sakura/Dragon6/Components/DiscordEmbedPlayerStats.razor
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,20 @@ | ||
<div class="discord-embed"> | ||
<div class="discord-embed-side" style="background: #90EE90"></div> | ||
<div class="discord-embed-card"> | ||
<div class="discord-embed-card-author"> | ||
<img src="https://ubisoft-avatars.akamaized.net/14c01250-ef26-4a32-92ba-e04aa557d619/default_256_256.png" alt="steam logo"/> | ||
<div>PaPa.Curry</div> | ||
</div> | ||
<span class="discord-embed-card-title">Dragon6 Admin</span> | ||
<div class="discord-embed-card-fields"> | ||
<div class="discord-embed-card-field"> | ||
<div>Last Seen</div> | ||
<div>5 minutes ago</div> | ||
</div> | ||
<div class="discord-embed-card-field"> | ||
<div>Session Count</div> | ||
<div><strong>1,600</strong> Sessions<br/>Since October 14, 2017</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
12 changes: 12 additions & 0 deletions
12
DragonFruit.Sakura/Dragon6/Components/DiscordEmbedSteamPlayers.razor
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,12 @@ | ||
<div class="discord-embed"> | ||
<div class="discord-embed-side" style="background: #1374a7"></div> | ||
<div class="discord-embed-card"> | ||
<div class="discord-embed-card-author"> | ||
<img src="https://upload.wikimedia.org/wikipedia/commons/8/83/Steam_icon_logo.svg" alt="steam logo"/> | ||
<div>Steam</div> | ||
</div> | ||
<span class="discord-embed-card-title">Player Count</span> | ||
<span>There are <strong>50,000</strong> people currently in-game!</span> | ||
<span class="discord-embed-card-footer">Data represents players currently playing Rainbow Six | Siege on Steam.</span> | ||
</div> | ||
</div> |
22 changes: 22 additions & 0 deletions
22
DragonFruit.Sakura/Dragon6/Components/Dragon6GridProduct.razor
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 @@ | ||
<MudItem xs="12" md="@(FullWidth ? 12 : 6)"> | ||
<MudPaper Elevation="0" Class="p-4 h-100"> | ||
<MudStack Spacing="3" | ||
Justify="@(Centered ? Justify.Center : Justify.FlexStart)" | ||
AlignItems="@(Centered ? AlignItems.Center : AlignItems.Start)"> | ||
@ChildContent | ||
</MudStack> | ||
</MudPaper> | ||
</MudItem> | ||
|
||
@code { | ||
|
||
[Parameter] | ||
public bool FullWidth { get; set; } | ||
|
||
[Parameter] | ||
public bool Centered { get; set; } = true; | ||
|
||
[Parameter] | ||
public RenderFragment ChildContent { get; set; } | ||
|
||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,95 @@ | ||
/* discord css based on styles from https://cog-creators.github.io/discord-embed-sandbox/ */ | ||
|
||
.discord-embed { | ||
display: flex; | ||
max-width: 520px; | ||
} | ||
|
||
.discord-embed-side { | ||
width: 4px; | ||
border-radius: 3px 0 0 3px; | ||
background: #4f545c; | ||
} | ||
|
||
.discord-embed-card { | ||
border-radius: 0 3px 3px 0; | ||
background: rgba(46, 48, 54, 0.3); | ||
border-color: rgba(46, 48, 54, 0.6); | ||
padding: 8px 10px; | ||
color: rgba(255, 255, 255, 0.6); | ||
font-size: 14px; | ||
display: flex; | ||
width: 100%; | ||
flex-direction: column; | ||
} | ||
|
||
.discord-embed-card-body { | ||
padding: 0; | ||
display: flex; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.discord-embed-card-author { | ||
display: flex; | ||
align-items: center; | ||
margin: 5px 0; | ||
} | ||
|
||
.discord-embed-card-author img { | ||
margin-right: 9px; | ||
width: 20px; | ||
height: 20px; | ||
object-fit: contain; | ||
border-radius: 50%; | ||
} | ||
|
||
.discord-embed-card-author *:not(img) { | ||
display: inline-block; | ||
font-weight: 500; | ||
font-size: 14px; | ||
color: #fff !important; | ||
} | ||
|
||
.discord-embed-card-title { | ||
color: #fff; | ||
font-size: 1rem; | ||
font-weight: 600; | ||
|
||
margin-bottom: 4px; | ||
} | ||
|
||
.discord-embed-card-fields { | ||
gap: 20px; | ||
display: flex; | ||
flex-wrap: wrap; | ||
flex-direction: row; | ||
margin-top: -10px; | ||
} | ||
|
||
.discord-embed-card-field { | ||
/*flex: 0;*/ | ||
padding-top: 10px; | ||
max-width: 506px; | ||
} | ||
|
||
.discord-embed-card-field > *:first-child { | ||
color: #fff; | ||
font-size: 14px; | ||
margin-bottom: 4px; | ||
font-weight: 600; | ||
} | ||
|
||
.discord-embed-card-field > *:not(:first-child) { | ||
color: rgba(255, 255, 255, 0.7); | ||
font-size: 14px; | ||
font-weight: 500; | ||
line-height: 1.1em; | ||
white-space: pre-wrap; | ||
margin-top: 6px; | ||
word-wrap: break-word; | ||
} | ||
|
||
.discord-embed-card-footer { | ||
margin-top: 8px; | ||
font-size: 12px; | ||
} |