File tree Expand file tree Collapse file tree 4 files changed +54
-1
lines changed Expand file tree Collapse file tree 4 files changed +54
-1
lines changed Original file line number Diff line number Diff line change @@ -113,11 +113,34 @@ class Index extends React.Component {
113
113
</ Block >
114
114
) ;
115
115
116
+ const Sponsors = ( ) => (
117
+ < Container
118
+ id = "sponsors"
119
+ background = { null } >
120
+ < div className = "sponsors-header" >
121
+ < h2 > Special Thanks</ h2 >
122
+ </ div >
123
+ < GridBlock
124
+ align = "center"
125
+ layout = "fourColumn"
126
+ contents = { [
127
+ {
128
+ image : `${ baseUrl } img/sponsors/sovereign-tech-agency.webp` ,
129
+ imageAlign : 'top' ,
130
+ imageAlt : 'Sovereign Tech Agency' ,
131
+ imageLink : 'https://www.sovereign.tech/tech/phpseclib' ,
132
+ } ,
133
+ ] }
134
+ />
135
+ </ Container >
136
+ ) ;
137
+
116
138
return (
117
139
< div >
118
140
< HomeSplash siteConfig = { siteConfig } language = { language } />
119
141
< div className = "mainContainer" >
120
142
< Features />
143
+ < Sponsors />
121
144
</ div >
122
145
</ div >
123
146
) ;
Original file line number Diff line number Diff line change 47
47
.equation {
48
48
font-size : 120% ;
49
49
font-family : "Times New Roman" , Times, serif;
50
- }
50
+ }
51
+
52
+ /* Center heading */
53
+ # sponsors .sponsors-header { text-align : center; margin-bottom : 0.75rem ; }
54
+ # sponsors .sponsors-header h2 { font-weight : 600 ; font-size : 1.5rem ; margin : 0 ; }
55
+
56
+ /* Center GridBlock contents as a group (works for 1..N sponsors) */
57
+ # sponsors .gridBlock { text-align : center; }
58
+ # sponsors .blockElement {
59
+ float : none !important ;
60
+ display : inline-block;
61
+ vertical-align : top;
62
+ margin : 0 16px 16px ;
63
+ }
64
+
65
+ /* Center each logo box and scale logos up */
66
+ # sponsors .blockImage {
67
+ display : flex;
68
+ justify-content : center;
69
+ align-items : center;
70
+ min-height : 140px ; /* slot height so different logos line up */
71
+ text-align : center;
72
+ }
73
+
74
+ # sponsors .blockImage img {
75
+ max-height : 120px ; /* never taller than 120px */
76
+ max-width : 200px ; /* never wider than 200px */
77
+ width : auto;
78
+ height : auto;
79
+ }
You can’t perform that action at this time.
0 commit comments