-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetail.html
140 lines (123 loc) · 3.86 KB
/
detail.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Detalle del Profesional</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
}
header {
background-color: #3A6EA5;
color: white;
padding: 20px;
text-align: center;
font-size: 24px;
font-weight: bold;
}
.search-container {
background-color: #E8F0FE;
padding: 15px 20px;
text-align: center;
}
.search-container input {
padding: 10px;
font-size: 16px;
width: 70%;
margin-bottom: 15px;
border: 2px solid #3A6EA5;
border-radius: 5px;
}
.filter-buttons {
display: flex;
justify-content: center;
gap: 10px;
flex-wrap: wrap;
}
.detail {
text-align: center;
padding: 20px;
background: white;
border-radius: 8px;
max-width: 500px;
margin: 40px auto;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.detail img {
width: 150px;
height: 150px;
border-radius: 50%;
margin-bottom: 20px;
}
.detail h2 {
color: #3A6EA5;
}
.message-button {
background-color: #8CC084;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}
.message-button:hover {
background-color: #6EA26F;
}
.filter-buttons button {
display: flex;
align-items: center;
justify-content: center;
background: #8CC084;
color: white;
padding: 10px 15px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
font-weight: bold;
}
.filter-buttons button span {
font-size: 18px;
margin-right: 5px;
}
</style>
</head>
<body>
<header>
Cardenales - Servicios Profesionales
</header>
<div class="search-container">
<input type="text" placeholder="Buscar por nombre o reseña...">
<div class="filter-buttons">
<button><span>🔧</span>Plomeros</button>
<button><span>🪚</span>Carpinteros</button>
<button><span>💡</span>Electricistas</button>
<button><span>🪜</span>Tabla Roqueros</button>
<button><span>🏗️</span>Albañiles</button>
<button><span>🧹</span>Empleadas Domésticas</button>
</div>
</div>
<div class="detail">
<img id="profile-image" src="https://via.placeholder.com/150" alt="Foto">
<h2 id="name">Nombre</h2>
<p id="job">Oficio</p>
<p id="stars" style="color: gold; font-size: 18px;">★★★★★</p>
<button class="message-button">Enviar Mensaje</button>
</div>
<script>
// Get query parameters from the URL
const params = new URLSearchParams(window.location.search);
// Update the content dynamically
document.getElementById('name').textContent = params.get('name') || 'Nombre';
document.getElementById('job').textContent = params.get('job') || 'Oficio';
document.getElementById('stars').textContent = params.get('stars') || '★★★★☆';
document.getElementById('profile-image').src = params.get('image') || 'https://via.placeholder.com/150';
</script>
</body>
</html>