Skip to content

Commit

Permalink
style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaneczek-hutte committed Jul 9, 2024
1 parent 865d0e6 commit be8affe
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 15 deletions.
20 changes: 20 additions & 0 deletions site/assets/hutte-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions site/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
h1 {
font-size: 1.5rem;
}

h2 {
font-size: 1.125rem;
font-weight: 700;
}

.sfp-pagination {
display: flex;
align-items: center;
}

.sfp-pagination > div {
margin-right: 0.75rem;
}

.sfp-faq-listitem {
cursor: pointer;
}

.sfp-faq-listitem summary {
display: flex;
align-items: center;
font-weight: bold;
}

.sfp-faq-listitem details[open] summary {
margin-bottom: 0.75rem;
}

.sfp-faq-listitem-content {
font-size: 14px;
}

.sfp-tab-content {
margin: 0 auto;
}

.sfp-notification #hutte-logo {
height: 20px;
}
32 changes: 18 additions & 14 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
rel="stylesheet"
/>
<link href="./grid.css" rel="stylesheet" />
<link href="./custom.css" rel="stylesheet" />
</head>
<body>
<div class="slds-context-bar">
Expand Down Expand Up @@ -69,7 +70,7 @@
id="panel-plugins"
role="tabpanel"
aria-labelledby="tab-plugins"
class="slds-tabs_default__content"
class="sfp-tab-content slds-tabs_default__content"
>
<div id="wrapper-plugins"></div>
</div>
Expand All @@ -78,7 +79,7 @@
role="tabpanel"
aria-labelledby="tab-commands"
hidden
class="slds-tabs_default__content"
class="sfp-tab-content slds-tabs_default__content"
>
<div id="wrapper-commands"></div>
</div>
Expand All @@ -87,17 +88,17 @@
role="tabpanel"
aria-labelledby="tab-about"
hidden
class="slds-tabs_default__content slds-p-horizontal_small"
class="sfp-tab-content slds-tabs_default__content slds-p-horizontal_small slds-container_large"
>
<h2 class="slds-m-bottom_small">FAQ</h2>
<h1 class="slds-m-bottom_small">FAQ</h1>
<div class="slds-card meta">
<ul class="slds-accordion">
<slds-faq role="listitem">
<slds-faq role="listitem" class="sfp-faq-listitem">
<details>
<summary>
How does this compare to the awesome-sfdx-plugins list?
</summary>
<span>
<span class="sfp-faq-listitem-content">
The
<a href="https://github.com/mshanemc/awesome-sfdx-plugins"
>awesome-sfdx-plugins</a
Expand All @@ -111,19 +112,19 @@ <h2 class="slds-m-bottom_small">FAQ</h2>
</span>
</details>
</slds-faq>
<slds-faq role="listitem">
<slds-faq role="listitem" class="sfp-faq-listitem">
<details>
<summary>How often is the data updated?</summary>
<span>
<span class="sfp-faq-listitem-content">
The data is updated daily using a scheduled GitHub Action.
Last updated: <time></time>
</span>
</details>
</slds-faq>
<slds-faq role="listitem">
<slds-faq role="listitem" class="sfp-faq-listitem">
<details>
<summary>Why is plugin xyz not listed?</summary>
<span>
<span class="sfp-faq-listitem-content">
We search the
<a
href="https://www.npmjs.com/search?q=keywords%3Asf-plugin%2Csfdx-plugin"
Expand Down Expand Up @@ -153,10 +154,10 @@ <h2 class="slds-m-bottom_small">FAQ</h2>
</span>
</details>
</slds-faq>
<slds-faq role="listitem">
<slds-faq role="listitem" class="sfp-faq-listitem">
<details>
<summary>Is this open-source?</summary>
<span>
<span class="sfp-faq-listitem-content">
Yes, both the website and the scripts to query the data are
available at
<a href="https://github.com/amtrack/sf-plugin-explorer"
Expand All @@ -170,7 +171,7 @@ <h2 class="slds-m-bottom_small">FAQ</h2>
</div>
<div>
<div
class="slds-scoped-notification slds-media slds-media_center slds-scoped-notification_light"
class="slds-scoped-notification slds-media slds-media_center slds-scoped-notification_light sfp-notification"
role="status"
>
<div class="slds-media__figure">
Expand All @@ -191,7 +192,10 @@ <h2 class="slds-m-bottom_small">FAQ</h2>
<p>
SF Plugin Explorer is sponsored by
<a title="Hutte" target="_blank" href="https://hutte.io"
>Hutte</a
><img
id="hutte-logo"
src="./assets/hutte-logo.svg"
alt="hutte.io" /></a
>, a DevOps solution for Salesforce Professionals, created by
Salesforce Professionals.
</p>
Expand Down
2 changes: 1 addition & 1 deletion site/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const defaultGridSettings = {
container: "slds-p-horizontal_small",
table: "slds-table slds-table_bordered slds-table_fixed-layout",
td: "slds-truncate",
pagination: "slds-button-group",
pagination: "slds-button-group sfp-pagination",
paginationButton: "slds-button slds-button_neutral",
paginationButtonCurrent: "slds-is-selected",
search: "slds-p-bottom_small",
Expand Down

0 comments on commit be8affe

Please sign in to comment.