Skip to content

Instantly share code, notes, and snippets.

@thinkphp
Created June 15, 2025 06:55
Show Gist options
  • Save thinkphp/1dc98539bf147705bbce525d54af6320 to your computer and use it in GitHub Desktop.
Save thinkphp/1dc98539bf147705bbce525d54af6320 to your computer and use it in GitHub Desktop.
Booking Style CSS
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}
.header {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
padding: 1rem 2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 100;
}
.nav {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}
.logo {
font-size: 1.8rem;
font-weight: 700;
background: linear-gradient(45deg, #ff6b6b, #ee5a52);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.search-bar {
display: flex;
background: white;
border-radius: 50px;
padding: 0.5rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
gap: 1rem;
align-items: center;
min-width: 500px;
}
.search-input {
border: none;
padding: 0.8rem 1rem;
border-radius: 25px;
flex: 1;
outline: none;
font-size: 0.9rem;
}
.search-btn {
background: linear-gradient(45deg, #ff6b6b, #ee5a52);
color: white;
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
cursor: pointer;
transition: transform 0.2s;
}
.search-btn:hover {
transform: scale(1.1);
}
.user-menu {
display: flex;
align-items: center;
gap: 1rem;
}
.profile-btn {
background: linear-gradient(45deg, #667eea, #764ba2);
color: white;
border: none;
padding: 0.8rem 1.5rem;
border-radius: 25px;
cursor: pointer;
font-weight: 500;
transition: transform 0.2s;
}
.profile-btn:hover {
transform: translateY(-2px);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.filters {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
flex-wrap: wrap;
}
.filter-btn {
background: rgba(255, 255, 255, 0.9);
border: none;
padding: 0.8rem 1.5rem;
border-radius: 25px;
cursor: pointer;
font-weight: 500;
transition: all 0.3s;
backdrop-filter: blur(10px);
}
.filter-btn:hover, .filter-btn.active {
background: white;
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.properties-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}
.property-card {
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
overflow: hidden;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
transition: all 0.3s;
cursor: pointer;
backdrop-filter: blur(10px);
}
.property-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.property-image {
width: 100%;
height: 200px;
background: linear-gradient(45deg, #667eea, #764ba2);
position: relative;
overflow: hidden;
}
.property-image::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 60px;
height: 60px;
background: rgba(255, 255, 255, 0.2);
border-radius: 10px;
backdrop-filter: blur(10px);
}
.property-image::after {
content: '🏠';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 2rem;
}
.property-details {
padding: 1.5rem;
}
.property-title {
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: #333;
}
.property-location {
color: #666;
margin-bottom: 1rem;
font-size: 0.9rem;
}
.property-features {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
font-size: 0.85rem;
color: #777;
}
.property-price {
display: flex;
justify-content: space-between;
align-items: center;
}
.price {
font-size: 1.3rem;
font-weight: 700;
color: #ff6b6b;
}
.rating {
display: flex;
align-items: center;
gap: 0.3rem;
font-size: 0.9rem;
color: #666;
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(5px);
z-index: 1000;
align-items: center;
justify-content: center;
}
.modal.active {
display: flex;
}
.modal-content {
background: white;
border-radius: 20px;
padding: 2rem;
max-width: 500px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
position: relative;
animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
from {
opacity: 0;
transform: translateY(-50px) scale(0.9);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.close-btn {
position: absolute;
top: 1rem;
right: 1rem;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #666;
}
.booking-form {
margin-top: 1rem;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: #333;
}
.form-input, .form-select {
width: 100%;
padding: 0.8rem;
border: 2px solid #e0e0e0;
border-radius: 10px;
font-size: 1rem;
transition: border-color 0.3s;
}
.form-input:focus, .form-select:focus {
outline: none;
border-color: #667eea;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
.book-btn {
width: 100%;
background: linear-gradient(45deg, #ff6b6b, #ee5a52);
color: white;
border: none;
padding: 1rem;
border-radius: 15px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s;
}
.book-btn:hover {
transform: translateY(-2px);
}
.booking-summary {
background: #f8f9fa;
padding: 1.5rem;
border-radius: 15px;
margin-top: 1rem;
}
@media (max-width: 768px) {
.search-bar {
min-width: auto;
flex-direction: column;
gap: 0.5rem;
}
.nav {
flex-direction: column;
gap: 1rem;
}
.properties-grid {
grid-template-columns: 1fr;
}
.form-row {
grid-template-columns: 1fr;
}
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment