react-typescript-test/app/App.css

152 lines
2.5 KiB
CSS
Raw Normal View History

2024-09-04 21:49:06 +02:00
/* General Reset */
2024-09-04 15:58:03 +02:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Basic body styling */
body {
2024-09-04 21:49:06 +02:00
background: #f4f4f4 url(/img/image.png) no-repeat center/cover fixed;
2024-09-04 15:58:03 +02:00
color: #333;
line-height: 1.6;
display: flex;
flex-direction: column;
min-height: 100vh;
2024-09-04 21:49:06 +02:00
margin-top: 10em;
2024-09-04 15:58:03 +02:00
}
/* Header styling */
.header {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
width: 100%;
2024-09-04 21:49:06 +02:00
position: fixed;
top: 0;
z-index: 1000;
2024-09-04 15:58:03 +02:00
}
.header h1 {
font-size: 24px;
margin-bottom: 10px;
}
.header nav {
margin-top: 10px;
}
.header button {
margin: 0 10px;
padding: 10px 20px;
border-radius: 4px;
background-color: #4a90e2;
color: #fff;
font-size: 16px;
cursor: pointer;
border: none;
2024-09-04 21:49:06 +02:00
transition: background-color 0.3s ease;
2024-09-04 15:58:03 +02:00
}
.header button:hover {
background-color: #357ab8;
}
/* Content container */
.content {
padding: 20px;
flex: 1;
text-align: center;
max-width: 1200px;
2024-09-04 21:49:06 +02:00
margin: 80px auto 0; /* Adjusted for fixed header height */
2024-09-04 15:58:03 +02:00
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Card styles */
2024-09-04 21:49:06 +02:00
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-top: 50px;
}
2024-09-04 21:49:06 +02:00
.card {
text-align: center;
list-style: none;
2024-09-04 21:49:06 +02:00
background-color: rgba(46, 58, 95, 0.9);
padding: 20px;
border-radius: 10px;
2024-09-04 21:49:06 +02:00
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
border: 1px solid #3a4971;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
2024-09-04 21:49:06 +02:00
.card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(255, 221, 85, 0.5);
}
2024-09-04 21:49:06 +02:00
.card img {
height: 80px;
width: 80px;
object-fit: cover;
2024-09-04 21:49:06 +02:00
border-radius: 50%;
margin: 0 auto 15px;
2024-09-04 21:49:06 +02:00
box-shadow: 0 0 10px rgba(255, 221, 85, 0.5);
}
2024-09-04 21:49:06 +02:00
.card h3 {
margin: 10px 0;
font-size: 1.2em;
font-weight: bold;
2024-09-04 21:49:06 +02:00
color: #ffdd55;
text-shadow: 0 0 10px #ffdd55;
}
2024-09-04 21:49:06 +02:00
.card p {
flex-grow: 1;
2024-09-04 21:49:06 +02:00
color: #c7d5e0;
margin-bottom: 10px;
}
2024-09-04 15:58:03 +02:00
/* Responsive layout */
@media (max-width: 768px) {
.header h1 {
font-size: 20px;
}
.header button {
margin: 5px 0;
padding: 10px;
font-size: 14px;
}
.content {
padding: 15px;
margin-top: 15px;
}
2024-09-04 21:49:06 +02:00
.cards {
grid-template-columns: 1fr;
}
2024-09-04 21:49:06 +02:00
.card {
padding: 12px;
}
2024-09-04 21:49:06 +02:00
.card img {
height: 60px;
width: 60px;
border-radius: 8px;
}
2024-09-04 15:58:03 +02:00
}