Skip to content

Instantly share code, notes, and snippets.

@0GiS0
Last active Jun 6, 2019
Embed
What would you like to do?
@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