Skip to content

Commit

Permalink
finish minimal layout and give up fighting compiler stuff (use net5.0…
Browse files Browse the repository at this point in the history
… everywhere until fornax moved to .net 6)
  • Loading branch information
kMutagene committed Mar 6, 2023
1 parent ae4c342 commit e0e5be6
Show file tree
Hide file tree
Showing 21 changed files with 392 additions and 140 deletions.
19 changes: 10 additions & 9 deletions build/build.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>

Expand All @@ -20,15 +20,16 @@

<ItemGroup>
<PackageReference Include="BlackFox.Fake.BuildTask" Version="0.1.3" />
<PackageReference Include="Fake.Api.Github" Version="5.23.1" />
<PackageReference Include="Fake.Core.Process" Version="5.23.1" />
<PackageReference Include="Fake.Core.ReleaseNotes" Version="5.23.1" />
<PackageReference Include="Fake.Core.Target" Version="5.23.1" />
<PackageReference Include="Fake.DotNet.Cli" Version="5.23.1" />
<PackageReference Include="Fake.DotNet.MSBuild" Version="5.23.1" />
<PackageReference Include="Fake.IO.FileSystem" Version="5.23.1" />
<PackageReference Include="Fake.Tools.Git" Version="5.23.1" />
<PackageReference Include="Fake.Api.Github" Version="6.0.0" />
<PackageReference Include="Fake.Core.Process" Version="6.0.0" />
<PackageReference Include="Fake.Core.ReleaseNotes" Version="6.0.0" />
<PackageReference Include="Fake.Core.Target" Version="6.0.0" />
<PackageReference Include="Fake.DotNet.Cli" Version="6.0.0" />
<PackageReference Include="Fake.DotNet.MSBuild" Version="6.0.0" />
<PackageReference Include="Fake.IO.FileSystem" Version="6.0.0" />
<PackageReference Include="Fake.Tools.Git" Version="6.0.0" />
<PackageReference Include="Fake.Extensions.Release" Version="0.3.1" />
<PackageReference Update="FSharp.Core" Version="6.*" />
</ItemGroup>

</Project>
6 changes: 6 additions & 0 deletions client/_public/Nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="Nfdi4Plants.Fornax" value="_lib" />
</packageSources>
</configuration>
Binary file added client/_public/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions client/_public/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
215 changes: 215 additions & 0 deletions client/_public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
<html class="has-navbar-fixed-top">
<head>

<script type="text/javascript">
var wsUri = "ws://localhost:8080/websocket";
function init()
{
websocket = new WebSocket(wsUri);
websocket.onclose = function(evt) { onClose(evt) };
}
function onClose(evt)
{
console.log('closing');
websocket.close();
document.location.reload();
}
window.addEventListener("load", init, false);
</script>
<meta charSet="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>
{{SITE_TITLE}}
</title>
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon.png"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans"/>
<script defer="true" src="https://kit.fontawesome.com/0d3e0ea7a6.js" crossOrigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fslab/fslab-styles"/>
<script src="/js/navbar.js"></script>
<script src="/js/prism.js"></script>
</head>
<body>
<nav class="navbar is-fixed-top">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<img src="/images/favicon.png" alt="Logo"/>
</a>
<a class="navbar-burger" data-target="navMenu" aria-label="menu" role="button" aria-expanded="false">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navMenu" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item is-active-link-magenta smooth-hover" href="/">
Home
</a>
</div>
<div class="navbar-end">
<a class="navbar-item is-magenta" href="https://twitter.com/fslaborg">
<span class="icon">
<i class="fab fa-twitter"></i>
</span>
</a>
<a class="navbar-item is-magenta" href="https://github.com/fslaborg">
<span class="icon">
<i class="fab fa-github"></i>
</span>
</a>
</div>
</div>
</nav>
<section class="hero is-medium is-bold has-bg-magenta">
<div class="hero-body">
<div class="container has-text-centered">
<h1 class="title is-white">
{{SITE_TITLE}}
</h1>
</div>
</div>
</section>
</body>
<footer class="footer has-bg-darkmagenta">
<div class="container">
<div class="columns">
<div class="column is-4 m-4">
<div class="block">
<h3 class="subtitle is-white">
FsLab - the project incubation space for data science in F#
</h3>
</div>
<div class="block">
<p>
FsLab is only possible due to the joined forces of F# open source contributors.
</p>
</div>
<div class="block">
<p>
This website is created and maintained by individual FsLab open source contributors.
</p>
</div>
<div class="block">
<div class="icon-text is-white">
<span class="icon">
<i class="fas fa-code-branch"></i>
</span>
<span>
<a class="footer-link" href="https://github.com/fslaborg/fslaborg.github.io">
website source code
</a>
</span>
</div>
<div class="icon-text is-white">
<span class="icon">
<i class="far fa-handshake"></i>
</span>
<span>
<a class="footer-link" href="https://github.com/orgs/fslaborg/people">
fslab contributors
</a>
</span>
</div>
</div>
</div>
<div class="column is-4 m-4">
<div class="block">
<h3 class="subtitle is-white">
More
</h3>
</div>
<div class="block">
<div class="block">
<div class="icon-text is-white">
<span class="icon">
<i class="fab fa-github"></i>
</span>
<span>
<a class="footer-link" href="https://github.com/fslaborg?type=source">
the fslab organisation on github
</a>
</span>
</div>
<div class="icon-text is-white">
<span class="icon">
<i class="fab fa-twitter"></i>
</span>
<span>
<a class="footer-link" href="https://twitter.com/fslaborg">
fslab on twitter
</a>
</span>
</div>
</div>
<div class="block">
<div class="icon-text is-white">
<span class="icon">
<i class="fas fa-cubes"></i>
</span>
<span>
<a class="footer-link" href="https://fslab.org/packages.html">
endorsed packages
</a>
</span>
</div>
<div class="icon-text is-white">
<span class="icon">
<i class="fas fa-plus"></i>
</span>
<span>
<a class="footer-link" href="https://github.com/fslaborg/fslaborg.github.io#add-a-project-to-the-packages-site">
add a package to the list
</a>
</span>
</div>
</div>
<div class="block">
<div class="icon-text is-white">
<span class="icon">
<i class="fas fa-graduation-cap"></i>
</span>
<span>
<a class="footer-link" href="https://fslab.org/tutorials.html">
tutorials and learning resources
</a>
</span>
</div>
<div class="icon-text is-white">
<span class="icon">
<i class="fas fa-plus"></i>
</span>
<span>
<a class="footer-link" href="https://github.com/fslaborg/fslaborg.github.io#add-a-tutorial-guide-or-blogpost">
add tutorial content
</a>
</span>
</div>
</div>
</div>
</div>
<div class="column is-4 m-4">
<div class="block">
<h3 class="subtitle is-white">
External resources
</h3>
</div>
<div class="block">
<ul>
<li>
<a href="https://github.com/fsprojects?type=source" class="footer-link">
fsprojects - general F# project incubation space
</a>
</li>
<li>
<a href="https://fsharp.org/" class="footer-link">
fsharp.org
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</footer>
</html>
25 changes: 25 additions & 0 deletions client/_public/js/navbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
document.addEventListener('DOMContentLoaded', () => {

// Get all "navbar-burger" elements
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);

// Check if there are any navbar burgers
if ($navbarBurgers.length > 0) {

// Add a click event on each of them
$navbarBurgers.forEach(el => {
el.addEventListener('click', () => {

// Get the target from the "data-target" attribute
const target = el.dataset.target;
const $target = document.getElementById(target);

// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
el.classList.toggle('is-active');
$target.classList.toggle('is-active');

});
});
}

});
Loading

0 comments on commit e0e5be6

Please sign in to comment.