Skip to content

Let's use AI to Earn!

动画回顾

daoyiance34d1311808
diff --git a/src/app/[lng]/page.tsx b/src/app/[lng]/page.tsx
index f2c6c436..69fa7411 100644
--- a/src/app/[lng]/page.tsx
+++ b/src/app/[lng]/page.tsx
@@ -1,5 +1,6 @@
"use client";
+import { useEffect, useRef, useState } from "react";
import styles from "./styles/difyHome.module.scss";
// 版本发布横幅
@@ -344,55 +345,111 @@ function CommunitySection() {
// Footer
function Footer() {
+ const [isHovered, setIsHovered] = useState(false);
+ const [currentImageIndex, setCurrentImageIndex] = useState(0);
+ const intervalRef = useRef<NodeJS.Timeout | null>(null);
+
+ // 背景图片数组
+ const backgroundImages = [
+ // '/src/assets/images/logo.png',
+ // '/src/assets/images/vipcard.png',
+ 'https://picsum.photos/400/200?random=1',
+ 'https://picsum.photos/400/200?random=2',
+ 'https://picsum.photos/400/200?random=3',
+ 'https://picsum.photos/400/200?random=4',
+ ];
+
+ useEffect(() => {
+ if (isHovered) {
+ intervalRef.current = setInterval(() => {
+ setCurrentImageIndex(prev => (prev + 1) % backgroundImages.length);
+ }, 1000);
+ } else {
+ if (intervalRef.current) {
+ clearInterval(intervalRef.current);
+ intervalRef.current = null;
+ }
+ setCurrentImageIndex(0);
+ }
+
+ return () => {
+ if (intervalRef.current) {
+ clearInterval(intervalRef.current);
+ }
+ };
+ }, [isHovered, backgroundImages.length]);
+
return (
<footer className={styles.footer}>
<div className={styles.footerContainer}>
- <div className={styles.footerColumns}>
- <div className={styles.footerColumn}>
- <h4>RESOURCES</h4>
- <a href="#docs">Docs</a>
- <a href="#blog">Blog</a>
- <a href="#education">Education</a>
- <a href="#partner">Partner</a>
- <a href="#support">Support</a>
- <a href="#roadmap">Roadmap</a>
+ {/* 上半部分:Resources 和 Company */}
+ <div className={styles.footerTop}>
+ <div className={styles.footerColumns}>
+ <div className={styles.footerColumn}>
+ <h4>RESOURCES</h4>
+ <a href="#docs">Docs</a>
+ <a href="#blog">Blog</a>
+ <a href="#education">Education</a>
+ <a href="#partner">Partner</a>
+ <a href="#support">Support</a>
+ <a href="#roadmap">Roadmap</a>
+ </div>
+
+ <div className={styles.footerColumn}>
+ <h4>COMPANY</h4>
+ <a href="#talk">Talk to Us</a>
+ <a href="#terms">Terms of Service</a>
+ <a href="#privacy">Privacy Policy</a>
+ <a href="#cookies">Cookie Settings</a>
+ <a href="#data">Data Protection Agreement</a>
+ <a href="#marketplace">Marketplace Agreement</a>
+ <a href="#brand">Brand Guidelines</a>
+ </div>
</div>
- <div className={styles.footerColumn}>
- <h4>COMPANY</h4>
- <a href="#talk">Talk to Us</a>
- <a href="#terms">Terms of Service</a>
- <a href="#privacy">Privacy Policy</a>
- <a href="#cookies">Cookie Settings</a>
- <a href="#data">Data Protection Agreement</a>
- <a href="#marketplace">Marketplace Agreement</a>
- <a href="#brand">Brand Guidelines</a>
+ <div className={styles.footerInfo}>
+ <div className={styles.footerText}>
+ Unlock Agentic AI with Dify. Develop, deploy, and manage autonomous agents, RAG pipelines, and more for teams at any scale, effortlessly.
+ </div>
+
+ <div className={styles.socialLinks}>
+ <a href="#github">GitHub</a>
+ <a href="#discord">Discord</a>
+ <a href="#youtube">YouTube</a>
+ <a href="#linkedin">LinkedIn</a>
+ <a href="#twitter">Twitter</a>
+ </div>
</div>
</div>
+ {/* 下半部分:imagine if */}
<div className={styles.footerBottom}>
- <div className={styles.footerText}>
- Unlock Agentic AI with Dify. Develop, deploy, and manage autonomous agents, RAG pipelines, and more for teams at any scale, effortlessly.
- </div>
-
- <div className={styles.socialLinks}>
- <a href="#github">GitHub</a>
- <a href="#discord">Discord</a>
- <a href="#youtube">YouTube</a>
- <a href="#linkedin">LinkedIn</a>
- <a href="#twitter">Twitter</a>
+ <div
+ className={styles.bigText}
+ onMouseEnter={() => setIsHovered(true)}
+ onMouseLeave={() => setIsHovered(false)}
+ >
+ imagine
+ <span
+ className={styles.ifText}
+ style={{
+ backgroundImage: isHovered ? `url(${backgroundImages[currentImageIndex]})` : 'none',
+ backgroundSize: 'cover',
+ backgroundPosition: 'center',
+ backgroundClip: 'text',
+ WebkitBackgroundClip: 'text',
+ color: isHovered ? 'transparent' : '#1f2937'
+ }}
+ >
+ if
+ </span>
</div>
- <div className={styles.certifications}>
- {/* 认证图标 */}
+ <div className={styles.footerCopyright}>
+ <div className={styles.copyright}>© 2025 LangGenius, Inc.</div>
+ <div className={styles.tagline}>Build Production-Ready Agentic AI Solutions</div>
</div>
</div>
-
- <div className={styles.footerCopyright}>
- <div className={styles.bigText}>imagine if</div>
- <div className={styles.copyright}>© 2025 LangGenius, Inc.</div>
- <div className={styles.tagline}>Build Production-Ready Agentic AI Solutions</div>
- </div>
</div>
</footer>
);
diff --git a/src/app/[lng]/styles/difyHome.module.scss b/src/app/[lng]/styles/difyHome.module.scss
index 3335711a..efa16c86 100644
--- a/src/app/[lng]/styles/difyHome.module.scss
+++ b/src/app/[lng]/styles/difyHome.module.scss
@@ -3,6 +3,9 @@
color: #1a1a1a;
line-height: 1.6;
overflow-x: hidden;
+ padding-bottom: 85vh;
+ position: relative;
+ z-index: 2;
}
.releaseBanner {
@@ -557,98 +560,138 @@
}
.footer {
- background: #1f2937;
- color: white;
- padding: 80px 0 40px;
+ bottom: 0;
+ flex: none;
+ height: 85vh;
+ left: calc(50.00000000000002% - 100% / 2);
+ pointer-events: auto;
+ position: fixed;
+ width: 100%;
+ z-index: -1;
+ background: #ffffff;
+ color: #1f2937;
+ border-top: 1px solid #e5e7eb;
+ box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}
.footerContainer {
+ height: 100%;
max-width: 1200px;
margin: 0 auto;
- padding: 0 24px;
+ padding: 60px 40px 40px;
+ display: flex;
+ flex-direction: column;
}
-.footerColumns {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: 60px;
+.footerTop {
+ flex: 1;
+ display: flex;
+ justify-content: space-between;
margin-bottom: 60px;
}
+.footerColumns {
+ display: flex;
+ gap: 120px;
+}
+
.footerColumn {
h4 {
- font-size: 14px;
+ font-size: 12px;
font-weight: 700;
color: #9ca3af;
- margin-bottom: 20px;
+ margin-bottom: 24px;
letter-spacing: 1px;
}
a {
display: block;
- color: #d1d5db;
+ color: #374151;
text-decoration: none;
- margin-bottom: 12px;
+ margin-bottom: 16px;
+ font-size: 15px;
transition: color 0.2s ease;
&:hover {
- color: white;
+ color: #1f2937;
}
}
}
-.footerBottom {
- display: grid;
- grid-template-columns: 2fr 1fr 1fr;
- gap: 40px;
- align-items: center;
- margin-bottom: 40px;
- padding-bottom: 40px;
- border-bottom: 1px solid #374151;
+.footerInfo {
+ max-width: 350px;
+ text-align: right;
}
.footerText {
- color: #9ca3af;
+ color: #6b7280;
line-height: 1.6;
+ font-size: 16px;
+ margin-bottom: 32px;
}
.socialLinks {
display: flex;
- gap: 20px;
+ gap: 24px;
+ justify-content: flex-end;
a {
- color: #9ca3af;
+ color: #6b7280;
text-decoration: none;
+ font-size: 15px;
transition: color 0.2s ease;
&:hover {
- color: white;
+ color: #1f2937;
}
}
}
-.footerCopyright {
+.footerBottom {
display: flex;
- justify-content: space-between;
+ flex-direction: column;
align-items: center;
+ justify-content: center;
+ text-align: center;
+ flex: 1;
+ position: relative;
}
.bigText {
- font-size: 120px;
+ font-size: 160px;
font-weight: 900;
- color: #374151;
- line-height: 1;
+ line-height: 0.85;
+ color: #1f2937;
+ margin-bottom: 40px;
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
+ cursor: pointer;
+}
+
+.footerCopyright {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ font-size: 15px;
}
.copyright {
color: #9ca3af;
- font-size: 14px;
}
.tagline {
color: #9ca3af;
- font-size: 14px;
- text-align: right;
+}
+
+.ifText {
+ display: inline;
+ font-weight: 900;
+ background-clip: text;
+ -webkit-background-clip: text;
+ transition: color 0.1s ease;
}
@media (max-width: 1024px) {
@@ -669,6 +712,44 @@
.statsGrid {
grid-template-columns: repeat(2, 1fr);
}
+
+ .footer {
+ height: 90vh;
+ }
+
+ .footerContainer {
+ padding: 40px 30px 30px;
+ }
+
+ .footerTop {
+ flex-direction: column;
+ gap: 40px;
+ margin-bottom: 40px;
+ }
+
+ .footerColumns {
+ gap: 60px;
+ }
+
+ .footerInfo {
+ max-width: none;
+ text-align: center;
+ }
+
+ .socialLinks {
+ justify-content: center;
+ }
+
+ .bigText {
+ font-size: 100px;
+ margin-bottom: 30px;
+ }
+
+ .footerCopyright {
+ flex-direction: column;
+ gap: 12px;
+ text-align: center;
+ }
}
@media (max-width: 768px) {
@@ -709,18 +790,26 @@
grid-template-columns: 1fr;
}
- .footerColumns {
- grid-template-columns: 1fr;
+ .footer {
+ height: 95vh;
}
- .footerBottom {
- grid-template-columns: 1fr;
- text-align: center;
+ .footerContainer {
+ padding: 30px 20px 20px;
+ }
+
+ .footerColumns {
+ flex-direction: column;
+ gap: 30px;
}
.bigText {
font-size: 60px;
}
+
+ .footerText {
+ font-size: 14px;
+ }
}
@keyframes fadeInUp {