Last active
June 6, 2019 19:17
-
-
Save 0GiS0/e8a0d7ee37ee15f6c15de228e5acb2ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Microsoft.Extensions.Configuration | |
@inject IConfiguration Configuration | |
@addTagHelper *, Microsoft.FeatureManagement.AspNetCore | |
<style> | |
#welcome { | |
background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(https://live.staticflickr.com/1937/30715340707_d0696024c8_k.jpg); | |
} | |
#home { | |
background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(https://live.staticflickr.com/4544/27053562599_40e1815d95_k.jpg); | |
} | |
#about { | |
background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(@Configuration["AppConfigurationDemo:Index:AboutImage"]); | |
} | |
#services { | |
background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(https://live.staticflickr.com/8159/7621350242_651e97333b_k.jpg); | |
} | |
#contact { | |
background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(https://live.staticflickr.com/4072/4528977836_c4acfcaf88_b.jpg); | |
} | |
</style> | |
<div id="nav" class="nav"> | |
<ul> | |
<li><a href="#home">@Configuration["AppConfigurationDemo:Index:HomeTitle"]</a></li> | |
<li><a href="#about">About</a></li> | |
<li><a href="#services">Services</a></li> | |
<li><a href="#contact">Contact</a></li> | |
</ul> | |
</div> | |
<div class="container"> | |
<feature name="WelcomeSection"> | |
<div id="welcome" class="bg"> | |
<div> | |
<h1>Hello World!</h1> | |
<span>Feature enabled</span> | |
</div> | |
</div> | |
</feature> | |
<div id="home" class="bg"> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment