Skip to content

Commit

Permalink
Integrate commercial pages into Blazorise web (#4923)
Browse files Browse the repository at this point in the history
* Integrate commercial pages into Blazorise web

* Update stock images

* SEO optimizations and fixes

* Fix broken links

* Remove Target="Target.Blank"

* Main buttons selected state

* Standardize PageHeader accross all pages

* Reorganize components

* Fix Faq

* Reorganize top bar

* Temporarily disable blocks url
  • Loading branch information
stsrki authored Aug 12, 2023
1 parent a355739 commit 454a051
Show file tree
Hide file tree
Showing 110 changed files with 5,027 additions and 256 deletions.
19 changes: 19 additions & 0 deletions Documentation/Blazorise.Docs.Server/Infrastructure/EmailOptions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using Blazorise.Docs.Core;

namespace Blazorise.Docs.Server.Infrastructure;

public class EmailOptions : IEmailOptions
{
public string SmtpServer { get; set; }
public int SmtpPort { get; set; }
public string SmtpUsername { get; set; }
public string SmtpPassword { get; set; }
public bool SmtpUseSSL { get; set; }

public string FromName { get; set; }
public string FromAddress { get; set; }
public string ReplyToAddress { get; set; }

public string ThemeReviewName { get; set; }
public string ThemeReviewAddress { get; set; }
}
5 changes: 5 additions & 0 deletions Documentation/Blazorise.Docs.Server/Pages/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.11.1/tocbot.min.js"></script>

<script src="https://cdn.paddle.com/paddle/paddle.js"></script>
<script type="text/javascript">
Paddle.Setup({ vendor: 130780 });
</script>

<script src="_content/Blazorise.Animate/blazorise.animate.js?v=1.3.0.0"></script>
<script src="_content/Blazorise.Docs/blazorise.docs.min.js?v=1.3.0.0"></script>
<script src="_framework/blazor.server.js" autostart="false"></script>
Expand Down
7 changes: 7 additions & 0 deletions Documentation/Blazorise.Docs.Server/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System;
using System.IO.Compression;
using Blazorise.Bootstrap5;
using Blazorise.Docs.Core;
using Blazorise.Docs.Server.Infrastructure;
using Blazorise.Docs.Services;
using Blazorise.FluentValidation;
using Blazorise.Icons.FontAwesome;
using Blazorise.RichTextEdit;
Expand Down Expand Up @@ -56,6 +58,11 @@ public void ConfigureServices( IServiceCollection services )
services.AddScoped<Shared.Data.CountryData>();
services.AddScoped<Shared.Data.PageEntryData>();

var emailOptions = Configuration.GetSection( "Email" ).Get<EmailOptions>();
services.AddSingleton<IEmailOptions>( serviceProvider => emailOptions );

services.AddSingleton<EmailSender>();

services.AddResponseCompression( options =>
{
options.EnableForHttps = true;
Expand Down
12 changes: 12 additions & 0 deletions Documentation/Blazorise.Docs.Server/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,17 @@
"SendGrid": {
"ApiKey": "SECRET_KEY",
"ListId": "SECRET_ID"
},
"Email": {
"SmtpServer": "",
"SmtpPort": 465,
"SmtpUseSSL": true,
"SmtpUsername": "apikey",
"SmtpPassword": "",
"FromName": "Blazorise Commercial",
"FromAddress": "[email protected]",
"ReplyToAddress": "[email protected]",
"ThemeReviewName": "Blazorise Commercial",
"ThemeReviewAddress": "[email protected]"
}
}
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 454a051

Please sign in to comment.