Skip to content

Commit

Permalink
#10 Created new page for intern position and added extra section to C…
Browse files Browse the repository at this point in the history
…areers page
  • Loading branch information
erolaliyev committed Feb 2, 2021
1 parent 50831fd commit ca21aea
Show file tree
Hide file tree
Showing 6 changed files with 660 additions and 360 deletions.
16 changes: 15 additions & 1 deletion src/Hosted/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type EndPoint =
| [<EndPoint "GET /">] Consulting
| [<EndPoint "GET /careers">] Careers
| [<EndPoint "GET /openPosition">] OpenPosition
| [<EndPoint "GET /internPosition">] InternPosition
| [<EndPoint "GET /404.html">] Error404
| [<EndPoint "GET /debug">] Debug

Expand Down Expand Up @@ -384,7 +385,7 @@ module Site =
type ConsultingTemplate = Templating.Template<"../Hosted/consulting.html", serverLoad=Templating.ServerLoad.WhenChanged>
type CareersTemplate = Templating.Template<"../Hosted/careers.html", serverLoad=Templating.ServerLoad.WhenChanged>
type OpenPositionTemplate = Templating.Template<"../Hosted/openPosition.html", serverLoad=Templating.ServerLoad.WhenChanged>

type InternPositionTemplate = Templating.Template<"../Hosted/internPosition.html", serverLoad=Templating.ServerLoad.WhenChanged>

type [<CLIMutable>] RawConfig =
{
Expand Down Expand Up @@ -1011,6 +1012,16 @@ module Site =
.Footer(MainTemplate.Footer().Doc())
.Cookie(Cookies.Banner false)
.Doc()
|>Content.Page
let INTERNPOSITION () =
InternPositionTemplate()
#if !DEBUG
.ReleaseMin(".min")
#endif
.MenuBar(menubar config.Value)
.Footer(MainTemplate.Footer().Doc())
.Cookie(Cookies.Banner false)
.Doc()
|>Content.Page
// pageNo is 1-based
let BLOG_LISTING (banner: Doc) (pageNo: int) f =
Expand Down Expand Up @@ -1268,6 +1279,8 @@ module Site =
CAREERS()
| OpenPosition ->
OPENPOSITION()
| InternPosition ->
INTERNPOSITION()
| Error404 ->
Content.File("../Hosted/404.html", AllowOutsideRootFolder=true)
| Debug ->
Expand Down Expand Up @@ -1378,6 +1391,7 @@ type Website() =
Consulting
Careers
OpenPosition
InternPosition
]

[<assembly: Website(typeof<Website>)>]
Expand Down
Binary file added src/Hosted/assets/careers-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Hosted/assets/intern-position-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ca21aea

Please sign in to comment.