opus / src / components / HeroWithOpusLoop.jsx
567 words
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
import React from 'react';
import { motion, useScroll, useTransform } from 'framer-motion';
import OpusLoopBackground from './backgrounds/OpusLoopBackground';
import Smartphone from './Smartphone';
import loopIcon from '../assets/loopIcon.png';

const HeroWithOpusLoop = () => {
    return (
        <section style={{
            position: 'relative',
            minHeight: '100vh',
            display: 'flex',
            flexDirection: 'column',
            alignItems: 'center',
            background: '#050505',
            paddingBottom: '4rem'
        }}>
            {/* Continuous Spiral Background */}
            <div style={{ position: 'absolute', top: 0, left: 0, width: '100%', height: '100%', zIndex: 1 }}>
                <OpusLoopBackground />
            </div>

            {/* Content Container */}
            <div style={{
                position: 'relative',
                zIndex: 10,
                display: 'flex',
                flexDirection: 'column',
                alignItems: 'center',
                width: '100%',
                maxWidth: '1024px',
                padding: '0 2rem'
            }}>

                {/* Hero Content - Logo and Tagline */}
                <div style={{
                    minHeight: '70vh',
                    display: 'flex',
                    flexDirection: 'column',
                    justifyContent: 'center',
                    alignItems: 'center',
                    width: '100%'
                }}>
                    <motion.div
                        initial={{ opacity: 0, scale: 0.8 }}
                        animate={{ opacity: 1, scale: 1 }}
                        transition={{ duration: 0.8, ease: "easeOut" }}
                        style={{ marginBottom: '2rem' }}
                    >
                        <img src="/opusLogo.svg" alt="OPUS Logo" style={{ width: '120px', height: '120px' }} />
                    </motion.div>

                    <motion.h1
                        initial={{ opacity: 0, y: 20 }}
                        animate={{ opacity: 1, y: 0 }}
                        transition={{ duration: 0.8, delay: 0.5, ease: "easeOut" }}
                        style={{
                            fontSize: '4rem',
                            fontWeight: 800,
                            letterSpacing: '0.05em',
                            textAlign: 'center',
                            color: '#ffffff',
                            margin: 0
                        }}
                    >
                        OPUS
                    </motion.h1>

                    <motion.p
                        initial={{ opacity: 0 }}
                        animate={{ opacity: 0.7 }}
                        transition={{ duration: 0.8, delay: 1, ease: "easeOut" }}
                        style={{
                            fontSize: '1.2rem',
                            fontWeight: 300,
                            marginTop: '1rem',
                            letterSpacing: '0.1em',
                            textTransform: 'uppercase',
                            textAlign: 'center'
                        }}
                    >
                        Human Experience Design
                    </motion.p>
                </div>

                {/* Opus Loop Content - Centered over spiral */}
                <div style={{
                    display: 'flex',
                    flexDirection: 'column',
                    alignItems: 'center',
                    gap: '2rem',
                    paddingTop: '4rem',
                    paddingBottom: '4rem',
                    width: '100%'
                }}>
                    {/* Top Section: Icon + Title + Description */}
                    <motion.div
                        initial={{ opacity: 0, y: -20 }}
                        whileInView={{ opacity: 1, y: 0 }}
                        transition={{ duration: 0.8, ease: "easeOut" }}
                        viewport={{ once: true, margin: "-100px" }}
                        style={{
                            textAlign: 'center',
                            width: '100%',
                            maxWidth: '800px'
                        }}
                    >
                        <motion.div
                            initial={{ opacity: 0, y: 20 }}
                            whileInView={{ opacity: 1, y: 0 }}
                            transition={{ duration: 0.8, ease: "easeOut" }}
                            viewport={{ once: true, margin: "-100px" }}
                            style={{ marginBottom: '2rem' }}
                        >
                            <img
                                src={loopIcon}
                                alt="Opus Loop Icon"
                                style={{
                                    width: '80px',
                                    height: '80px',
                                    borderRadius: '18px',
                                    boxShadow: '0 10px 30px rgba(0,0,0,0.5)'
                                }}
                            />
                        </motion.div>
                        <h2 style={{ fontSize: '3rem', fontWeight: 600, color: '#ffffff', margin: '0 0 1rem 0', textShadow: '0 2px 20px rgba(0,0,0,0.8), 0 4px 40px rgba(0,0,0,0.6)' }}>Opus Loop</h2>
                        <p style={{ fontSize: '1.2rem', lineHeight: 1.6, color: '#e0e0e0', margin: 0, textShadow: '0 2px 16px rgba(0,0,0,0.8), 0 4px 32px rgba(0,0,0,0.6)' }}>
                            Your personal tool for your mindful moments. No subscription, no bloated library of content. Just your soundscapes and your mind.
                        </p>
                    </motion.div>

                    {/* Phone Mockup - Centered */}
                    {/* Phone Mockup */}
                    <motion.div
                        initial={{ opacity: 1, scale: 1 }}
                        whileInView={{ opacity: 1, scale: 1 }}
                        viewport={{ once: true }}
                        style={{
                            width: '100%',
                            maxWidth: '300px', // Reduced from 320px
                            margin: '0 auto'
                        }}
                    >
                        <Smartphone
                            videoSrc="/opusloop.mp4"
                            appIcon={loopIcon}
                            appName="Opus Loop"
                        />
                    </motion.div>

                    {/* Button */}
                    <motion.div
                        initial={{ opacity: 0, y: 20 }}
                        whileInView={{ opacity: 1, y: 0 }}
                        transition={{ duration: 0.8, delay: 0.4, ease: "easeOut" }}
                        viewport={{ once: true, margin: "-100px" }}
                        style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '0.5rem' }}
                    >
                        <a
                            href="#"
                            style={{
                                display: 'inline-block',
                                padding: '12px 30px',
                                background: '#fff',
                                color: '#000',
                                borderRadius: '8px',
                                fontWeight: 600,
                                fontSize: '1rem',
                                transition: 'transform 0.2s',
                                textDecoration: 'none'
                            }}
                            onMouseEnter={(e) => e.target.style.transform = 'scale(1.05)'}
                            onMouseLeave={(e) => e.target.style.transform = 'scale(1)'}
                        >
                            Download on the App Store
                        </a>
                        <p style={{ fontSize: '0.85rem', color: '#888', margin: 0 }}>Just $5 once. No subscription.</p>
                    </motion.div>
                </div>
            </div>
        </section>
    );
};

export default HeroWithOpusLoop;

static mirror of HEAD · about · clone: git clone https://git.makefuture.ro/opus.git