
diff --git a/src/index.css b/src/index.css
index f009227..514878b 100644
--- a/src/index.css
+++ b/src/index.css
@@ -311,10 +311,38 @@ button:focus-visible {
}
}
+@keyframes gradient-animation {
+ 0% {
+ background-position: 0 50%;
+ }
+ 50% {
+ background-position: 100% 50%;
+ }
+ 100% {
+ background-position: 0 50%;
+ }
+}
+
+@keyframes fadeIn {
+ from {
+ opacity: 0;
+ transform: translateY(10px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
.floating {
animation: dream-float 6s ease-in-out infinite;
}
+/* Custom animations */
+.animate-fadeIn {
+ animation: fadeIn 0.5s ease-out forwards;
+}
+
/* Responsive adjustments */
@media (max-width: 768px) {
h1 {
diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx
index 71d38e1..1c0ae31 100644
--- a/src/pages/Home.tsx
+++ b/src/pages/Home.tsx
@@ -4,6 +4,7 @@ import {getSortedDreamsByDate} from '../utils/DreamUtils.ts';
import {primaryMoodCategories, topDreamTopics} from '../data/MockDailyHighlights';
import {getBackgroundStyle, getCardStyle, getTextStyle} from '../styles/StyleUtils';
import {formatDateFull, formatDateSimple} from '../utils/DateUtils';
+import {NavLink} from 'react-router-dom';
export default function Home() {
const currentUser = MockUserMap.get(4); // Neo Quantum
@@ -35,7 +36,7 @@ export default function Home() {
-
+
-
+
Traum-Streak: {currentUser?.streakDays} Tage
Beeindruckend! Du hältst deine Traum-Aufzeichnungen konstant bei.
@@ -51,75 +52,76 @@ export default function Home() {
{/* Personal Feed */}
-
-
Deine letzten Träume
- {personalDreams.length > 0 ? (
-
- {personalDreams.map((dream, index) => (
-
-
{dream.title}
-
- {formatDateSimple(dream.date)}
-
-
- ))}
-
- ) : (
-
- Du hast noch keine Träume aufgezeichnet. Starte jetzt!
-
- )}
-
+
+
+
Deine letzten Träume
+ {personalDreams.length > 0 ? (
+
+ {personalDreams.map((dream, index) => (
+
+
+
{dream.title}
+
+ {formatDateSimple(dream.date)}
+
+
+
+ ))}
+
+ ) : (
+
+ Du hast noch keine Träume aufgezeichnet. Starte jetzt!
+
+ )}
+
+
{/* Friends Feed */}
-
-
Träume von Freunden
-
- {friendsDreams.map((dream, index) => {
- const dreamUser = MockUserMap.get(dream.userId);
- return (
-
-
+
+
+
Träume von Freunden
+
+ {friendsDreams.map((dream, index) => {
+ const dreamUser = MockUserMap.get(dream.userId);
+ return (
+
- {dreamUser?.profilePicture ? (
-

- ) : (
-
{dreamUser?.name.charAt(0)}
- )}
+ className="p-2"
+ style={{animationDelay: `${index * 0.1}s`}}>
+
+
+ {dreamUser?.profilePicture ? (
+

+ ) : (
+
{dreamUser?.name.charAt(0)}
+ )}
+
+
{dreamUser?.name}
+
+
{dream.title}
+
+ {formatDateSimple(dream.date)}
+
- {dreamUser?.name}
-
-
{dream.title}
-
- {formatDateSimple(dream.date)}
-
-
- );
- })}
+
+ );
+ })}
+
-
+
- {/* Daily Highlights */}
+ {/* Daily Highlights */
+ }
Tägliche Highlights
@@ -127,13 +129,15 @@ export default function Home() {
-
Top Traumthemen
+
Top
+ Traumthemen
{topDreamTopics.map((topic, index) => (
-
- {topic.label}: {topic.percentage}%
+ {topic.label}: {topic.percentage}%
))}
@@ -141,13 +145,15 @@ export default function Home() {
-
Stimmungskategorien
+
Stimmungskategorien
{primaryMoodCategories.map((mood, index) => (
-
- {mood.label}: {mood.percentage}%
+ {mood.label}: {mood.percentage}%
))}
@@ -155,13 +161,16 @@ export default function Home() {
- {/* Ad Banner */}
+ {/* Ad Banner */
+ }
-
-
ReMind Sensor-Gerät
-
Verbessere deine Traumerfahrung mit unserem Sensor mit EEG,
+
Verbessere deine Traumerfahrung mit unserem Sensor
+ mit EEG,
Bewegungserkennung und Vitalzeichen-Überwachung.
- );
+ )
+ ;
}