-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
124 lines (108 loc) · 2.09 KB
/
index.css
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
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
}
.container {
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
}
/* Section Styling */
.section {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}
/* Image Section */
.image-section {
background-color: #eeeeee;
}
.image-section img {
max-width: 100%;
height: auto;
object-fit: cover;
width: 100%;
}
/* Text Section */
.text-section {
padding: 20px;
text-align: center;
background-color: #f4f4f4;
position: relative;
}
.text-section h1 {
font-size: 2rem;
margin-bottom: 10px;
color: #547c74;
}
.text p {
font-size: 1.2rem;
color: #667c54;
}
.footer {
position: absolute;
bottom: 0;
left: 0;
font-size: 0.6rem;
color: black;
text-align: center;
width: 100%;
margin: auto;
}
/* Desktop View */
@media (min-width: 768px) {
.container {
flex-direction: row;
}
.image-section {
width: 50%;
height: 100vh;
}
.image-section img {
height: 95vh;
-webkit-box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
border-radius: 10px 10px 10px 10px;
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
border: 0px solid #000000;
}
.text-section {
width: 50%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
}
/* Mobile View */
@media (max-width: 767px) {
.container {
flex-direction: column;
height: auto; /* Let the height adjust naturally */
}
.image-section {
width: 100%;
height: auto;
}
.image-section img {
width: 100%; /* Ensure the image spans the full width */
height: auto; /* Maintain the aspect ratio */
}
.text-section {
width: 100%;
padding: 20px; /* Add padding for better spacing */
text-align: center; /* Center the text */
height: 100vh;
}
}