-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from simeneilevstjonn/develop
beta1201a
- Loading branch information
Showing
13 changed files
with
188 additions
and
35 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
@{ | ||
Layout = "_Container"; | ||
ViewData["Title"] = "Hvordan få med en skole på FerieCountdown"; | ||
} | ||
|
||
<h1>Hvordan få med en skole på FerieCountdown</h1> | ||
|
||
<p> | ||
For å få med en skole på nettsiden må du sende inn et <a asp-controller="Home" asp-action="Contact">kontaktskjema</a> og inkludere følgende informasjon: | ||
tidspunkt for skoleslutt mandag, tirsdag, onsdag, torsdag og fredag, tidspunkt for høstferie, juleferie, vinterferie, påskeferie og sommerferie. | ||
Disse skal oppgis i UTC (Coordinated Universal Time). Du må også ha med skolenavn og kommune (for grunnskoler), fylkeskommuner (for videregående skoler) eller firmanavn (for privatskoler). | ||
<br /> | ||
Dersom du finner feil med en allerede registrert skole, ber vi deg også ta kontakt. | ||
</p> | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,121 @@ | ||
@{ | ||
@using Microsoft.AspNetCore.Identity | ||
@using FerieCountdown.Classes.Io | ||
@using System.Security.Claims; | ||
@inject SignInManager<IdentityUser> SignInManager | ||
@inject UserManager<IdentityUser> UserManager | ||
@{ | ||
ViewData["Title"] = "Hjem"; | ||
ViewData["MetaDescription"] = "FerieCountdown er nettsiden der du kan telle ned til skoleferier, slutten på skoledager, helg, bursdager, nyttår og mye mer med dager, timer, minutter og sekunder!"; | ||
} | ||
|
||
<script src="~/js/flipclock.js"></script> | ||
<link rel="stylesheet" href="~/css/flipclock.css" /> | ||
<style> | ||
body { | ||
overflow-x: hidden; | ||
@if (DateTime.UtcNow.Month == 12) | ||
{ | ||
<text> | ||
background-attachment: fixed; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
background-image: url(https://static.feriecountdown.com/resources/background/christmaslivingroom.jpg); | ||
} | ||
.welcome-heading { | ||
color: #f0eddf; | ||
} | ||
.mainpagecard { | ||
background-color: #f0eddf; | ||
</text> | ||
} | ||
} | ||
</style> | ||
|
||
|
||
<div class="text-center"> | ||
<h1 class="display-4">Velkommen til FerieCountdown beta!</h1> | ||
<p>Prøv deg litt rundt. Finner du noe som er galt eller har en idé til noe som kan bli bedre, send gjerne en mail!<br /> | ||
Bruk mailadressen: <a href="mailto:[email protected]">beta-feedback@feriecountdown.com</a> | ||
</p> | ||
<h1 class="display-4 welcome-heading">Velkommen til nye FerieCountdown!</h1> | ||
<div class="row p-2"> | ||
<div class="col col-sm-12 col-md-6 p-2"> | ||
<div class="card p-2 h-100 mainpagecard"> | ||
<h2>Hva er nytt</h2> | ||
<p> | ||
<table class="table"> | ||
<tbody> | ||
<tr> | ||
<th>Innlogging</th> | ||
<td>Du kan nå <a asp-area="Identity" asp-page="/Account/Login">lage din egen</a> FerieCountdown-Bruker</td> | ||
</tr> | ||
<tr> | ||
<th>Egne nedtellinger</th> | ||
<td>Du kan nå <a asp-area="" asp-controller="Config" asp-action="Custom">lage helt egne</a> nedtellinger til hva som helst</td> | ||
</tr> | ||
<tr> | ||
<th>Støtte for andre skoler og jobb</th> | ||
<td> | ||
Du kan nå <a asp-area="" asp-controller="Countdown" asp-action="SetLocale">velge din skole eller sette arbeidstider</a>. <a asp-area="" asp-controller="Home" asp-action="HowToIncludeSchool">Hvordan få med din skole.</a> | ||
</td> | ||
</tr> | ||
|
||
</tbody> | ||
</table> | ||
</p> | ||
</div> | ||
</div> | ||
@if (DateTime.UtcNow.Month == 12 && DateTime.UtcNow.Day < 25) | ||
{ | ||
<div class="col col-sm-12 col-md-6 p-2"> | ||
<div class="card p-2 h-100 mainpagecard"> | ||
@if (DateTime.UtcNow.Day == 24) | ||
{ | ||
<h2>Det er jul i dag!</h2> | ||
} | ||
else | ||
{ | ||
@*<h2>Det er @(24 - DateTime.UtcNow.Day) dager til jul.</h2>*@ | ||
<h2>Nedtelling til julaften</h2> | ||
<h3>I dag er det @DateTime.UtcNow.Day. desember</h3> | ||
<div class="clock" style="margin:2em;" id="clock"></div> | ||
<a asp-action="Christmaseve" asp-controller="Countdown">Se nedtelling</a> | ||
} | ||
</div> | ||
</div> | ||
} | ||
@if (SignInManager.IsSignedIn(User)) | ||
{ | ||
Dictionary<string, string> ccdData = DbMaster.GetDictionaryFromSql($"SELECT TOP (10) [Id], [CountdownText] FROM [dbo].[CustomCountdowns] WHERE [Owner] = N'{User.FindFirstValue(ClaimTypes.NameIdentifier)}' ORDER BY [CountdownTime] DESC;"); | ||
@if (ccdData.Count > 0) | ||
{ | ||
<div class="col col-sm-12 col-md-6 p-2"> | ||
<div class="card p-2 h-100 mainpagecard"> | ||
<h2>Neste egendefinerte nedtellinger</h2> | ||
@foreach (KeyValuePair<string, string> data in ccdData) | ||
{ | ||
<a href="/Countdown/Custom/@data.Key">@data.Value</a> | ||
} | ||
</div> | ||
</div> | ||
} | ||
} | ||
|
||
</div> | ||
</div> | ||
|
||
@section Scripts { | ||
<script> | ||
$(document).ready(function () { | ||
var now = new Date(); | ||
var future = new Date("2019-12-24"); | ||
var diff = future.getTime() / 1000 - now.getTime() / 1000; | ||
// Instantiate a coutdown FlipClock | ||
clock = $('.clock').FlipClock(diff, { | ||
clockFace: 'DailyCounter', | ||
countdown: true, | ||
language: 'no', | ||
stop: function () { | ||
window.location.reload(); | ||
} | ||
}); | ||
}); | ||
</script> | ||
} |
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
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
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