Created
May 10, 2025 10:36
-
-
Save thinkphp/6e3c638ecc70f3b927ce4596bdbd2a77 to your computer and use it in GitHub Desktop.
Rent a Car Style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
} | |
body { | |
background-color: #f5f5f5; | |
color: #333; | |
} | |
header { | |
background-color: #1a73e8; | |
color: white; | |
padding: 20px 0; | |
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | |
} | |
.container { | |
max-width: 1200px; | |
margin: 0 auto; | |
padding: 0 20px; | |
} | |
.header-content { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
} | |
.logo { | |
font-size: 24px; | |
font-weight: bold; | |
} | |
nav ul { | |
display: flex; | |
list-style: none; | |
} | |
nav ul li { | |
margin-left: 20px; | |
} | |
nav ul li a { | |
color: white; | |
text-decoration: none; | |
transition: color 0.3s; | |
} | |
nav ul li a:hover { | |
color: #e0e0e0; | |
} | |
.hero { | |
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/api/placeholder/1200/500'); | |
background-size: cover; | |
background-position: center; | |
height: 500px; | |
display: flex; | |
align-items: center; | |
color: white; | |
text-align: center; | |
} | |
.hero-content { | |
max-width: 700px; | |
margin: 0 auto; | |
} | |
.hero h1 { | |
font-size: 48px; | |
margin-bottom: 20px; | |
} | |
.hero p { | |
font-size: 20px; | |
margin-bottom: 30px; | |
} | |
.search-form { | |
background-color: white; | |
padding: 30px; | |
border-radius: 8px; | |
margin-top: -70px; | |
position: relative; | |
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); | |
} | |
.form-group { | |
display: grid; | |
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
gap: 20px; | |
margin-bottom: 20px; | |
} | |
.form-control { | |
width: 100%; | |
padding: 12px; | |
border: 1px solid #ddd; | |
border-radius: 4px; | |
font-size: 16px; | |
} | |
.date-range-container { | |
display: grid; | |
grid-template-columns: 1fr 1fr; | |
gap: 10px; | |
} | |
.date-label { | |
display: block; | |
margin-bottom: 5px; | |
font-weight: 500; | |
color: #666; | |
} | |
.rental-duration { | |
text-align: center; | |
margin-top: 10px; | |
font-weight: 500; | |
color: #1a73e8; | |
} | |
.btn { | |
padding: 14px 30px; | |
background-color: #1a73e8; | |
color: white; | |
border: none; | |
border-radius: 4px; | |
cursor: pointer; | |
font-size: 16px; | |
transition: background-color 0.3s; | |
} | |
.btn:hover { | |
background-color: #1557b0; | |
} | |
.section { | |
padding: 80px 0; | |
} | |
.section-title { | |
text-align: center; | |
font-size: 36px; | |
margin-bottom: 50px; | |
} | |
.cars-grid { | |
display: grid; | |
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); | |
gap: 30px; | |
} | |
.car-card { | |
background-color: white; | |
border-radius: 8px; | |
overflow: hidden; | |
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); | |
transition: transform 0.3s, box-shadow 0.3s; | |
} | |
.car-card:hover { | |
transform: translateY(-5px); | |
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); | |
} | |
.car-image { | |
width: 100%; | |
height: 200px; | |
object-fit: cover; | |
} | |
.car-details { | |
padding: 20px; | |
} | |
.car-name { | |
font-size: 22px; | |
margin-bottom: 10px; | |
} | |
.car-category { | |
color: #666; | |
margin-bottom: 15px; | |
} | |
.car-features { | |
display: flex; | |
gap: 15px; | |
margin-bottom: 15px; | |
} | |
.feature { | |
display: flex; | |
align-items: center; | |
gap: 5px; | |
font-size: 14px; | |
color: #666; | |
} | |
.car-price { | |
font-size: 24px; | |
font-weight: bold; | |
color: #1a73e8; | |
margin-bottom: 15px; | |
} | |
.car-actions { | |
display: flex; | |
justify-content: space-between; | |
} | |
footer { | |
background-color: #333; | |
color: white; | |
padding: 50px 0; | |
} | |
.footer-content { | |
display: grid; | |
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
gap: 40px; | |
} | |
.footer-column h3 { | |
font-size: 20px; | |
margin-bottom: 20px; | |
} | |
.footer-column ul { | |
list-style: none; | |
} | |
.footer-column ul li { | |
margin-bottom: 10px; | |
} | |
.footer-column ul li a { | |
color: #ccc; | |
text-decoration: none; | |
transition: color 0.3s; | |
} | |
.footer-column ul li a:hover { | |
color: white; | |
} | |
.copyright { | |
margin-top: 30px; | |
text-align: center; | |
color: #ccc; | |
padding-top: 30px; | |
border-top: 1px solid #444; | |
} | |
/* Modal Styles */ | |
.modal { | |
display: none; | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
background-color: rgba(0, 0, 0, 0.5); | |
z-index: 1000; | |
align-items: center; | |
justify-content: center; | |
} | |
.modal-content { | |
background-color: white; | |
padding: 30px; | |
border-radius: 8px; | |
max-width: 500px; | |
width: 90%; | |
} | |
.modal-header { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
margin-bottom: 20px; | |
} | |
.close-button { | |
background: none; | |
border: none; | |
font-size: 24px; | |
cursor: pointer; | |
} | |
.booking-details { | |
margin-bottom: 20px; | |
} | |
.detail-row { | |
display: flex; | |
justify-content: space-between; | |
padding: 10px 0; | |
border-bottom: 1px solid #eee; | |
} | |
.summary-total { | |
font-weight: bold; | |
font-size: 18px; | |
margin-top: 10px; | |
} | |
@media (max-width: 768px) { | |
.header-content { | |
flex-direction: column; | |
text-align: center; | |
} | |
nav ul { | |
margin-top: 20px; | |
} | |
.hero h1 { | |
font-size: 32px; | |
} | |
.hero p { | |
font-size: 18px; | |
} | |
.search-form { | |
margin-top: -50px; | |
} | |
.date-range-container { | |
grid-template-columns: 1fr; | |
} | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment