Advertisement
Guest User

Untitled

a guest
Feb 21st, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. open Html5.M
  2.  
  3. let this_title = title (pcdata "Edgar Aroutiounian's Web Page")
  4.  
  5. let image_box =
  6. div ~a:[a_id "image_box"]
  7. []
  8.  
  9. let links_box =
  10. ul ~a:[a_class ["links_bar"]; a_id "links_bar"]
  11. [li ~a:[a_id "home_click"]
  12. [pcdata "Edgar Aroutiounian | Musings and Thoughts"];
  13. li ~a:[a_id "about_click"]
  14. [pcdata "About Me"];
  15. li ~a:[a_id "blog_posts_click"]
  16. [pcdata "Blog"];
  17. li ~a:[a_id "hackathons_click"]
  18. [pcdata "Hackathons"]]
  19.  
  20. let common_footer =
  21. footer ~a:[a_id "footer_box"]
  22. [p [pcdata "This site was made with ";
  23. a ~a:[a_href "http://ocaml.org"] [pcdata "OCaml"];
  24. pcdata " and ";
  25. a ~a:[a_href "http://orgmode.org"] [pcdata "orgmode"]]]
  26.  
  27. let home_content =
  28. div
  29. [h2
  30. [pcdata "Hello Stranger"; span ~a:[a_id "ip_addr"][]];
  31. br ();
  32. p [pcdata "The entire webstack used to make this site was built \
  33. using OCaml and Emacs"
  34. ]]
  35.  
  36. let main_payload =
  37. div ~a:[a_id "payload"]
  38. [home_content]
  39.  
  40. let common_nav =
  41. nav [links_box]
  42.  
  43. let content_box =
  44. div ~a:[a_id "content_box"]
  45. [common_nav;
  46. main_payload;
  47. common_footer]
  48.  
  49. let main_script =
  50. script ~a:[a_src (Xml.uri_of_string "static/js/main.js")] (pcdata "")
  51.  
  52. let home_page_doc =
  53. html (head this_title
  54. [link ~rel:[`Stylesheet] ~href:"static/css/home.css" ();
  55. link ~rel:[`Stylesheet] ~href:"static/css/solarized_dark.css" ()])
  56. (body [image_box; content_box; main_script])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement