Skip to content

Commit 70e9f4f

Browse files
authored
Remove the 20 years of .NET banner (#9023)
Addresses https://github.com/NuGet/Engineering/issues/4267
1 parent b0e5d16 commit 70e9f4f

13 files changed

Lines changed: 0 additions & 176 deletions

File tree

src/AccountDeleter/EmptyFeatureFlagService.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@ public bool IsDisplayVulnerabilitiesEnabled()
8686
throw new NotImplementedException();
8787
}
8888

89-
public bool IsDotnet20BannerEnabled()
90-
{
91-
throw new NotImplementedException();
92-
}
93-
9489
public bool IsForceFlatContainerIconsEnabled()
9590
{
9691
throw new NotImplementedException();

src/Bootstrap/dist/css/bootstrap-theme.css

Lines changed: 0 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Bootstrap/less/theme/page-home.less

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -14,67 +14,6 @@
1414
margin-top: 32px;
1515
}
1616

17-
.dotnet-20-banner {
18-
.dotnet-20-image {
19-
position: absolute;
20-
top: 0;
21-
left: 0;
22-
height: 100%;
23-
width: 100%;
24-
25-
img {
26-
height: 100%;
27-
width: 100%;
28-
object-fit: cover;
29-
background-color: #000;
30-
}
31-
}
32-
33-
.container {
34-
.row {
35-
color: white;
36-
37-
@media (max-width: @screen-md-max) {
38-
margin-top: 48px;
39-
margin-bottom: 48px;
40-
}
41-
42-
@media (min-width: @screen-md-max) {
43-
margin-top: 144px;
44-
margin-bottom: 144px;
45-
}
46-
47-
.banner-text {
48-
backdrop-filter: blur(2px);
49-
50-
h2 {
51-
margin-top: 0px;
52-
font-weight: 600;
53-
}
54-
55-
h3 {
56-
margin-top: 0px;
57-
font-weight: 400;
58-
}
59-
60-
a {
61-
padding: 5px 12px 5px 12px;
62-
border: 1px solid white;
63-
color: white;
64-
font-weight: 600;
65-
}
66-
67-
a:focus {
68-
outline-color: #fff;
69-
outline-style: dashed;
70-
outline-width: 2px;
71-
outline-offset: 3px;
72-
}
73-
}
74-
}
75-
}
76-
}
77-
7817
.what-is-nuget {
7918
font-size: 1.15em;
8019
padding-bottom: 75px;

src/GitHubVulnerabilities2Db/Fakes/FakeFeatureFlagService.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,5 @@ public bool IsRecentPackagesNoIndexEnabled()
274274
{
275275
throw new NotImplementedException();
276276
}
277-
278-
public bool IsDotnet20BannerEnabled()
279-
{
280-
throw new NotImplementedException();
281-
}
282277
}
283278
}

src/NuGetGallery.Services/Configuration/FeatureFlagService.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public class FeatureFlagService : IFeatureFlagService
4040
private const string GravatarProxyEnSubdomainFeatureName = GalleryPrefix + "GravatarProxyEnSubdomain";
4141
private const string ODataCacheDurationsFeatureName = GalleryPrefix + "ODataCacheDurations";
4242
private const string ShowEnable2FADialog = GalleryPrefix + "ShowEnable2FADialog";
43-
private const string ShowDotnet20Banner = GalleryPrefix + "ShowDotnet20Banner";
4443
private const string Get2FADismissFeedback = GalleryPrefix + "Get2FADismissFeedback";
4544
private const string PackageRenamesFeatureName = GalleryPrefix + "PackageRenames";
4645
private const string PatternSetTfmHeuristicsFeatureName = GalleryPrefix + "PatternSetTfmHeuristics";
@@ -229,11 +228,6 @@ public bool IsShowEnable2FADialogEnabled()
229228
return _client.IsEnabled(ShowEnable2FADialog, defaultValue: false);
230229
}
231230

232-
public bool IsDotnet20BannerEnabled()
233-
{
234-
return _client.IsEnabled(ShowDotnet20Banner, defaultValue: false);
235-
}
236-
237231
public bool IsGet2FADismissFeedbackEnabled()
238232
{
239233
return _client.IsEnabled(Get2FADismissFeedback, defaultValue: false);

src/NuGetGallery.Services/Configuration/IFeatureFlagService.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,5 @@ public interface IFeatureFlagService
291291
/// Whether or not recent packages has no index applied to block search engine indexing.
292292
/// </summary>
293293
bool IsRecentPackagesNoIndexEnabled();
294-
295-
/// <summary>
296-
/// Whether to show the banner announcing .NET's 20 year celebration.
297-
/// </summary>
298-
/// <returns></returns>
299-
bool IsDotnet20BannerEnabled();
300294
}
301295
}

src/NuGetGallery/App_Data/Files/Content/flags.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"NuGetGallery.ImageAllowlist": "Enabled",
3333
"NuGetGallery.ShowReportAbuseSafetyChanges": "Enabled",
3434
"NuGetGallery.ComputeTargetFramework": "Enabled",
35-
"NuGetGallery.ShowDotnet20Banner": "Enabled"
3635
},
3736
"Flights": {
3837
"NuGetGallery.TyposquattingFlight": {

src/NuGetGallery/Content/gallery/img/dotnet-20-banner.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/NuGetGallery/Controllers/PagesController.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,12 @@ public virtual ActionResult Home()
122122
var externalIdentityList = ClaimsExtensions.GetExternalCredentialIdentityList(identity);
123123
var showEnable2FAModal = _featureFlagService.IsShowEnable2FADialogEnabled();
124124
var getFeedbackOnModalDismiss = _featureFlagService.IsGet2FADismissFeedbackEnabled();
125-
var showDotnet20Banner = _featureFlagService.IsDotnet20BannerEnabled();
126125

127126
return View(new GalleryHomeViewModel(
128127
showTransformModal,
129128
transformIntoOrganization,
130129
showEnable2FAModal,
131130
getFeedbackOnModalDismiss,
132-
showDotnet20Banner,
133131
externalIdentityList));
134132
}
135133

src/NuGetGallery/NuGetGallery.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,6 @@
13511351
<Content Include="Content\gallery\img\circuit-board.svg" />
13521352
<Content Include="Content\gallery\img\default-package-icon-256x256.png" />
13531353
<Content Include="Content\gallery\img\default-package-icon.svg" />
1354-
<Content Include="Content\gallery\img\dotnet-20-banner.svg" />
13551354
<Content Include="Content\gallery\img\dotnet-foundation-42x42.png" />
13561355
<Content Include="Content\gallery\img\dotnet-foundation.svg" />
13571356
<Content Include="Content\gallery\img\facebook-24x24.png" />

0 commit comments

Comments
 (0)