Skip to content

Commit

Permalink
finish template pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Mar 7, 2023
1 parent e0e5be6 commit 56a7d4b
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 7 deletions.
38 changes: 38 additions & 0 deletions client/_public/images/logo-rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 41 additions & 4 deletions client/_public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,51 @@
</div>
</div>
</nav>
<section class="hero is-medium is-bold has-bg-magenta">
<section class="hero is-medium has-bg-magenta">
<div class="hero-body">
<div class="container has-text-centered">
<h1 class="title is-white">
{{SITE_TITLE}}
<div class="container has-text-justified">
<div class="main-TextField">
<div class="media mb-4">
<div class="media-left">
<figure class="image is-128x128">
<img id="logo-square" class="is-rounded" src="/images/logo-rounded.svg"/>
</figure>
</div>
<div class="media-content">
<h1 class="main-title is-capitalized is-white is-inline-block is-strongly-emphasized-darkmagenta mb-4">
{{SITE_TITLE}}
</h1>
</div>
</div>
<div class="block">
<h1 class="title is-size-3 is-capitalized is-white is-block">
Welcome to the FsLab template for fornax!
</h1>
</div>
<div class="content is-white is-size-4">
<div class="block is-white">
Get started by adding some sections below for your project {{SITE_TITLE}}
</div>
</div>
</div>
</div>
</div>
</section>
<section>
<div class="container has-text-justified">
<div class="main-TextField">
<h1 class="title">
here is some code, isn't that nice?
</h1>
</div>
</div>
<div class="container">
<div class="main-TextField">
<code class="language-fsharp">
printfn "hello world"
</code>
</div>
</div>
</section>
</body>
<footer class="footer has-bg-darkmagenta">
Expand Down
39 changes: 36 additions & 3 deletions client/generators/index.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,43 @@ open Html

let generate' (ctx : SiteContents) (_: string) =
Layout.layout ctx "Home" [
section [Class "hero is-medium is-bold has-bg-magenta"] [
section [Class "hero is-medium has-bg-magenta"] [
div [Class "hero-body"] [
div [Class "container has-text-centered"] [
h1 [Class "title is-white"] [!!"{{SITE_TITLE}}"]
div [Class "container has-text-justified"] [
div [Class "main-TextField"] [
div [Class "media mb-4"] [
div [Class "media-left"] [
figure [Class "image is-128x128"] [
img [Id "logo-square"; Class "is-rounded" ; Src (Globals.prefixUrl "images/logo-rounded.svg")]
]
]
div [Class "media-content"] [
h1 [Class "main-title is-capitalized is-white is-inline-block is-strongly-emphasized-darkmagenta mb-4"] [!! "{{SITE_TITLE}}"]
]
]
div [Class "block"] [
h1 [Class "title is-size-3 is-capitalized is-white is-block"] [!! "Welcome to the FsLab template for fornax!"]
]
div [Class "content is-white is-size-4"] [
div [Class "block is-white"] [
!! "Get started by adding some sections below for your project {{SITE_TITLE}}"
]
]
]
]
]
]
section [] [
div [Class "container has-text-justified"] [
div [Class "main-TextField"] [
h1 [Class "title"] [!!"here is some code, isn't that nice?"]
]
]
div [Class "container"] [
div [Class "main-TextField"] [
code [Class "language-fsharp"] [
!! "printfn \"hello world\""
]
]
]
]
Expand Down
38 changes: 38 additions & 0 deletions client/images/logo-rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 56a7d4b

Please sign in to comment.