Skip to content

Commit b68e09b

Browse files
committed
fix(homepage): update homepage images
1 parent 5e0a8ef commit b68e09b

10 files changed

Lines changed: 144 additions & 10 deletions

File tree

pnpm-lock.yaml

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Loading
678 Bytes
Loading
-38.8 KB
Binary file not shown.
Lines changed: 109 additions & 0 deletions
Loading
-31.2 KB
Binary file not shown.
30.5 KB
Loading

sites/homepage/web/src/components/HomeFeature.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const features = [
121121
justify-content: center;
122122
padding: 48px;
123123
border: 3px solid #fff;
124-
border-radius: 12px;
124+
border-radius: 16px;
125125
cursor: pointer;
126126
box-shadow: 0px 4px 30px 0px rgba(230, 230, 230, 0.6);
127127
@@ -130,6 +130,7 @@ const features = [
130130
}
131131
@media (max-width: 768px) {
132132
flex-direction: row;
133+
border-radius: 6px;
133134
box-shadow: 0px 2px 12px 0px rgba(230, 230, 230, 0.6);
134135
div&-title {
135136
margin-bottom: 0;

sites/homepage/web/src/components/HomeGuide.vue

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import javascript from 'highlight.js/lib/languages/javascript';
55
import { TinyButton } from '@opentiny/vue';
66
import genuiChatIcon from '@/assets/genui_chat_icon.svg';
77
import genuiInusecon from '@/assets/genui_inuse_icon.svg';
8+
import arrowRightIcon from '@/assets/arrow.svg';
89
import gneuiSettingsIcon from '@/assets/genui_settings_icon.svg';
910
import { guideCodeMap } from '@/config';
1011
import { LinkKey, linkMap } from '@/utils/link';
@@ -29,7 +30,7 @@ onUnmounted(() => {
2930
window.removeEventListener('resize', updateIsMobile);
3031
});
3132
32-
hljs.registerLanguage('javascript', javascript);
33+
hljs.registerLanguage('javascript', javascript);
3334
3435
function hightlight() {
3536
nextTick(() => {
@@ -87,7 +88,7 @@ const handleGuideCardClick = (index: number) => {
8788
class="home-guide-content-left-button"
8889
size="medium"
8990
round
90-
>开发文档</tiny-button
91+
>开发文档 <img :src="arrowRightIcon" alt="arrow-right" /> </tiny-button
9192
>
9293
</a>
9394
</div>
@@ -161,6 +162,9 @@ const handleGuideCardClick = (index: number) => {
161162
gap: 0;
162163
&-button {
163164
margin-top: 24px;
165+
img {
166+
margin-left: 8px;
167+
}
164168
}
165169
166170
@media (min-width: 1280px) {
@@ -270,8 +274,21 @@ const handleGuideCardClick = (index: number) => {
270274
}
271275
272276
@media (max-width: 768px) {
277+
.home-guide-content-right-framework {
278+
border-radius: 6px;
279+
280+
&-header {
281+
border-radius: 6px 6px 0 0;
282+
}
283+
}
284+
273285
:deep(.guide-code) {
274286
font-size: 14px;
287+
border-radius: 0 0 6px 6px;
288+
289+
&::-webkit-scrollbar-corner {
290+
border-bottom-right-radius: 6px;
291+
}
275292
}
276293
}
277294

sites/homepage/web/src/views/home.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import genuiAbility1 from '@/assets/genui_ability_1.svg';
55
import genuiAbility2 from '@/assets/genui_ability_2.webp';
66
import genuiAbility3 from '@/assets/create-github.webp';
77
import genuiActionVedioCover from '@/assets/order-milk-tea.webp';
8-
import genuiFlowVedioCover from '@/assets/genui_flow_vedio_cover.webp';
8+
import genuiFlowVedioCover from '@/assets/search-ticket.webp';
99
import { LinkKey, linkMap } from '@/utils/link';
1010
import { useMobile } from '@/composables/useMobile';
1111
import HomeAbility from '@/components/HomeAbility.vue';
@@ -322,7 +322,7 @@ const buttonSize = computed(() => {
322322
display: flex;
323323
padding: 16px;
324324
border-radius: 24px;
325-
background-image: url('@/assets/genui_ability_bg_2.jpg');
325+
background-image: url('@/assets/genui_ability_bg_2.svg');
326326
background-size: cover;
327327
328328
img {

0 commit comments

Comments
 (0)