diff --git a/src/renderer/components/+preferences/install.module.scss b/src/renderer/components/+preferences/install.module.scss index fe98f4b806..239828e061 100644 --- a/src/renderer/components/+preferences/install.module.scss +++ b/src/renderer/components/+preferences/install.module.scss @@ -3,14 +3,94 @@ * Licensed under MIT License. See LICENSE in root directory for more information. */ -.ExtensionCard { - margin-bottom: 10px; - list-style-type: none; - font-size: 1.2em; - border-radius: 6px; + .hr { + padding: 80px 0; + } + +.extensionCard { + margin-bottom: 16px; + border-radius: 4px; border: 1px solid #181a1f; background-color: #333842; overflow: hidden; cursor: pointer; - padding: var(--padding); + padding: 16px; + display: flex; + justify-content: space-between; + gap: 16px; + + &:hover { + background-color: #373d48; + } +} + +.contents { + flex: 1; +} + +.head { + display: flex; + justify-content: space-between; + align-items: center; + gap: 16px; +} + +.nameAndVersion { + display: flex; + gap: var(--padding); + margin-bottom: var(--padding); + + .name { + font-weight: bolder; + color: #d7dae0; + font-size: larger; + } + + .version { + font-size: .8em; + } +} + +.downloads { + display: flex; + align-items: center; + gap: var(--padding); +} + +.description { + line-height: 1.4; + margin-bottom: var(--padding); +} + +.footer { + display: flex; + align-items: center; + justify-content: space-between; +} + +.author a { + color: rgba(157, 165, 180, 0.6)!important; + text-decoration: none; + + &:hover { + text-decoration: underline; + } +} + +.icon { + height: 50px; + border-radius: 4px; + min-width: 50px; + background-repeat: no-repeat; + background-clip: content-box; + background-color: #3a404c; +} + +.install button { + display: flex; + align-items: center; +} + +.installButtonIco { + margin-right: var(--margin); } \ No newline at end of file diff --git a/src/renderer/components/+preferences/install.tsx b/src/renderer/components/+preferences/install.tsx index fd61a9e0a9..36078175f4 100644 --- a/src/renderer/components/+preferences/install.tsx +++ b/src/renderer/components/+preferences/install.tsx @@ -39,17 +39,15 @@ export function Install() { return (
-

Install Extensions

+

Install Extensions

-
-
-
+
-

Featured Extensions

+

Featured Extensions

{renderExtensionsOrSpinner()}
); @@ -64,31 +62,34 @@ function ExtensionList({ extensions }: { extensions: Extension[] }) { } function ExtensionCard({ extension }: { extension: Extension }) { - const { name, version, totalNumberOfInstallations, shortDescription, publisher } = extension; + const { name, version, totalNumberOfInstallations, shortDescription, publisher, githubRepositoryUrl, appIconUrl } = extension; return ( -
-
-
-
{name}
-
{version}
+
+
+
+
+
+
{name}
+
{version}
+
+ +
+ {totalNumberOfInstallations} +
-
- {totalNumberOfInstallations} +
+ {shortDescription}
-
-
- {shortDescription} -
- -
-
- {publisher.username} -
-
- +
+ +
+ +