Skip to content

Commit c21ca57

Browse files
author
Ruby Fleener
committed
First commit
0 parents  commit c21ca57

File tree

103 files changed

+38539
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+38539
-0
lines changed

.gitignore

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
*.swp
2+
*.*~
3+
project.lock.json
4+
.DS_Store
5+
*.pyc
6+
nupkg/
7+
8+
# Visual Studio Code
9+
.vscode
10+
11+
# User-specific files
12+
*.suo
13+
*.user
14+
*.userosscache
15+
*.sln.docstates
16+
17+
# Build results
18+
[Dd]ebug/
19+
[Dd]ebugPublic/
20+
[Rr]elease/
21+
[Rr]eleases/
22+
x64/
23+
x86/
24+
build/
25+
bld/
26+
[Bb]in/
27+
[Oo]bj/
28+
[Oo]ut/
29+
msbuild.log
30+
msbuild.err
31+
msbuild.wrn
32+
33+
# Visual Studio 2015
34+
.vs/
35+
36+
# HorseStrap
37+
node_modules
38+
.idea
39+
horse.js
40+
horse.js.map
41+
wwwroot/css/styles.css

HorseStrap.csproj

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netcoreapp2.1</TargetFramework>
5+
<HorseRoot></HorseRoot>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<PackageReference Include="Microsoft.AspNetCore.App" />
10+
</ItemGroup>
11+
12+
<Target Name="NpmInstall" BeforeTargets="Build" Condition=" !Exists('$(HorseRoot)node_modules') ">
13+
<Message Importance="high" Text="Running npm install. You'll be horsing around in no time..." />
14+
<Exec Command="npm install" />
15+
</Target>
16+
17+
<Target Name="BuildCSS" BeforeTargets="Build">
18+
<Exec Command="npm run build-css" ContinueOnError="true">
19+
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
20+
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
21+
</Exec>
22+
</Target>
23+
24+
</Project>

Pages/Index.cshtml

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
@page
2+
@{
3+
ViewData["Title"] = "SGF Web Devs";
4+
}
5+
6+
<div class="main">
7+
<div class="section_1">
8+
<div class="item-01">
9+
<img src="/images/Logo.svg" alt="SGF Web Devs">
10+
</div>
11+
<div class="item-02">
12+
<img src="/images/dub.svg" alt="W">
13+
</div>
14+
<div class="item-03">
15+
16+
</div>
17+
<div class="item-04 active">
18+
<a class="btn" href="#open-modal"><img src="/images/Download Icon.svg" alt="download"></a>
19+
</div>
20+
<div id="open-modal" class="modal-window">
21+
<header>
22+
<div class="flex">
23+
<img src="/images/Logo.svg">
24+
<a href="#" title="Close" class="modal-close">Close</a>
25+
</div>
26+
<h1>Download Our App</h1>
27+
<!-- <div class="content">
28+
<img src="/images/content.png" style ="height:100px;"alt="app"></div>
29+
</div> -->
30+
</header>
31+
</div>
32+
<div class="item-05">
33+
34+
</div>
35+
<div class="item-06">
36+
37+
</div>
38+
<div class="item-07">
39+
<img src="/images/vub.svg" alt="V">
40+
</div>
41+
<div class="item-08">
42+
43+
</div>
44+
<div class="item-09 active">
45+
<img src="/images/Pizza Icon.svg" alt="Za">
46+
</div>
47+
</div>
48+
<div class="section_2">
49+
<div class="item-10 active">
50+
<img src="/images/Event Icon.svg" alt="calendar">
51+
</div>
52+
<div class="item-11">
53+
54+
</div>
55+
<div class="item-12">
56+
<div class="nested active">
57+
<a href="https://www.twitch.tv/sgfwebdevs"><img src="/images/twitch.svg" alt="twitch"></a>
58+
</div>
59+
<div class="nested active">
60+
<a href="https://twitter.com/sgfwebdevs"><img src="/images/twitter.svg" alt="twitter"></a>
61+
</div>
62+
<div class="nested active">
63+
<a href="https://www.youtube.com/c/sgfwebdevs/videos"><img src="/images/youtube play.svg" alt="youtube"></a>
64+
</div>
65+
<div class="nested active">
66+
<a href="https://github.com/sgf-web-devs/SGF-Web-Devs"><img src="/images/github.svg" alt="git"></a>
67+
</div>
68+
<div class="nested active">
69+
<a href="https://www.facebook.com/groups/837398662948655/"><img src="/images/facebook f.svg" alt="fbook"></a>
70+
</div>
71+
<div class="nested active">
72+
<a href="https://slack.com/"><img src="/images/slack.svg" alt="slack"></a>
73+
</div>
74+
<div class="nested_empty">
75+
76+
</div>
77+
<div class="nested active">
78+
<a href="https://www.meetup.com/SGF-Web-Devs/"><img src="/images/meetup.svg" alt="meetup"></a>
79+
</div>
80+
</div>
81+
<div class="item-13">
82+
83+
</div>
84+
<div class="item-14">
85+
86+
</div>
87+
<div class="item-15">
88+
89+
</div>
90+
<div class="item-16">
91+
92+
</div>
93+
94+
</div>
95+
</div>

Pages/Index.cshtml.cs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using Microsoft.AspNetCore.Mvc;
6+
using Microsoft.AspNetCore.Mvc.RazorPages;
7+
8+
namespace CareToLearnUI.Pages
9+
{
10+
public class IndexModel : PageModel
11+
{
12+
public void OnGet()
13+
{
14+
}
15+
}
16+
}

Pages/_Layout.cshtml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>@ViewData["Title"]</title>
7+
8+
<environment exclude="Development">
9+
<link rel="stylesheet" href="~/css/styles.css" asp-append-version="true" />
10+
</environment>
11+
12+
@RenderSection("TopScripts", required: false)
13+
14+
15+
</head>
16+
<body>
17+
18+
@RenderBody()
19+
20+
<script src="~/lib/jquery/dist/jquery.js"></script>
21+
<script src="~/js/plugins.js" asp-append-version="true"></script>
22+
<script src="~/js/main.js" asp-append-version="true"></script>
23+
24+
<environment include="Development">
25+
<script src="~/horse.js"></script>
26+
</environment>
27+
28+
@RenderSection("Scripts", required: false)
29+
30+
</body>
31+
</html>

Pages/_ViewImports.cshtml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@using CareToLearnUI
2+
@namespace CareToLearnUI.Pages
3+
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

Pages/_ViewStart.cshtml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@{
2+
Layout = "_Layout";
3+
}

Program.cs

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Linq;
5+
using System.Threading.Tasks;
6+
using Microsoft.AspNetCore;
7+
using Microsoft.AspNetCore.Hosting;
8+
using Microsoft.Extensions.Configuration;
9+
using Microsoft.Extensions.Logging;
10+
11+
namespace CareToLearnUI
12+
{
13+
public class Program
14+
{
15+
public static void Main(string[] args)
16+
{
17+
BuildWebHost(args).Run();
18+
}
19+
20+
public static IWebHost BuildWebHost(string[] args) =>
21+
WebHost.CreateDefaultBuilder(args)
22+
.UseStartup<Startup>()
23+
.Build();
24+
}
25+
}

Properties/launchSettings.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"profiles": {
3+
"Kestrel": {
4+
"commandName": "Project",
5+
"launchBrowser": true,
6+
"applicationUrl": "https://localhost:5001;http://localhost:5000",
7+
"environmentVariables": {
8+
"ASPNETCORE_ENVIRONMENT": "Development"
9+
}
10+
}
11+
}
12+
}

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# HorseStrap
2+
3+
![alternativetext](https://horsestrap.com/images/nily.svg)
4+
5+
Requirements are
6+
7+
- .NET Core 2.x
8+
- NodeJS(>=8)
9+
10+
To download .NET Core, grab the runtime
11+
12+
Mac - https://www.microsoft.com/net/download/macos
13+
Windows - https://www.microsoft.com/net/download/windows/build
14+
15+
Install and confirm you have access to it globally by running `dotnet --version`
16+
You shoudl be running 2.1 or greater.
17+
18+
As long as Node is installed as well, you shoudl be good to roll.
19+
20+
CD into the project folder and run `dotnet run` which will start the Kestel web server and automatically open the site in your browser.
21+
22+
The site is available at at localhost:3000 through BrowserSync which is proxying the .NET Core app from https://localhost:5001. Instructions on how to tweak these ports coming soon.
23+
24+
Styles are located at ~/assets/sass/ and updates to them will be automatically be injected via WebPack. Changes to any Razor(.cshtml) files will trigger a browser refresh through BrowerSync. This will result in far fewer manual browser refreshing.

Startup.cs

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using Microsoft.AspNetCore.Builder;
6+
using Microsoft.AspNetCore.Hosting;
7+
using Microsoft.AspNetCore.SpaServices.Webpack;
8+
using Microsoft.Extensions.Configuration;
9+
using Microsoft.Extensions.DependencyInjection;
10+
11+
namespace CareToLearnUI
12+
{
13+
public class Startup
14+
{
15+
public Startup(IConfiguration configuration)
16+
{
17+
Configuration = configuration;
18+
}
19+
20+
public IConfiguration Configuration { get; }
21+
22+
// This method gets called by the runtime. Use this method to add services to the container.
23+
public void ConfigureServices(IServiceCollection services)
24+
{
25+
services.AddMvc();
26+
}
27+
28+
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
29+
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
30+
{
31+
if (env.IsDevelopment())
32+
{
33+
app.UseDeveloperExceptionPage();
34+
app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions
35+
{
36+
HotModuleReplacement = true,
37+
ConfigFile = "webpack.horse.js"
38+
});
39+
}
40+
else
41+
{
42+
app.UseExceptionHandler("/Error");
43+
}
44+
45+
app.UseStaticFiles();
46+
47+
app.UseMvc();
48+
}
49+
}
50+
}

appsettings.Development.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"Logging": {
3+
"IncludeScopes": false,
4+
"LogLevel": {
5+
"Default": "Debug",
6+
"System": "Information",
7+
"Microsoft": "Information"
8+
}
9+
}
10+
}

appsettings.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"Logging": {
3+
"IncludeScopes": false,
4+
"LogLevel": {
5+
"Default": "Warning"
6+
}
7+
}
8+
}

assets/sass/_shame.scss

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// IE Haxorz
2+
3+
// An IE 11 specific style hack
4+
@media all and (-ms-high-contrast:none)
5+
{
6+
//*::-ms-backdrop, .merchandise-item.grid-fallback .content-details { min-height: 190px; }
7+
}
8+
9+
// And now a video hack for the home page, cuz object-fit is no beuno
10+
@media all and (-ms-high-contrast:none)
11+
{
12+
//*::-ms-backdrop, .header-video video { height: auto; }
13+
}
14+
15+
// Edge specific styling
16+
@supports (-ms-ime-align:auto) {
17+
18+
}

assets/sass/animations/_index.scss

Whitespace-only changes.

0 commit comments

Comments
 (0)