11import styled from "styled-components" ;
22
3-
43const PageHeaderWrapper = styled . div `
5- position: relative;
6- overflow: hidden;
7- z-index:1;
8- .page-header {
9- text-align: center;
10- position: relative;
11- height: auto;
12- margin-bottom: 2rem;
13- padding: 0 1rem 0;
14- z-index: 99;
15- h1 {
16- padding-top: 1.5rem;
17- transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
18- img{
19- padding-left: 1rem;
20- width: 3rem;
21- transition-duration: 0.8s;
22- filter: invert(${ ( props ) => props . theme . meshInterfaceLogoFilter } );
23-
24-
25- }
26- }
27- }
28-
29- .feature-image{
30- /* margin: 2rem auto; */
31- object-fit: contain;
32- justify-content: center;
33-
34- img{
35- max-height: 25rem;
36- /* max-width: 31rem; */
37- display: block;
38- margin-left: auto;
39- margin-right: auto;
40- }
41- }
42- .breadcrumbs {
43- display: flex;
44- justify-content: center;
45- margin-top: 1.5rem;
46- align-items: center;
47- h5 {
48- display: inline-block;
49- margin:0 0.4rem;
50- opacity: .7;
51- }
52- p{
53- margin: 0;
54- display: inline-block;
55- }
56- }
4+ position: relative;
5+ overflow: hidden;
6+ z-index: 1;
7+
8+ .page-header {
9+ text-align: center;
10+ position: relative;
11+ height: auto;
12+ margin-bottom: 2rem;
13+ padding: 0 1rem;
14+ z-index: 99;
15+
16+ h1 {
17+ padding-top: 1.5rem;
18+ transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
19+
20+ img {
21+ padding-left: 1rem;
22+ width: 3rem;
23+ transition-duration: 0.8s;
24+ filter: invert(${ ( props ) => props . theme . meshInterfaceLogoFilter } );
25+ }
26+ }
27+ }
28+
29+ .feature-image {
30+ display: flex;
31+ justify-content: center;
32+ align-items: center;
33+ width: 100%; /* Full width of parent */
34+ max-width: 600px; /* Cap container width */
35+ margin: 0 auto; /* Center container */
36+ padding: 0 1rem; /* Padding for smaller screens */
37+
38+ img {
39+ margin-top: 0rem;
40+ width: 100%;
41+ max-width: 100%;
42+ max-height: 100%;
43+ height: auto;
44+ object-fit: fill;
45+ display: block;
46+ }
47+ }
48+
49+ .breadcrumbs {
50+ display: flex;
51+ justify-content: center;
52+ margin-top: 1.5rem;
53+ align-items: center;
54+
55+ h5 {
56+ display: inline-block;
57+ margin: 0 0.4rem;
58+ opacity: 0.7;
59+ }
60+
61+ p {
62+ margin: 0;
63+ display: inline-block;
64+ }
65+ }
66+
67+ /* Responsive adjustments */
68+ @media (max-width: 768px) {
69+ .feature-image {
70+ max-width: 90vw; /* Use viewport width for smaller screens */
71+ padding: 0 0.5rem;
72+
73+ img {
74+ max-width: 100%; /* Fit container */
75+ max-height: 350px; /* Slightly smaller for tablets */
76+ }
77+ }
78+ }
79+
80+ @media (max-width: 480px) {
81+ .feature-image {
82+ img {
83+ max-height: 250px; /* Further reduce for phones */
84+ }
5785 }
86+ }
5887` ;
5988
60- export default PageHeaderWrapper ;
89+ export default PageHeaderWrapper ;
0 commit comments