create a web html for architecture
- User
create a web html for architecture
- Assistant
- User
añade la funcion de cuando das click en un proyecto se abra una nueva ventana con tres secciones una en la parte superior y 2 en la parte inferior
- Assistant
create a web html for architecture
añade la funcion de cuando das click en un proyecto se abra una nueva ventana con tres secciones una en la parte superior y 2 en la parte inferior
Certainly! Here's a simple, clean, and modern HTML template for an architecture-themed website. It includes a home page layout with sections for showcasing projects, services, an about section, and contact information. The design uses basic CSS for styling and is responsive for different screen sizes.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Architectural Designs</title>
<style>
/* Reset some default styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background-color: #fafafa;
}
header {
background-color: #222;
color: #fff;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
header h1 {
font-weight: 700;
letter-spacing: 2px;
}
nav a {
color: #fff;
text-decoration: none;
margin-left: 2rem;
font-weight: 600;
transition: color 0.3s ease;
}
nav a:hover {
color: #f39c12;
}
.hero {
background: url('https://images.unsplash.com/photo-1501594907352-04cda38ebc29?auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
height: 70vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
color: white;
padding: 0 2rem;
}
.hero h2 {
font-size: 3rem;
background-color: rgba(0, 0, 0, 0.5);
padding: 1rem 2rem;
border-radius: 8px;
max-width: 700px;
margin: 0 auto;
}
section {
padding: 4rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
section h2 {
font-size: 2.5rem;
margin-bottom: 2rem;
text-align: center;
color: #222;
}
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}
.project-card {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 0 12px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
cursor: pointer;
}
.project-card:hover {
transform: translateY(-8px);
}
.project-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.project-content {
padding: 1.5rem;
}
.project-content h3 {
margin-bottom: 0.5rem;
color: #f39c12;
}
.project-content p {
color: #555;
font-size: 0.95rem;
}
.services-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 3rem;
}
.service-item {
background: white;
padding: 2rem;
border-radius: 8px;
width: 280px;
box-shadow: 0 0 12px rgba(0,0,0,0.1);
text-align: center;
transition: box-shadow 0.3s ease;
}
.service-item:hover {
box-shadow: 0 0 20px #f39c12;
}
.service-item h3 {
margin-bottom: 1rem;
color: #222;
}
.service-item p {
color: #555;
}
.about-text {
max-width: 900px;
margin: 0 auto;
font-size: 1.1rem;
color: #444;
}
.contact-form {
max-width: 600px;
margin: 0 auto;
}
.contact-form label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: #222;
}
.contact-form input,
.contact-form textarea {
width: 100%;
padding: 0.8rem;
margin-bottom: 1.5rem;
border-radius: 6px;
border: 1px solid #ccc;
font-size: 1rem;
resize: vertical;
}
.contact-form button {
background-color: #f39c12;
color: white;
border: none;
padding: 1rem 2rem;
font-size: 1rem;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.contact-form button:hover {
background-color: #d17c0f;
}
footer {
background-color: #222;
color: #bbb;
text-align: center;
padding: 1.5rem 2rem;
margin-top: 3rem;
}
@media (max-width: 600px) {
header {
flex-direction: column;
align-items: flex-start;
}
nav {
margin-top: 0.5rem;
}
nav a {
margin-left: 1rem;
}
.hero h2 {
font-size: 2rem;
}
}
</style>
</head>
<body>
<header>
<h1>ArchDesigns</h1>
<nav>
<a href="#projects">Projects</a>
<a href="#services">Services</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</nav>
</header>
<section class="hero">
<h2>Innovative Architecture for Modern Living</h2>
</section>
<section id="projects">
<h2>Our Projects</h2>
<div class="projects-grid">
<div class="project-card">
<img src="https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=600&q=80" alt="Modern House" />
<div class="project-content">
<h3>Modern House</h3>
<p>A contemporary home designed with minimalism and sustainability in mind.</p>
</div>
</div>
<div class="project-card">
<img src="https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=600&q=80" alt="Office Building" />
<div class="project-content">
<h3>Corporate Office</h3>
<p>State-of-the-art office space fostering collaboration and productivity.</p>
</div>
</div>
<div class="project-card">
<img src="https://images.unsplash.com/photo-1533062223519-7c045c15bce7?auto=format&fit=crop&w=600&q=80" alt="Urban Complex" />
<div class="project-content">
<h3>Urban Complex</h3>
<p>A mixed-use complex blending residential, commercial, and recreational areas.</p>
</div>
</div>
</div>
</section>
<section id="services">
<h2>Services</h2>
<div class="services-list">
<div class="service-item">
<h3>Architectural Design</h3>
<p>Creative designs that blend aesthetics with functionality.</p>
</div>
<div class="service-item">
<h3>Interior Planning</h3>
<p>Optimize your interior spaces for comfort and efficiency.</p>
</div>
<div class="service-item">
<h3>Project Management</h3>
<p>Seamlessly manage your construction projects from start to finish.</p>
</div>
</div>
</section>
<section id="about">
<h2>About Us</h2>
<p class="about-text">
ArchDesigns is a leading architecture firm committed to delivering visionary and sustainable designs.
Our team of passionate architects and planners strive to create spaces that inspire and endure.
With over 15 years in the industry, we have completed numerous projects ranging from residential homes
to large-scale urban developments.
</p>
</section>
<section id="contact">
<h2>Contact Us</h2>
<form class="contact-form" action="#" method="POST">
<label for="name">Name</label>
<input type="text" id="name" name="name" placeholder="Your full name" required />
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="your.email@example.com" required />
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" placeholder="Write your message..." required></textarea>
<button type="submit">Send Message</button>
</form>
</section>
<footer>
© 2024 ArchDesigns. All rights reserved.
</footer>
</body>
</html>
You can customize images, text, colors, and add JavaScript or backend functionality as needed. Let me know if you'd like me to help you with that!
Claro, te voy a añadir la funcionalidad para que al hacer clic en cualquier proyecto se abra una nueva ventana (pop-up) con un contenido estructurado en tres secciones: una sección en la parte superior y dos secciones en la parte inferior (lado a lado).
Para ello haré lo siguiente:
onclick a cada proyecto que abra una ventana nueva.Voy a modificar el código original para integrar todo esto usando JavaScript.
Aquí está el código completo modificado (solo la parte relevante, respetando el diseño base):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Architectural Designs</title>
<style>
/* (todo el estilo anterior permanece igual, para evitar repetirlo aquí, lo añado abajo) */
/* Reset some default styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background-color: #fafafa;
}
header {
background-color: #222;
color: #fff;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
header h1 {
font-weight: 700;
letter-spacing: 2px;
}
nav a {
color: #fff;
text-decoration: none;
margin-left: 2rem;
font-weight: 600;
transition: color 0.3s ease;
}
nav a:hover {
color: #f39c12;
}
.hero {
background: url('https://images.unsplash.com/photo-1501594907352-04cda38ebc29?auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
height: 70vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
color: white;
padding: 0 2rem;
}
.hero h2 {
font-size: 3rem;
background-color: rgba(0, 0, 0, 0.5);
padding: 1rem 2rem;
border-radius: 8px;
max-width: 700px;
margin: 0 auto;
}
section {
padding: 4rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
section h2 {
font-size: 2.5rem;
margin-bottom: 2rem;
text-align: center;
color: #222;
}
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}
.project-card {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 0 12px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
cursor: pointer;
}
.project-card:hover {
transform: translateY(-8px);
}
.project-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.project-content {
padding: 1.5rem;
}
.project-content h3 {
margin-bottom: 0.5rem;
color: #f39c12;
}
.project-content p {
color: #555;
font-size: 0.95rem;
}
.services-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 3rem;
}
.service-item {
background: white;
padding: 2rem;
border-radius: 8px;
width: 280px;
box-shadow: 0 0 12px rgba(0,0,0,0.1);
text-align: center;
transition: box-shadow 0.3s ease;
}
.service-item:hover {
box-shadow: 0 0 20px #f39c12;
}
.service-item h3 {
margin-bottom: 1rem;
color: #222;
}
.service-item p {
color: #555;
}
.about-text {
max-width: 900px;
margin: 0 auto;
font-size: 1.1rem;
color: #444;
}
.contact-form {
max-width: 600px;
margin: 0 auto;
}
.contact-form label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: #222;
}
.contact-form input,
.contact-form textarea {
width: 100%;
padding: 0.8rem;
margin-bottom: 1.5rem;
border-radius: 6px;
border: 1px solid #ccc;
font-size: 1rem;
resize: vertical;
}
.contact-form button {
background-color: #f39c12;
color: white;
border: none;
padding: 1rem 2rem;
font-size: 1rem;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.contact-form button:hover {
background-color: #d17c0f;
}
footer {
background-color: #222;
color: #bbb;
text-align: center;
padding: 1.5rem 2rem;
margin-top: 3rem;
}
@media (max-width: 600px) {
header {
flex-direction: column;
align-items: flex-start;
}
nav {
margin-top: 0.5rem;
}
nav a {
margin-left: 1rem;
}
.hero h2 {
font-size: 2rem;
}
}
</style>
</head>
<body>
<header>
<h1>ArchDesigns</h1>
<nav>
<a href="#projects">Projects</a>
<a href="#services">Services</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</nav>
</header>
<section class="hero">
<h2>Innovative Architecture for Modern Living</h2>
</section>
<section id="projects">
<h2>Our Projects</h2>
<div class="projects-grid">
<!-- Cada project-card tendrá un atributo data con info para la ventana -->
<div class="project-card" onclick="openProjectWindow('Modern House', 'A contemporary home designed with minimalism and sustainability in mind.', 'https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1000&q=80')">
<img src="https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=600&q=80" alt="Modern House" />
<div class="project-content">
<h3>Modern House</h3>
<p>A contemporary home designed with minimalism and sustainability in mind.</p>
</div>
</div>
<div class="project-card" onclick="openProjectWindow('Corporate Office', 'State-of-the-art office space fostering collaboration and productivity.', 'https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1000&q=80')">
<img src="https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=600&q=80" alt="Office Building" />
<div class="project-content">
<h3>Corporate Office</h3>
<p>State-of-the-art office space fostering collaboration and productivity.</p>
</div>
</div>
<div class="project-card" onclick="openProjectWindow('Urban Complex', 'A mixed-use complex blending residential, commercial, and recreational areas.', 'https://images.unsplash.com/photo-1533062223519-7c045c15bce7?auto=format&fit=crop&w=1000&q=80')">
<img src="https://images.unsplash.com/photo-1533062223519-7c045c15bce7?auto=format&fit=crop&w=600&q=80" alt="Urban Complex" />
<div class="project-content">
<h3>Urban Complex</h3>
<p>A mixed-use complex blending residential, commercial, and recreational areas.</p>
</div>
</div>
</div>
</section>
<section id="services">
<h2>Services</h2>
<div class="services-list">
<div class="service-item">
<h3>Architectural Design</h3>
<p>Creative designs that blend aesthetics with functionality.</p>
</div>
<div class="service-item">
<h3>Interior Planning</h3>
<p>Optimize your interior spaces for comfort and efficiency.</p>
</div>
<div class="service-item">
<h3>Project Management</h3>
<p>Seamlessly manage your construction projects from start to finish.</p>
</div>
</div>
</section>
<section id="about">
<h2>About Us</h2>
<p class="about-text">
ArchDesigns is a leading architecture firm committed to delivering visionary and sustainable designs.
Our team of passionate architects and planners strive to create spaces that inspire and endure.
With over 15 years in the industry, we have completed numerous projects ranging from residential homes
to large-scale urban developments.
</p>
</section>
<section id="contact">
<h2>Contact Us</h2>
<form class="contact-form" action="#" method="POST">
<label for="name">Name</label>
<input type="text" id="name" name="name" placeholder="Your full name" required />
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="your.email@example.com" required />
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" placeholder="Write your message..." required></textarea>
<button type="submit">Send Message</button>
</form>
</section>
<footer>
© 2024 ArchDesigns. All rights reserved.
</footer>
<script>
function openProjectWindow(title, description, imageUrl) {
// Definir tamaño y características
const width = 900;
const height = 600;
// Calcular posición centrada en pantalla
const left = window.screenX + (window.outerWidth - width) / 2;
const top = window.screenY + (window.outerHeight - height) / 2;
const features = `width=${width},height=${height},top=${top},left=${left},resizable=yes,scrollbars=yes`;
// Abrir ventana nueva
const win = window.open('', title, features);
// Contenido de la ventana nueva: estructura de 3 secciones
const html = `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>${title}</title>
<style>
body {
margin:0; padding:0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
display: flex;
flex-direction: column;
height: 100vh;
color: #333;
background-color: #fafafa;
}
header {
background-color: #222;
color: white;
padding: 1rem;
text-align: center;
font-weight: 700;
font-size: 1.8rem;
}
.top-section {
flex: 0 0 40%;
background: url('${imageUrl}') center/cover no-repeat;
display: flex;
align-items: flex-end;
padding: 1rem 2rem;
color: white;
text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
font-size: 1.5rem;
font-weight: 600;
}
.bottom-section {
flex: 1;
display: flex;
gap: 1rem;
padding: 1rem;
}
.bottom-left, .bottom-right {
flex: 1;
background: white;
padding: 1rem;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
overflow-y: auto;
}
.bottom-left h3, .bottom-right h3 {
color: #f39c12;
margin-bottom: 0.5rem;
}
p {
line-height: 1.4;
}
/* Responsive */
@media (max-width: 600px) {
.bottom-section {
flex-direction: column;
}
.top-section {
font-size: 1.2rem;
}
}
</style>
</head>
<body>
<header>${title}</header>
<div class="top-section">
${description}
</div>
<div class="bottom-section">
<div class="bottom-left">
<h3>Detalles del Proyecto</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin ac massa et nulla condimentum volutpat a et elit. Aliquam erat volutpat.</p>
<p>Convallis purus sit amet magna vestibulum, nec maximus nunc pretium.</p>
</div>
<div class="bottom-right">
<h3>Información Adicional</h3>
<p>Equipo de arquitectos: Equipo ArchDesigns.</p>
<p>Fecha de finalización estimada: Diciembre 2024.</p>
<p>Ubicación: Ciudad de ejemplo.</p>
</div>
</div>
</body>
</html>
`;
win.document.write(html);
win.document.close();
}
</script>
</body>
</html>
.project-card tiene un atributo onclick que llama a la función openProjectWindow() con datos específicos (título, descripción, URL imagen).openProjectWindow() abre una ventana nueva centrada de tamaño 900x600 px.header con el título.top-section con fondo de la imagen y texto descripción.bottom-section dividido en bottom-left y bottom-right con contenido dummy (puedes personalizarlo).Prueba hacer clic en los proyectos para ver el resultado. Si quieres, puedo ayudarte a añadir datos reales o mejorar el estilo!
Not yet included in a published release.