diff --git a/asset/policies/logos/OCaml_Sticker_darkmode.svg b/asset/policies/logos/OCaml_Sticker_darkmode.svg new file mode 100644 index 0000000000..98d3dc20f2 --- /dev/null +++ b/asset/policies/logos/OCaml_Sticker_darkmode.svg @@ -0,0 +1,116 @@ + + + \ No newline at end of file diff --git a/src/ocamlorg_frontend/css/partials/tags.css b/src/ocamlorg_frontend/css/partials/tags.css index e7cf7fbea6..362d8a5fed 100644 --- a/src/ocamlorg_frontend/css/partials/tags.css +++ b/src/ocamlorg_frontend/css/partials/tags.css @@ -1,3 +1,3 @@ .tag { - @apply text-blue-500 h-8 inline-flex items-center text-sm px-3 border border-blue-500 rounded-3xl mr-2 mb-2 whitespace-nowrap; + @apply text-primary dark:text-dark-primary h-8 inline-flex items-center text-sm px-3 border border-primary dark:border-dark-primary bg-primary_25 dark:bg-dark-primary_10 rounded-md mr-2 mb-2 whitespace-nowrap; } \ No newline at end of file diff --git a/src/ocamlorg_frontend/css/styles.css b/src/ocamlorg_frontend/css/styles.css index 50a8389782..24fc59f6ce 100644 --- a/src/ocamlorg_frontend/css/styles.css +++ b/src/ocamlorg_frontend/css/styles.css @@ -136,6 +136,11 @@ body { padding: 0.2rem 0rem; } +.dark :is(h1:target, h2:target, h3:target, h4:target, h5:target, h6:target) { + background:#003357; + padding: 0.2rem 0rem; +} + .prose :is(h1, h2, h3, h4, h5, h6)[id]:hover::before { content: " "; @apply absolute top-0 h-full border-l-4 border-gray-400 -ml-3; diff --git a/src/ocamlorg_frontend/pages/install.eml b/src/ocamlorg_frontend/pages/install.eml index e11da4cf48..daa4d93419 100644 --- a/src/ocamlorg_frontend/pages/install.eml +++ b/src/ocamlorg_frontend/pages/install.eml @@ -6,17 +6,24 @@ Layout.render ~canonical:"" @@
If you need more explicit instructions than provided on this quick-install page, you can find a more detailed explanation of the installation process here.
@@ -25,7 +32,7 @@ Layout.renderCongratulations, you have now installed OCaml!
@@ -107,7 +114,7 @@ Layout.render
The logo should be linked to the OCaml website, ocaml.org. The logo is available in several formats and colors (e.g. adapt the width
or change the part after logo/
to match the one of the file you want in the repository).
The following SVG file is suitable to make stickers. It is released under the same liberal license as the logo so do not hesitate to print your own stickers to promote OCaml!
svg |
diff --git a/src/ocamlorg_frontend/pages/page.eml b/src/ocamlorg_frontend/pages/page.eml index a6c3ca1618..29b0541139 100644 --- a/src/ocamlorg_frontend/pages/page.eml +++ b/src/ocamlorg_frontend/pages/page.eml @@ -1,17 +1,17 @@ let render ~title ~description ~meta_title ~meta_description ~content ~canonical = Layout.render ~title:meta_title ~description:meta_description ~canonical @@ -<%s! description %>
+<%s! description %>
+
With its strong academic roots, OCaml is known to be a spearhead in the development of Programming Language Theory. This page contains a selection of papers that have influenced OCaml and other functional programming languages.
Title | Years | @@ -84,34 +84,36 @@ Layout.render||||||
---|---|---|---|---|---|---|---|
-
+
<%s paper.title %>
-
+
<%s paper.abstract %>
|
- + | <%i paper.year %> | -+ |
<% paper.tags |> List.iter (fun (tag : string) -> %>
+ class="tag">
<%s tag %>
<% ); %>
|
- - <%s String.concat ", " paper.authors %> + |
+ <% paper.authors |> List.iter (fun (author) -> %>
+ |
<% paper.links |> List.iter (fun (link : Data.Paper.link) -> %> - + <%s link.description %> <% ); %> diff --git a/tailwind.config.js b/tailwind.config.js index 286fc2de83..bb9ed69c12 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -31,6 +31,7 @@ const figma_colors = { primary: "#C24F1E", primary_40: "#D5400066", primary_20: "#D5400033", + primary_10: "#D5400019", primary_nav_block_hover_10:"#C24F1E1A", secondary: "#00838A", |