Create beautifull web page with react
- User
Create beautifull web page with react
Assistant
Here's a beautiful React web page example with modern styling and interactivity. This uses React 18 with a clean component structure:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Beautiful React Page</title> <script src="https://unpkg.com/react@18/umd/react.development.js"></script> <script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script> <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap" rel="stylesheet"> </head> <body> <div id="root"></div> <script type="text/babel"> const { useState } = React; // Styled Components const styles = { container: { fontFamily: "'Poppins', sans-serif", maxWidth: "1200px", margin: "0 auto", padding: "20px", background: "linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)", minHeight: "100vh", }, header: { textAlign: "center", padding: "2rem 0", color: "#2d3436", }, nav: { display: "flex", justifyContent: "space-between", alignItems: "center", padding: "1rem 2rem", background: "rgba(255, 255, 255, 0.9)", borderRadius: "15px", boxShadow: "0 4px 6px rgba(0,0,0,0.1)", }, hero: { display: "flex", alignItems: "center", gap: "2rem", padding: "4rem 2rem", background: "white", borderRadius: "20px", margin: "2rem 0", boxShadow: "0 10px 30px rgba(0,0,0,0.1)", }, ctaButton: { background: "linear-gradient(45deg, #6a11cb 0%, #2575fc 100%)", color: "white", padding: "1rem 2rem", border: "none", borderRadius: "50px", fontSize: "1.1rem", cursor: "pointer", transition: "transform 0.3s ease", boxShadow: "0 4px 15px rgba(106, 17, 203, 0.3)", }, featureGrid: { display: "grid", gridTemplateColumns: "repeat(auto-fit, minmax(300px, 1fr))", gap: "2rem", padding: "2rem 0", }, featureCard: { background: "white", padding: "2rem", borderRadius: "15px", boxShadow: "0 5px 15px rgba(0,0,0,0.05)", transition: "transform 0.3s ease", } }; function App() { const [darkMode, setDarkMode] = useState(false); const [hover, setHover] = useState(false); const toggleTheme = () => setDarkMode(!darkMode); return ( <div style={{...styles.container, background: darkMode ? '#1a1a2e' : styles.container.background}}> <nav style={styles.nav}> <h2 style={{color: darkMode ? 'white' : '#2d3436'}}>✨ Nova</h2> <button onClick={toggleTheme} style={{ ...styles.ctaButton, padding: "0.5rem 1rem", fontSize: "0.9rem", background: darkMode ? '#f5f7fa' : '#2575fc', color: darkMode ? '#1a1a2e' : 'white' }} > {darkMode ? '☀️ Light' : '🌙 Dark'} </button> </nav> <header style={styles.header}> <h1 style={{fontSize: "3.5rem", marginBottom: "1rem", color: darkMode ? 'white' : '#2d3436'}}> Create Amazing Experiences </h1> <p style={{fontSize: "1.2rem", color: darkMode ? '#b8b8d1' : '#636e72'}}> Build beautiful web applications with React and modern design </p> </header> <div style={styles.hero}> <div style={{flex: 1}}> <h2 style={{fontSize: "2.5rem", marginBottom: "1.5rem", color: darkMode ? '#b8b8d1' : '#2d3436'}}> Modern React Development </h2> <p style={{fontSize: "1.1rem", lineHeight: "1.6", color: darkMode ? '#b8b8d1' : '#636e72', marginBottom: "2rem"}}> Create stunning user interfaces with React's component-based architecture. Leverage modern styling techniques and interactive elements. </p> <button style={{ ...styles.ctaButton, transform: hover ? 'scale(1.05)' : 'none', background: darkMode ? '#f5f7fa' : styles.ctaButton.background, color: darkMode ? '#1a1a2e' : 'white' }} onMouseEnter={() => setHover(true)} onMouseLeave={() => setHover(false)} > Get Started </button> </div> <div style={{flex: 1, display: 'flex', justifyContent: 'center'}}> <div style={{ width: "300px", height: "300px", background: "linear-gradient(45deg, #6a11cb 0%, #2575fc 100%)", borderRadius: "20px", boxShadow: "0 20px 40px rgba(106, 17, 203, 0.3)" }} /> </div> </div> <div style={styles.featureGrid}> {['Modern Design', 'Responsive Layout', 'Interactive Elements'].map((feature, i) => ( <div key={i} style={{ ...styles.featureCard, transform: hover ? `translateY(-5px)` : 'none' }} onMouseEnter={() => setHover(true)} onMouseLeave={() => setHover(false)} > <h3 style={{color: darkMode ? '#b8b8d1' : '#2d3436', marginBottom: "1rem"}}> {feature} </h3> <p style={{color: darkMode ? '#b8b8d1' : '#636e72'}}> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore. </p> </div> ))} </div> <footer style={{textAlign: 'center', padding: '2rem', color: darkMode ? 'white' : '#2d3436'}}> <p>© 2025 Beautiful React Page. Made with ❤️</p> </footer> </div> ); } const root = ReactDOM.createRoot(document.getElementById('root')); root.render(<App />); </script> </body> </html>Features included:
- Modern gradient backgrounds
- Responsive grid layout
- Interactive hover effects
- Dark/light mode toggle
- Card components with shadow effects
- Smooth animations and transitions
- Gradient buttons with hover effects
- Clean typography using Google Fonts
- Modern color scheme
- Component-based architecture
To use:
- Save as
.htmlfile - Open in modern browser
- Click the theme toggle button to switch between light/dark modes
- Hover over elements to see interactive effects
Want to enhance it? I can:
- Add React Router for navigation
- Implement form validation
- Add animations with Framer Motion
- Create more complex component structures
- Add backend integration examples
- Implement responsive image galleries
Let me know if you want to modify the design or add specific features!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.