Skip to content

Commit

Permalink
Apply several changes
Browse files Browse the repository at this point in the history
  • Loading branch information
monambike committed Mar 23, 2024
1 parent ddb006d commit c93afd1
Show file tree
Hide file tree
Showing 16 changed files with 146 additions and 49 deletions.
4 changes: 2 additions & 2 deletions src/Monambike.Links/Monambike.Links.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.3" PrivateAssets="all" />
<PackageReference Include="Monambike.Core" Version="1.4.1" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Monambike.Web/Components/Home/AboutMe.razor
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<div class="button-container">
<a class="button" href="">Ver mais sobre Vinícius Gabriel</a>
</div>
<figure class="karen-kujou-staring-happy" alt="Karen Kujou feliz" title="Karen Kujou feliz">
<figure class="karen-kujou-staring-happy" alt="Karen Kujou sorrindo olhando para a câmera." title="Karen Kujou feliz.">
<img src="images/karen-kujou/staring-happy.gif">
<figcaption>Espero que goste do meu site!</figcaption>
</figure>
Expand Down
2 changes: 1 addition & 1 deletion src/Monambike.Web/Components/Home/Contact.razor
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
você pode ver no meu <a target="_blank" rel="nofollow" href="@Links.GitHub">GitHub</a>.
</p>
<p>
Você também pode me contatar através do meu e-mail <a href="@Emails.MonambikeContact">@Emails.MonambikeContact</a>.
Você também pode me contatar através do meu e-mail <a href="@Emails.Contact">@Emails.Contact</a>.
</p>
</div>
</section>
2 changes: 1 addition & 1 deletion src/Monambike.Web/Components/Home/Presentation.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@*@inject IStringLocalizer<Monambike.Web.Resources> localizer*@
@* @inject IStringLocalizer<en.1> localizer *@

<!-- PRESENTATION - MY NAME AND PROFESSION -->
<section class="site-section site-section--presentation">
Expand Down
6 changes: 6 additions & 0 deletions src/Monambike.Web/ErrorPages/404Page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<h2>404 - Page Not Found</h2>

Não foi possível encontrar o endereço que você estava procurando.


Você pode voltar para o site.
72 changes: 72 additions & 0 deletions src/Monambike.Web/Locale/Resource.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="String1" xml:space="preserve">
<value>dada</value>
</data>
</root>
33 changes: 28 additions & 5 deletions src/Monambike.Web/Monambike.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,39 @@

<ItemGroup>
<Content Remove="C:\Users\vinic\.nuget\packages\monambike.core\1.2.0\contentFiles\any\net8.0\Resources\Phrases.txt" />
<Content Remove="C:\Users\vinic\.nuget\packages\monambike.core\1.4.0\contentFiles\any\net8.0\Resources\Phrases.txt" />
<Content Remove="wwwroot\fonts\LICENSE.txt" />
<Content Remove="wwwroot\fonts\PermanentMarker-Regular.ttf" />
</ItemGroup>

<ItemGroup>
<None Remove="ErrorPages\404Page.html" />
</ItemGroup>

<ItemGroup>
<Content Include="ErrorPages\404Page.html" />
</ItemGroup>

<ItemGroup>
<None Include="wwwroot\fonts\LICENSE.txt" />
<None Include="wwwroot\fonts\PermanentMarker-Regular.ttf" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.2" />
<PackageReference Include="Monambike.Core" Version="1.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Localization" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.3" />
<PackageReference Include="Monambike.Core" Version="1.4.1" />
<PackageReference Include="Notion.Net" Version="4.2.0" />
</ItemGroup>

<ItemGroup>
<Compile Update="Locale\Resource.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resource.resx</DependentUpon>
</Compile>
<Compile Update="Resources\GithubProjects.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
Expand All @@ -65,10 +80,18 @@
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Locale\Resource.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resource.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Resources\GithubProjects.resx">
<Generator>ResXFileCodeGenerator</Generator>
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>GithubProjects.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<Folder Include="wwwroot\images\featured\art2d\" />
</ItemGroup>

</Project>
5 changes: 1 addition & 4 deletions src/Monambike.Web/Pages/About.razor
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,5 @@
</div>

@code {
protected override async Task OnInitializedAsync()
{
await PageTitleService.SetPrefixOnPageTitle("About");
}
protected override async Task OnInitializedAsync() => await PageTitleService.SetPrefixOnPageTitle("About");
}
1 change: 0 additions & 1 deletion src/Monambike.Web/Pages/Gallery.razor

This file was deleted.

17 changes: 0 additions & 17 deletions src/Monambike.Web/Pages/Login.razor

This file was deleted.

9 changes: 8 additions & 1 deletion src/Monambike.Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Monambike.Web.Services;
using Microsoft.AspNetCore.Builder;

var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");

builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddLocalization();
builder.Services.AddLocalization(options => options.ResourcesPath = "Resources/Localization");
builder.Services.AddScoped<PageTitleService>();

string[] supportedCultures = ["en-US", "pt-BR"];
var localizationOptions = new RequestLocalizationOptions()
.SetDefaultCulture(supportedCultures[0])
.AddSupportedCultures(supportedCultures)
.AddSupportedUICultures(supportedCultures);

await builder.Build().RunAsync();
18 changes: 9 additions & 9 deletions src/Monambike.Web/Resources/GithubProjects.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Monambike.Web/Services/PageTitleService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class PageTitleService(IJSRuntime jsRuntime)
private readonly IJSRuntime _jsRuntime = jsRuntime;

// Current website name
private readonly string WebsiteName = Core.Data.Monambike.Username;
private readonly string WebsiteName = BasicInfo.Username;

/// <summary>
/// Sets the prefix on the title of the current webpage by setting it to
Expand Down
13 changes: 7 additions & 6 deletions src/Monambike.Web/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
<html>
<head>
<title>Vinícius Gabriel&nbsp;&#124;&nbsp;Monambike</title>
<!-- METADATA -->
<!-- Meta Tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!--My Info-->
<!-- My Information -->
<meta name="author" content="Vinícius Gabriel Marques de Melo">
<meta name="application-name" content="Monambike Site">
<meta name="description" content="Esse é meu site pessoal. Programador, amante de jogos e coisas fofas nascido em Ribeirão Preto. Tentando todos os dias ficar cada vez melhor na minha área e na minha percepção do mundo à minha volta.">
<meta name="application-name" content="Monambike Website">
<meta name="description" content="This is my personal website. I'm a programmer, passionate gamer, born in Ribeirão Preto (SP). Every day, I strive to improve both in my field and in my perception of the world around me.">
<meta name="keywords" content="monambike, vinicius-gabriel, vinicius, site-pessoal, curriculo, programacao, desenvolvedor, desenvolvimento-web, inicio, pagina-inicial">
<!-- CSS -->
<!-- CSS Stylesheets -->
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
<link href="css/app.css" rel="stylesheet" />
<link href="css/main.css" rel="stylesheet" />
<!-- WEBSITE ICONS -->
<!-- Website Icons -->
<link rel="icon" type="image/png" href="images/favicon.png">
</head>

Expand Down Expand Up @@ -90,4 +90,5 @@
//}
</script>
</body>

</html>
6 changes: 6 additions & 0 deletions src/Monambike.Website.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ VisualStudioVersion = 17.2.32630.192
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Monambike.Web", "Monambike.Web\Monambike.Web.csproj", "{912356AB-C1D9-40AD-A400-3FAEE982A77C}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Monambike.Links", "Monambike.Links\Monambike.Links.csproj", "{DC18D87B-FDA9-4F3B-8A1C-21F5B553606A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -15,6 +17,10 @@ Global
{912356AB-C1D9-40AD-A400-3FAEE982A77C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{912356AB-C1D9-40AD-A400-3FAEE982A77C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{912356AB-C1D9-40AD-A400-3FAEE982A77C}.Release|Any CPU.Build.0 = Release|Any CPU
{DC18D87B-FDA9-4F3B-8A1C-21F5B553606A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DC18D87B-FDA9-4F3B-8A1C-21F5B553606A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DC18D87B-FDA9-4F3B-8A1C-21F5B553606A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DC18D87B-FDA9-4F3B-8A1C-21F5B553606A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit c93afd1

Please sign in to comment.