DeepSeek ArtifactsDeepSeek Artifacts

Widget Notificación Confirmación Email

4.0
es
Desarrollo Web
widget
responsive
notificación
confirmación
email

Prompt

necesito un widget rectangular redondeado responsive que muestre un mensaje de notificación de que el usuario necesita confirmar su correo para poder disfrutar el contenido, es decir que cuando se lance aparezca en frente con el contenido detrás un poco borroso o oscuro hasta que cierre, con 2 botones, uno para cerrar y otro para ir a la pantalla de confirmación de correo, 

Resultado Generado

import React, { useState } from 'react';
import './App.css';

const App = () => {
  const [showNotification, setShowNotification] = useState(true);

  const handleClose = () => {
    setShowNotification(false);
  };

  const handleConfirm = () => {
    window.location.href = '/confirm-email';
  };

  return (
    <div className="App">
      {showNotification && (
        <div className="notification-overlay">
          <div className="notification-widget">
            <p>Please confirm your email to enjoy the content.</p>
            <div className="button-container">
              <button onClick={handleClose}>Close</button>
              <button onClick={handleConfirm}>Confirm Email</button>
            </div>
          </div>
        </div>
      )}
      <div className="content">
        <h1>Welcome to Our Website</h1>
        <p>Explore our amazing content and features.</p>
      </div>
    </div>
  );
};

export default App;

Más Recomendaciones

Ver Todo