Skip to content

Commit 1a87443

Browse files
committed
added deploay scipt and set up proper routes
1 parent c4cdd73 commit 1a87443

9 files changed

Lines changed: 92 additions & 106 deletions

File tree

Layout/NavMenu.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
</NavLink>
1616
</div>
1717
<div class="nav-item px-3">
18-
<NavLink class="nav-link" href="counter">
19-
<span class="bi bi-plus-square-fill-nav-menu" aria-hidden="true"></span> Counter
18+
<NavLink class="nav-link" href="blog">
19+
<span class="bi bi-plus-square-fill-nav-menu" aria-hidden="true"></span> Blog
2020
</NavLink>
2121
</div>
2222
<div class="nav-item px-3">
23-
<NavLink class="nav-link" href="weather">
24-
<span class="bi bi-list-nested-nav-menu" aria-hidden="true"></span> Weather
23+
<NavLink class="nav-link" href="About">
24+
<span class="bi bi-list-nested-nav-menu" aria-hidden="true"></span> About me
2525
</NavLink>
2626
</div>
2727
</nav>

Pages/About.razor

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
@page "/about"
2+
3+
<div class="about-container">
4+
<h1>About Me</h1>
5+
6+
<section class="intro">
7+
<p>Welcome to my about page. I'm a passionate developer interested in web technologies and open source.</p>
8+
</section>
9+
10+
<section class="skills">
11+
<h2>Skills</h2>
12+
<ul>
13+
<li>C# and .NET</li>
14+
<li>Blazor</li>
15+
<li>Web Development</li>
16+
<li>JavaScript</li>
17+
</ul>
18+
</section>
19+
20+
<section class="experience">
21+
<h2>Experience</h2>
22+
<p>I have experience building full-stack web applications using modern technologies.</p>
23+
</section>
24+
25+
<section class="contact">
26+
<h2>Get in Touch</h2>
27+
<p>Feel free to reach out via email or social media.</p>
28+
</section>
29+
</div>
30+
31+
@code {
32+
// Component logic here
33+
}

Pages/Blog.razor

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@page "/blog"
2+
3+
<h1>Blog</h1>
4+
5+
<ul>
6+
<li>
7+
<a href="/blog/hello-world">Hello World</a>
8+
</li>
9+
</ul>
10+
<p>Welcome to the OsayamiBlog! This is where I share my thoughts, fictional stories I write, and experiences.</p>

Pages/BlogPost.razor

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@page "/blog/{Slug}"
2+
3+
<h1>@Slug</h1>
4+
5+
<p>This is a placeholder blog post.</p>
6+
7+
@code {
8+
[Parameter]
9+
public string Slug { get; set; } = string.Empty;
10+
}

Pages/Counter.razor

Lines changed: 0 additions & 18 deletions
This file was deleted.

Pages/Weather.razor

Lines changed: 0 additions & 57 deletions
This file was deleted.

deploy.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
dotnet publish -c Release
3+
rm -rf docs
4+
mkdir docs
5+
cp -r bin/Release/net10.0/publish/wwwroot/* docs/
6+
touch docs/.nojekyll
7+
git add docs
8+
git commit -m "Update GitHub Pages build"
9+
git push
10+
echo "Deployment to GitHub Pages completed."

osayami.github.io.sln

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.5.2.0
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OsayamiBlog", "OsayamiBlog.csproj", "{1B5B6629-AE9C-54D6-6076-F3FA55153ED7}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{1B5B6629-AE9C-54D6-6076-F3FA55153ED7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{1B5B6629-AE9C-54D6-6076-F3FA55153ED7}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{1B5B6629-AE9C-54D6-6076-F3FA55153ED7}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{1B5B6629-AE9C-54D6-6076-F3FA55153ED7}.Release|Any CPU.Build.0 = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(SolutionProperties) = preSolution
19+
HideSolutionNode = FALSE
20+
EndGlobalSection
21+
GlobalSection(ExtensibilityGlobals) = postSolution
22+
SolutionGuid = {5B2D81E2-2BD9-4B46-8153-C70F4BC043D5}
23+
EndGlobalSection
24+
EndGlobal

wwwroot/sample-data/weather.json

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1 @@
1-
[
2-
{
3-
"date": "2022-01-06",
4-
"temperatureC": 1,
5-
"summary": "Freezing"
6-
},
7-
{
8-
"date": "2022-01-07",
9-
"temperatureC": 14,
10-
"summary": "Bracing"
11-
},
12-
{
13-
"date": "2022-01-08",
14-
"temperatureC": -13,
15-
"summary": "Freezing"
16-
},
17-
{
18-
"date": "2022-01-09",
19-
"temperatureC": -16,
20-
"summary": "Balmy"
21-
},
22-
{
23-
"date": "2022-01-10",
24-
"temperatureC": -2,
25-
"summary": "Chilly"
26-
}
27-
]
1+
[]

0 commit comments

Comments
 (0)