Skip to content

Commit

Permalink
Teamwork in intro, visibility Improvements, contact error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sane7222 committed Apr 28, 2024
1 parent 9037a62 commit 8dcc3d4
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Pages/Error.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ViewData["Title"] = "Error";
}

<h1>Error.</h1>
<h1>Error</h1>
<h2>An error occurred while processing your request.</h2>

@if (Model.ShowRequestId) {
Expand Down
6 changes: 3 additions & 3 deletions Pages/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<section id="intro">
<h3>Introduction</h3>
<p>
I'm Matias, and as a cloud certified full stack developer, I bring a disciplined and focused approach to my work.
I possess a broad range of experience with expertise in Microsoft Azure, SQL Server, .NET, and C#. Which enables me to architect and deliver enterprise level and quality solutions.
I prioritize precision in every aspect of development lifecycle and adhere to established principles to ensure the reliability and efficiency of applications.
Hello, I'm Matias, a cloud certified full stack developer.
My expertise spans Microsoft Azure, SQL Server, .NET, and C#, enabling me to architect and deliver high-quality enterprise solutions.
I prioritize precision throughout the development lifecycle, collaborating with cross-functional teams to deliver reliable and efficient applications.
</p>
</section>

Expand Down
2 changes: 1 addition & 1 deletion Pages/Projects.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public ProjectsModel() {
_cache = APIClient.Cache;
}

public async void OnGet() {
public async Task OnGet() {
await APIClient.OnGet();
ViewData["CachedRepos"] = _cache.Get("GitHubRepos");
}
Expand Down
2 changes: 1 addition & 1 deletion Pages/_Layout.cshtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
string isActivePage(string page) {
if (Context.Request.Path == "/" + page) {
if (Context.Request.Path == $"/{page}") {
return "active";
}
return "";
Expand Down
16 changes: 10 additions & 6 deletions wwwroot/css/site.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
:root {
--light: #F5F5F5;
--light-sec: #FCFCFC;
--light-hover: #ddd;
--light-purp: #512bd4;
--light-sec: #FDFDFD;
--light-hover: #BBB;
--light-purp: #512BD4;
--light-purp-hover: #4122AA;
--dark: #1F1F1F;
--dark-sec: #272727;
--dark-hover: #555;
--dark-purp: #9780e5;
--dark-purp: #9780E5;
--dark-purp-hover: #B9AAEE;
--gradient-light: linear-gradient(128.87deg,#512bd4 14.05%,#d600aa 89.3%);
--gradient-dark: linear-gradient(128.87deg, #e666cc 14.05%, #9780e5 89.3%);
--gradient-light: linear-gradient(128.87deg,#512BD4 14.05%,#D600AA 89.3%);
--gradient-dark: linear-gradient(128.87deg, #E666CC 14.05%, #9780E5 89.3%);
}

.transition {
Expand Down Expand Up @@ -44,6 +44,7 @@ header {
.nav-link {
position: relative;
padding: 0.7em 0.85em;
border-radius: 6px;
}

.navbar a.active::after {
Expand All @@ -61,6 +62,9 @@ header {
#dark-mode-toggle {
margin-right: 0.75em;
}
.navbar-nav {
margin-left: 0.75em;
}
}

h1 {
Expand Down
17 changes: 13 additions & 4 deletions wwwroot/js/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ $(document).ready(function () {
Name: $('#Name').val(),
Email: $('#Email').val(),
Message: $('#Message').val()
},
success: function (response) {
setHeader('Success');
},
error: function (xhr, status, error) {
window.location.href = "https://matias-moseley.azurewebsites.net/Error";
}
});

$('h1').slideUp(1000, function () {
$(this).text('Success').slideDown(1000, function () { });
})

setHeader('Processing');
$('#contact-form').slideUp(1000, function () { });
} else {
form.classList.add('was-validated');
Expand All @@ -41,3 +44,9 @@ $(window).on('beforeunload', function () {
$('span').removeClass('transition');
$('button[type="submit"]').removeClass('transition');
});

function setHeader(text) {
$('h1').slideUp(1000, function () {
$(this).text(text).slideDown(1000, function () { });
})
}

0 comments on commit 8dcc3d4

Please sign in to comment.