Browse Source

Merge pull request #123 from onurpicakci/onur/bugfix

About page added
pull/124/head
Berkan Sasmaz 4 years ago
committed by GitHub
parent
commit
96c21e848b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      src/EventHub.Web.Theme/Themes/EventHub/Components/Footer/Default.cshtml
  2. 3
      src/EventHub.Web.Theme/Themes/EventHub/Components/MainNavbar/Default.cshtml
  3. 43
      src/EventHub.Web/Pages/Abouts/Index.cshtml
  4. 11
      src/EventHub.Web/Pages/Abouts/Index.cshtml.cs
  5. 4
      src/EventHub.Web/Pages/Abouts/Index.css

10
src/EventHub.Web.Theme/Themes/EventHub/Components/Footer/Default.cshtml

@ -1,11 +1,14 @@
@using Microsoft.AspNetCore.Http.Extensions
@using Microsoft.Extensions.Options
@using Volo.Abp.Users
@using EventHub.Web
@using System.Net
@using EventHub.Web
@using EventHub.Options
@inject ICurrentUser CurrentUser
@inject IOptions<EventHubUrlOptions> UrlOptions
@{
var currentPageUrl = Context.Request.GetDisplayUrl();
}
<footer class="mt-5">
<div class="container">
@ -51,7 +54,10 @@
<div class="container">
<div class="row">
<div class="col-md-auto">
<span class="copyright">© 2021 EventHub</span>
<span class="copyright">© 2021 - @DateTime.Now.Year © <a>OpenEventHub</a></span>
<div>
<span class="copyright">Open source license with <a href="https://github.com/abpframework/eventhub/blob/main/LICENSE">LGPLv3.0</a></span>
</div>
</div>
<div class="col-md text-center text-md-end">
<a href="@UrlOptions.Value.Www/terms-service">

3
src/EventHub.Web.Theme/Themes/EventHub/Components/MainNavbar/Default.cshtml

@ -40,6 +40,9 @@
<li class="nav-item @(GetPageActiveClassOrEmpty(ViewContext, "/organizations/index"))">
<a class="nav-link" href="@UrlOptions.Value.Www/organizations">Organizations</a>
</li>
<li class="nav-item @(GetPageActiveClassOrEmpty(ViewContext, "/abouts/index"))">
<a class="nav-link" href="@UrlOptions.Value.Www/abouts">About</a>
</li>
</ul>
@if (UrlOptions.Value.Www.Contains(Context.Request.Host.ToString()))
{

43
src/EventHub.Web/Pages/Abouts/Index.cshtml

@ -0,0 +1,43 @@
@page "/abouts"
@section styles{
<abp-style-bundle>
<abp-style src="/Pages/Abouts/Index.css"/>
</abp-style-bundle>
}
<div class="container-fluid p-0">
<div class="inner-banner">
<div class="container">
<div class="row align-items-center" style="min-height: 250px;">
<div class="col">
<h1>About</h1>
<nav aria-label="breadcrumb" class="breadcrumb-container">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="@Url.Page("/Index")">Home</a>
</li>
<li class="breadcrumb-item active" aria-current="page">About</li>
</ol>
</nav>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row text-center">
<div class="col-md-8 mx-auto">
<h1 class="mb-2 mt-4">ABP Framework</h1>
<p>ABP Framework is a complete infrastructure to create modern web applications by following the best practices and conventions of software development.</p>
<a class="btn btn-primary" target="_blank" href="https://abp.io">abp.io</a>
<hr class="my-5"/>
<h1 class="mb-4">How the eventhub.com was Created?</h1>
<p>EventHub is a reference project showing how real-world examples are implemented with the open source ABP Framework. </p>
<p>Click the button below to check out the source-code of this project and have detailed information about it.</p>
<a class="btn btn-secondary mb-3" href="https://github.com/abpframework/eventhub" target="_blank" rel="noopener">
<i class="fas fa-code me-2"></i> SOURCE CODE
</a>
</div>
</div>
</div>

11
src/EventHub.Web/Pages/Abouts/Index.cshtml.cs

@ -0,0 +1,11 @@
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace EventHub.Web.Pages.Abouts;
public class Index : EventHubPageModel
{
public void OnGet()
{
}
}

4
src/EventHub.Web/Pages/Abouts/Index.css

@ -0,0 +1,4 @@
.btn.btn-secondary {
color: #fff !important;
background-color: #6457c1 !important;
}
Loading…
Cancel
Save