Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Social media page updates #980

Merged
merged 4 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Gov.News.WebApp/Controllers/DefaultController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,13 @@ public async Task<ConnectViewModel> GetConnectModel()
new Link() { Url = "https://www.instagram.com/roadsafetybc/", Title = "Road Safety BC", Summary = "" },
new Link() { Url = "https://www.instagram.com/_healthy_bc/", Title = "HealthyBC", Summary = "" },
new Link() { Url = "https://www.instagram.com/EatDrinkBuyBC/", Title = "Buy BC", Summary = "" },
new Link() { Url = "https://www.instagram.com/bcpublicservice/", Title = "BC Public Service Agency", Summary = "" },
}.OrderBy(t => t.Title).Prepend(new Link() { Url = "https://www.instagram.com/governmentofbc/", Title = "Government of BC", Summary = "" }).ToArray();

model.ThreadsLinks = new Link[]
{
}.OrderBy(t => t.Title).Prepend(new Link() { Url = "https://www.threads.net/@governmentofbc", Title = "Government of BC", Summary = "" }).ToArray();

model.BlogsLinks = new Link[]
{
new Link() { Url = "https://www.britishcolumbia.ca/about-trade-and-invest-bc/news-stories/", Title = "BC Trade and Invest" },
Expand Down
1 change: 1 addition & 0 deletions Gov.News.WebApp/Models/ConnectViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class ExternalConnectLink
public ExternalConnectLink[] RssLinks { get; set; }
public ExternalConnectLink[] TwitterLinks { get; set; }
public ExternalConnectLink[] InstagramLinks { get; set; }
public ExternalConnectLink[] ThreadsLinks { get; set; }
public ExternalConnectLink[] WeiboLinks { get; set; }
public ExternalConnectLink[] LinkedinLinks { get; set; }
}
Expand Down
6 changes: 3 additions & 3 deletions Gov.News.WebApp/Views/Default/CommContacts.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@
</div>

<div class="col-xs-12 col-sm-4">
<span class="contact-name">Jawad Siddiqui</span>
<span class="contact-name">Esme Mills</span>
<div>
<span>Direct: 250-413-7156</span>
<span>Direct: 250-896-4891</span>
</div>
<a href="mailto:Jawad.Siddiqui@gov.bc.ca">Jawad.Siddiqui@gov.bc.ca</a><br />
<a href="mailto:Esme.Mills@gov.bc.ca">Esme.Mills@gov.bc.ca</a><br />
</div>

<div class="col-xs-12 col-sm-4">
Expand Down
29 changes: 29 additions & 0 deletions Gov.News.WebApp/Views/Default/ConnectView.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,35 @@
}
</div>
</div>
@{
bool expandableThreads = Model.ThreadsLinks.Count() >= 5;
}
<div class="expandable-section instagram @(expandableThreads ? "collapsed" : "expanded" )">
<a name="threads"></a>
<h3>Find us on Threads <i class="fa-brands fa-square-threads pull-right" aria-hidden="true"></i></h3>
<div class="expandable-section-content">
<div class="expander-body">
@if (Model.ThreadsLinks != null && Model.ThreadsLinks.Any())
{
<ul class="external-links">
@foreach (var link in Model.ThreadsLinks)
{
<li><a href="@link.Url">@link.Title</a> <span>@link.Summary</span></li>
}
</ul>
}
@if (expandableThreads)
{
<div class="article-fade"> </div>
}
</div>
@if (@expandableThreads)
{
<a href="#" class="link-button expand">Expand Threads List</a>
<a href="#" class="link-button collapse">Contract Threads List</a>
}
</div>
</div>
@{bool expandableWeibo = Model.WeiboLinks.Count() >= 5;}
<div class="expandable-section weibo @(expandableWeibo ? "collapsed" : "expanded" )">
<a name="weibo"></a>
Expand Down
Loading