fix(frontend): polish Chrome and Claw integration landing pages
Remove redundant hero icons from the Chrome extension and Claw Skill landing headers, and keep Claw CTA hover states on the lobster accent instead of the default brand green.
This commit is contained in:
@@ -4,10 +4,6 @@
|
|||||||
:subtitle="$t('integrations.chrome.subtitle')"
|
:subtitle="$t('integrations.chrome.subtitle')"
|
||||||
variant="chrome"
|
variant="chrome"
|
||||||
>
|
>
|
||||||
<template #icon>
|
|
||||||
<t-icon name="extension" size="22px" />
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<template #tags>
|
<template #tags>
|
||||||
<span v-for="key in scenarioKeys" :key="key" class="scenario-tag">
|
<span v-for="key in scenarioKeys" :key="key" class="scenario-tag">
|
||||||
{{ $t(`integrations.chrome.scenarios.${key}`) }}
|
{{ $t(`integrations.chrome.scenarios.${key}`) }}
|
||||||
|
|||||||
@@ -4,10 +4,6 @@
|
|||||||
:subtitle="$t('integrations.claw.subtitle')"
|
:subtitle="$t('integrations.claw.subtitle')"
|
||||||
variant="claw"
|
variant="claw"
|
||||||
>
|
>
|
||||||
<template #icon>
|
|
||||||
<span role="img" :aria-label="$t('common.clawhubSkill')">🦞</span>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<IntegrationExternalCta
|
<IntegrationExternalCta
|
||||||
variant="claw"
|
variant="claw"
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="integration-landing" :class="{ 'integration-landing--claw': variant === 'claw' }">
|
<div class="integration-landing" :class="{ 'integration-landing--claw': variant === 'claw' }">
|
||||||
<header class="landing-hero" :class="{ 'landing-hero--claw': variant === 'claw' }">
|
<header class="landing-hero" :class="{ 'landing-hero--claw': variant === 'claw' }">
|
||||||
<div class="landing-hero__icon" :class="`landing-hero__icon--${variant}`">
|
|
||||||
<slot name="icon" />
|
|
||||||
</div>
|
|
||||||
<div class="landing-hero__content">
|
<div class="landing-hero__content">
|
||||||
<h2 class="landing-hero__title">{{ title }}</h2>
|
<h2 class="landing-hero__title">{{ title }}</h2>
|
||||||
<p v-if="subtitle" class="landing-hero__subtitle">{{ subtitle }}</p>
|
<p v-if="subtitle" class="landing-hero__subtitle">{{ subtitle }}</p>
|
||||||
|
|||||||
@@ -46,30 +46,6 @@
|
|||||||
var(--td-bg-color-container) 72%
|
var(--td-bg-color-container) 72%
|
||||||
);
|
);
|
||||||
box-shadow: inset 0 1px 0 color-mix(in srgb, @claw-accent 10%, transparent);
|
box-shadow: inset 0 1px 0 color-mix(in srgb, @claw-accent 10%, transparent);
|
||||||
|
|
||||||
.landing-hero__icon {
|
|
||||||
background: color-mix(in srgb, @claw-accent 14%, var(--td-bg-color-container));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__icon {
|
|
||||||
flex-shrink: 0;
|
|
||||||
width: 44px;
|
|
||||||
height: 44px;
|
|
||||||
border-radius: 10px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
background: color-mix(in srgb, var(--td-brand-color) 14%, var(--td-bg-color-container));
|
|
||||||
color: var(--td-brand-color);
|
|
||||||
font-size: 22px;
|
|
||||||
line-height: 1;
|
|
||||||
|
|
||||||
:deep(.t-icon) {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__content {
|
&__content {
|
||||||
@@ -126,18 +102,18 @@
|
|||||||
background 0.18s ease,
|
background 0.18s ease,
|
||||||
box-shadow 0.18s ease;
|
box-shadow 0.18s ease;
|
||||||
|
|
||||||
&:hover {
|
&:not(&--claw):hover {
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: color-mix(in srgb, var(--td-brand-color) 40%, var(--td-component-stroke));
|
border-color: color-mix(in srgb, var(--td-brand-color) 40%, var(--td-component-stroke));
|
||||||
background: color-mix(in srgb, var(--td-bg-color-container) 92%, transparent);
|
background: color-mix(in srgb, var(--td-bg-color-container) 92%, transparent);
|
||||||
box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
|
box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:not(&--claw):active {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus-visible {
|
&:not(&--claw):focus-visible {
|
||||||
outline: 2px solid var(--td-brand-color);
|
outline: 2px solid var(--td-brand-color);
|
||||||
outline-offset: 2px;
|
outline-offset: 2px;
|
||||||
}
|
}
|
||||||
@@ -146,7 +122,14 @@
|
|||||||
border-color: color-mix(in srgb, @claw-accent 30%, var(--td-component-stroke));
|
border-color: color-mix(in srgb, @claw-accent 30%, var(--td-component-stroke));
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
border-style: solid;
|
||||||
border-color: color-mix(in srgb, @claw-accent 45%, var(--td-component-stroke));
|
border-color: color-mix(in srgb, @claw-accent 45%, var(--td-component-stroke));
|
||||||
|
background: color-mix(in srgb, var(--td-bg-color-container) 92%, transparent);
|
||||||
|
box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ext-cta__badge {
|
.ext-cta__badge {
|
||||||
@@ -165,7 +148,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
outline-color: @claw-accent;
|
outline: 2px solid @claw-accent;
|
||||||
|
outline-offset: 2px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -232,7 +216,7 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover &__arrow-wrap {
|
&:not(&--claw):hover &__arrow-wrap {
|
||||||
background: color-mix(in srgb, var(--td-brand-color) 14%, transparent);
|
background: color-mix(in srgb, var(--td-brand-color) 14%, transparent);
|
||||||
color: var(--td-brand-color);
|
color: var(--td-brand-color);
|
||||||
}
|
}
|
||||||
@@ -246,11 +230,6 @@
|
|||||||
|
|
||||||
// ── Claw / 龙虾主题色 ──
|
// ── Claw / 龙虾主题色 ──
|
||||||
.integration-landing--claw {
|
.integration-landing--claw {
|
||||||
.landing-hero__icon--claw {
|
|
||||||
color: @claw-accent-dark;
|
|
||||||
background: color-mix(in srgb, @claw-accent 14%, var(--td-bg-color-container));
|
|
||||||
}
|
|
||||||
|
|
||||||
.landing-group {
|
.landing-group {
|
||||||
.setting-drawer__section-title::before {
|
.setting-drawer__section-title::before {
|
||||||
background: @claw-accent;
|
background: @claw-accent;
|
||||||
@@ -281,10 +260,6 @@
|
|||||||
color: color-mix(in srgb, @claw-accent-dark 55%, var(--td-text-color-placeholder));
|
color: color-mix(in srgb, @claw-accent-dark 55%, var(--td-text-color-placeholder));
|
||||||
}
|
}
|
||||||
|
|
||||||
.ext-cta--claw:hover .ext-cta__arrow-wrap {
|
|
||||||
color: @claw-accent-dark;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.t-button--variant-outline) {
|
:deep(.t-button--variant-outline) {
|
||||||
color: @claw-accent-dark;
|
color: @claw-accent-dark;
|
||||||
border-color: color-mix(in srgb, @claw-accent 38%, var(--td-component-border));
|
border-color: color-mix(in srgb, @claw-accent 38%, var(--td-component-border));
|
||||||
|
|||||||
Reference in New Issue
Block a user