diff --git a/src/CraftSharp/CraftSharp.csproj b/src/CraftSharp/CraftSharp.csproj index 85da056..12e1c93 100644 --- a/src/CraftSharp/CraftSharp.csproj +++ b/src/CraftSharp/CraftSharp.csproj @@ -1,4 +1,4 @@ - + net6.0 @@ -18,8 +18,8 @@ - - + + diff --git a/src/CraftSharp/Pages/Index.razor b/src/CraftSharp/Pages/Index.razor index b469fd4..131823e 100644 --- a/src/CraftSharp/Pages/Index.razor +++ b/src/CraftSharp/Pages/Index.razor @@ -9,7 +9,7 @@

@Localizer["Opening"]

Hello, world!

- +
diff --git a/src/CraftSharp/Resources/Shared.HeaderLayout.fr-FR.resx b/src/CraftSharp/Resources/Shared.HeaderLayout.fr-FR.resx new file mode 100644 index 0000000..238a0f5 --- /dev/null +++ b/src/CraftSharp/Resources/Shared.HeaderLayout.fr-FR.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Inventaire + + + Se connecter + + + Ouverture + + + Créer un compte + + + Magasin + + + subtext_fr-FR + + \ No newline at end of file diff --git a/src/CraftSharp/Resources/Shared.HeaderLayout.resx b/src/CraftSharp/Resources/Shared.HeaderLayout.resx new file mode 100644 index 0000000..d975e18 --- /dev/null +++ b/src/CraftSharp/Resources/Shared.HeaderLayout.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Inventory + + + Login + + + Opening + + + Register + + + Shop + + + subtext_en-EN + + \ No newline at end of file diff --git a/src/CraftSharp/Resources/Shared.HeaderLayout.tr-TR.resx b/src/CraftSharp/Resources/Shared.HeaderLayout.tr-TR.resx new file mode 100644 index 0000000..9468275 --- /dev/null +++ b/src/CraftSharp/Resources/Shared.HeaderLayout.tr-TR.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Envanter + + + Giriş yapmak + + + Açılış + + + Kayıt ol + + + Mağaza + + + subtext_tr-TR + + \ No newline at end of file diff --git a/src/CraftSharp/Shared/CraftLayout.razor b/src/CraftSharp/Shared/CraftLayout.razor index c12c6f4..e85193d 100644 --- a/src/CraftSharp/Shared/CraftLayout.razor +++ b/src/CraftSharp/Shared/CraftLayout.razor @@ -2,11 +2,19 @@ CraftSharp -
- +
+
@Body
-
\ No newline at end of file + + + +
+ + diff --git a/src/CraftSharp/Shared/CraftLayout.razor.css b/src/CraftSharp/Shared/CraftLayout.razor.css index 04f249a..62dcb13 100644 --- a/src/CraftSharp/Shared/CraftLayout.razor.css +++ b/src/CraftSharp/Shared/CraftLayout.razor.css @@ -1,3 +1,25 @@ -.sidebar { - background-image: linear-gradient(180deg, rgb(120,51,174) 0%, #411186 90%); +.bedrock_footer{ + width: 100%; + position: absolute; + bottom: 0 } + +.bedrock_footer_img { + width: 100%; +} + +body { + background: url("../Images/blur_background.jpg") center center/cover no-repeat fixed; +} + +.main_div { + background: url("../Images/blur_background.jpg") center center/cover no-repeat fixed; + color: white; + min-height: 100vh; + position: relative +} + +.culture{ + position: absolute; + bottom: 0; +} \ No newline at end of file diff --git a/src/CraftSharp/Shared/HeaderLayout.razor b/src/CraftSharp/Shared/HeaderLayout.razor index 7388269..2a435f1 100644 --- a/src/CraftSharp/Shared/HeaderLayout.razor +++ b/src/CraftSharp/Shared/HeaderLayout.razor @@ -1,55 +1,51 @@ -@inject NavigationManager navigationManager - + + + + @code { private bool collapseNavMenu = true; diff --git a/src/CraftSharp/Shared/HeaderLayout.razor.cs b/src/CraftSharp/Shared/HeaderLayout.razor.cs index a6e8983..d099430 100644 --- a/src/CraftSharp/Shared/HeaderLayout.razor.cs +++ b/src/CraftSharp/Shared/HeaderLayout.razor.cs @@ -9,7 +9,7 @@ namespace CraftSharp.Shared public partial class HeaderLayout { [Inject] - public IStringLocalizer Localizer { get; set; } + public IStringLocalizer Localizer { get; set; } [Inject] public CustomStateProvider AuthStateProvider { get; set; } @@ -22,12 +22,12 @@ namespace CraftSharp.Shared void goInscription() { - navigationManager.NavigateTo("inscription"); + NavigationManager.NavigateTo("inscription"); } void goConnexion() { - navigationManager.NavigateTo("connexion"); + NavigationManager.NavigateTo("connexion"); } protected override async Task OnParametersSetAsync() diff --git a/src/CraftSharp/Shared/HeaderLayout.razor.css b/src/CraftSharp/Shared/HeaderLayout.razor.css index bec6bbc..e8ec297 100644 --- a/src/CraftSharp/Shared/HeaderLayout.razor.css +++ b/src/CraftSharp/Shared/HeaderLayout.razor.css @@ -1,32 +1,101 @@  +.topbar { + background: url("../Images/nav_back.jpg") top center/cover no-repeat fixed; + align-content: center; +} + .oi { width: 3rem; font-size: 1.7rem; top: -2px; } +.btn_wrap { + display: flex; + flex-direction: column; + justify-content: space-evenly; + height: 150px; +} + +.bar{ + display: flex; +} + +.nav-item { + height: 150px; + display: flex; + flex-direction: column; + justify-content: center; + transition: transform .2s; +} + +.nav-item:hover { + transform: scale(1.1); +} + +.topbar_itemimg { + height: 4rem; +} + +.img_wrap { + display: flex; + flex-direction: column; + width: 80%; + margin-top: 5%; + position: absolute; + left: 75%; + transform: translate(-50%, 0); + user-select: none; + pointer-events: none; +} + .nav-image { - width: 18rem; - color: #ffffff; + width: 30%; +} + +.topbar_item { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} +.navbar { + background-color: transparent; + overflow: visible; + position: static; + height: 150px; } -button { - width: 12rem; +nav-link { + height: 300%; +} + +.topbar_content { + width: 100%; + display: flex; + justify-content: space-between; + align-items: center; +} + +.button { + width: 11rem; text-decoration: none; text-align: center; color: white; cursor: pointer; - background: url('Images/btn1.png') no-repeat; + background: url('Images/btn1.png') center center/contain no-repeat; + background-size: 100% 100%; font-family: SilkscreenNormal; line-height: 26px; padding-top: 6px; font-family: Minecraft; } -button:hover { - background: url('Images/btn2.png') no-repeat; -} + .button:hover { + background: url('Images/btn2.png')center center/contain no-repeat; + background-size: 100% 100%; + } .nav-item { font-size: 1.1rem; @@ -61,7 +130,7 @@ button:hover { color: white; } -@media (min-width: 641px) { +@media (min-width: 800px) { .navbar-toggler { display: none; } diff --git a/src/CraftSharp/Shared/MainLayout.razor b/src/CraftSharp/Shared/MainLayout.razor index 7b20dca..c6f8f5a 100644 --- a/src/CraftSharp/Shared/MainLayout.razor +++ b/src/CraftSharp/Shared/MainLayout.razor @@ -18,7 +18,7 @@ -
+
@Body
diff --git a/src/CraftSharp/wwwroot/Images/admin_icon.png b/src/CraftSharp/wwwroot/Images/admin_icon.png new file mode 100644 index 0000000..d5261bf Binary files /dev/null and b/src/CraftSharp/wwwroot/Images/admin_icon.png differ diff --git a/src/CraftSharp/wwwroot/Images/bedrock_footer.png b/src/CraftSharp/wwwroot/Images/bedrock_footer.png new file mode 100644 index 0000000..23a4f14 Binary files /dev/null and b/src/CraftSharp/wwwroot/Images/bedrock_footer.png differ diff --git a/src/CraftSharp/wwwroot/Images/blur_background.jpg b/src/CraftSharp/wwwroot/Images/blur_background.jpg new file mode 100644 index 0000000..6304ecd Binary files /dev/null and b/src/CraftSharp/wwwroot/Images/blur_background.jpg differ diff --git a/src/CraftSharp/wwwroot/Images/inventory_icon.png b/src/CraftSharp/wwwroot/Images/inventory_icon.png new file mode 100644 index 0000000..5932282 Binary files /dev/null and b/src/CraftSharp/wwwroot/Images/inventory_icon.png differ diff --git a/src/CraftSharp/wwwroot/Images/nav_back.jpg b/src/CraftSharp/wwwroot/Images/nav_back.jpg new file mode 100644 index 0000000..e086428 Binary files /dev/null and b/src/CraftSharp/wwwroot/Images/nav_back.jpg differ diff --git a/src/CraftSharp/wwwroot/Images/opening_icon.png b/src/CraftSharp/wwwroot/Images/opening_icon.png new file mode 100644 index 0000000..c163a5c Binary files /dev/null and b/src/CraftSharp/wwwroot/Images/opening_icon.png differ diff --git a/src/CraftSharp/wwwroot/Images/shop_icon.png b/src/CraftSharp/wwwroot/Images/shop_icon.png new file mode 100644 index 0000000..0e3fcee Binary files /dev/null and b/src/CraftSharp/wwwroot/Images/shop_icon.png differ