diff --git a/src/lib/components/lists/ListItem.svelte b/src/lib/components/lists/ListItem.svelte index 5cb5bce..e61d378 100644 --- a/src/lib/components/lists/ListItem.svelte +++ b/src/lib/components/lists/ListItem.svelte @@ -1,7 +1,15 @@ -
-
+
+
{#if href} - +
+ +
{/if}
diff --git a/src/lib/styles/buttons.scss b/src/lib/styles/buttons.scss index 04c3dd3..87ac984 100644 --- a/src/lib/styles/buttons.scss +++ b/src/lib/styles/buttons.scss @@ -3,8 +3,17 @@ @apply text-neutral-900 font-display font-normal; @apply border border-electric; @apply hover:border-electric; - @apply hover:to-electric-700 hover:from-electric-600; - @apply transition ease-in-out duration-150; + @apply hover:to-electric-500 hover:from-electric-500; + @apply transition-all ease-in-out duration-150; +} + +.btn-dark { + @apply bg-gradient-to-b from-neutral-600 to-neutral-800; + @apply text-neutral-100 font-display font-normal; + @apply border border-neutral-600; + @apply hover:border-neutral-600; + @apply hover:to-neutral-600 hover:from-neutral-600; + @apply transition-all ease-in-out duration-150; } .btn-transparent { diff --git a/src/routes/(app)/org/[orgId]/repos/[repositoryId]/+page.svelte b/src/routes/(app)/org/[orgId]/repos/[repositoryId]/+page.svelte index fa79506..ef8e4be 100644 --- a/src/routes/(app)/org/[orgId]/repos/[repositoryId]/+page.svelte +++ b/src/routes/(app)/org/[orgId]/repos/[repositoryId]/+page.svelte @@ -1,4 +1,5 @@
@@ -27,22 +42,66 @@ --> -
-

Custom Rules

- {#if customRules?.length} - Create a Rule - {/if} -
+ + {#if customRules?.length} +
+

Suggested Rules

+ {customRules?.length} +
-
- {#if customRules?.length} +
{#each customRules as rule} - - {rule.title} + +
+
+
+ {rule.title} +
+ {#if rule.tags?.length} +
+ {#each rule.tags as tag} + {tag.name} + {/each} +
+ {/if} +
+
+
+ +
+
+ +
+
+
{/each} - {:else} -
+
+ {/if} + +
+ + {#if rules?.length} +
+

Code Review Rules

+ {#if customRules?.length} + Create a Rule + {/if} +
+ +
+ {#if !customRules?.length} +
@@ -52,54 +111,48 @@ Create a Rule
- {/if} -
+ {/if} - {#if rules?.length} -

Code Review Rules

+
-
-
+ + {#if customRules?.length} + {#each customRules as rule} + +
+
+ {rule.title} +
+ {#if rule.tags?.length} +
+ {#each rule.tags as tag} + {tag.name} + {/each} +
+ {/if} +
+
+ {/each} + {/if} + + {#each rules as rule} - +
{rule.title}
-
- {#each rule.tags as tag} - {tag.name} - {/each} -
+ {#if rule.tags?.length} +
+ {#each rule.tags as tag} + {tag.name} + {/each} +
+ {/if}
{/each}
- -
{/if}
diff --git a/tailwind.config.ts b/tailwind.config.ts index 8e4aa65..f96627c 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -42,6 +42,20 @@ export default { 800: '#005753', 900: '#001F1D', 950: '#000302' + }, + icey: { + DEFAULT: '#7B61FF', + 50: '#EEEBFF', + 100: '#E1DBFF', + 200: '#C8BDFF', + 300: '#AE9EFF', + 400: '#9580FF', + 500: '#7B61FF', + 600: '#3F1AFF', + 700: '#2200D1', + 800: '#17008A', + 900: '#0B0042', + 950: '#05001F' } } }