Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Commit

Permalink
Add more ads
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Jacobsen Work committed Apr 16, 2024
1 parent e30a42f commit 71207eb
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 3 deletions.
1 change: 1 addition & 0 deletions Client/Pages/Demo.razor
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@
Go to demo
</MudButton>
@*<iframe style="width:100%;height:85%" src="https://blazam.azurewebsites.net" />*@
<DisplayAd/>
2 changes: 1 addition & 1 deletion Client/Pages/Download.razor
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ else
</MudAlert>
}


<DisplayAd/>
@code {
[CascadingParameter]
public MainLayout Layout { get; set; }
Expand Down
26 changes: 25 additions & 1 deletion Client/Pages/Features.razor
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@
</NestedList>

</MudListItem>
<MudListItem>
<InFeedAd/>
</MudListItem>
</MudList>


Expand Down Expand Up @@ -141,6 +144,15 @@
</MudItem>


<MudItem xs="12" sm="3">
<InArticleAd />
</MudItem>
<MudItem xs="12" sm="9">

<DisplayAd/>
</MudItem>



<MudItem xs="12" sm="3">
Organize your directory from anywhere.
Expand All @@ -160,8 +172,13 @@
<VideoTile Src="/vid/page-chat.webm" />
</MudItem>

<MudItem xs="12" sm="3">
<InArticleAd />
</MudItem>
<MudItem xs="12" sm="9">


<DisplayAd />
</MudItem>

<MudItem xs="12" sm="3">
Create reusable access levels to assign to your users.
Expand All @@ -183,6 +200,13 @@
</MudItem>


<MudItem xs="12" sm="3">
<InArticleAd />
</MudItem>
<MudItem xs="12" sm="9">

<DisplayAd />
</MudItem>



Expand Down
6 changes: 5 additions & 1 deletion Client/Shared/UI/Adsense/DisplayAd.razor
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</script>
@if (Debugger.IsAttached)
{
<MudChip Color="Color.Primary">Display Ad Shown Here</MudChip>
}
15 changes: 15 additions & 0 deletions Client/Shared/UI/Adsense/InArticleAd.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6618349802202909"
crossorigin="anonymous"></script>
<ins class="adsbygoogle"
style="display:block; text-align:center;"
data-ad-layout="in-article"
data-ad-format="fluid"
data-ad-client="ca-pub-6618349802202909"
data-ad-slot="3217936450"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@if (Debugger.IsAttached)
{
<MudChip Color="Color.Tertiary">In-Article Ad Shown Here</MudChip>
}
15 changes: 15 additions & 0 deletions Client/Shared/UI/Adsense/InFeedAd.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6618349802202909"
crossorigin="anonymous"></script>
<ins class="adsbygoogle"
style="display:block"
data-ad-format="fluid"
data-ad-layout-key="-f9+5v+4m-d8+7b"
data-ad-client="ca-pub-6618349802202909"
data-ad-slot="3034103624"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@if (Debugger.IsAttached)
{
<MudChip Color="Color.Secondary">In-Feed Ad Shown Here</MudChip>
}
3 changes: 3 additions & 0 deletions Client/_Imports.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@using System.Net.Http
@using System.Net.Http.Json
@using System.Diagnostics

@using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
Expand All @@ -9,6 +11,7 @@
@using blazam.org
@using blazam.org.Shared
@using blazam.org.Shared.UI
@using blazam.org.Shared.UI.Adsense


@using MudBlazor
Expand Down

0 comments on commit 71207eb

Please sign in to comment.