1+ struct JuliaHubCommercialSupportComponent <: MultiDocumenter.DropdownComponent
2+ link:: String
3+ end
4+
5+ function MultiDocumenter. render (c:: JuliaHubCommercialSupportComponent , doc, thispage, prettyurls)
6+
7+ return MultiDocumenter. @htl """
8+ <div>
9+ <a href="$(c. link) " class="nav-link nav-item">
10+ <img src="https://info.juliahub.com/hubfs/Julia-Hub-Navigation-Logo-JuliaHub.svg" alt="JuliaHub logo - contact sales today!" style = "padding: 10px;"/>
11+ </a>
12+ <p></p>
13+ <a href="$(c. link) " class="nav-link nav-item">JuliaHub offers commercial support for ModelingToolkit and the SciML ecosystem. Contact us today to discuss your needs!</a>
14+ </div>
15+ """
16+
17+ end
18+
19+ struct ProductsUsedComponent <: MultiDocumenter.DropdownComponent end
20+
21+ PRODUCTNAME_IMAGE_LINK = [
22+ (; product = " JuliaSim" , logo = " https://juliahub.com/ui/juliasim-logo.notext.svg" , link = " https://juliahub.com/products/juliasim" ),
23+ (; product = " Pumas" , logo = " https://juliahub.com/ui/Pumas%20Logomark.svg" , link = " https://pumas.ai/" ),
24+ (; product = " Cedar EDA" , logo = " https://juliahub.com/ui/cedar_eda.svg" , link = " https://juliahub.com/products/cedar-eda" ),
25+ (; product = " Neuroblox" , logo = " https://juliahub.com/ui/Neuroblox-logo-400-300-dark.png" , link = " https://www.neuroblox.org/" ),
26+ (; product = " Planting Space" , logo = " https://planting.space/img/logo_big.svg" , link = " https://planting.space/" ),
27+ ]
28+
29+ function MultiDocumenter. render (c:: ProductsUsedComponent , doc, thispage, prettyurls)
30+ strings = [MultiDocumenter. @htl """
31+ <li>
32+ <a href=$(product. link) class="nav-link nav-item">
33+ $(product. product)
34+ </a>
35+ </li>
36+ """ for product in PRODUCTNAME_IMAGE_LINK]
37+
38+ return MultiDocumenter. @htl """
39+ <table>
40+ $strings
41+ </table>
42+ """
43+ end
44+
45+
46+ struct Link <: MultiDocumenter.DropdownComponent
47+ text:: String
48+ link:: String
49+ end
50+
51+ function MultiDocumenter. render (c:: Link , doc, thispage, prettyurls)
52+ return MultiDocumenter. @htl """
53+ <a href=$(c. link) class="nav-link nav-item">$(c. text) </a>
54+ """
55+ end
0 commit comments