Skip to content

Commit ca55f71

Browse files
Merge branch 'rawan-events'
2 parents 48960c7 + 6845620 commit ca55f71

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

src/pages/geminai.js

+21-13
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,41 @@ import IMG_3070 from "./IMG_3070.jpg";
1010
import styles from "./index.module.css";
1111
import Link from "@docusaurus/Link";
1212

13+
const commonImageStyles = {
14+
height: '100px',
15+
width: '190px',
16+
borderRadius: '10px',
17+
padding: '15px 40px',
18+
margin: '35px',
19+
};
20+
const darkThemeBackgroundColor = 'var(--ifm-color-gray-500)';
1321

1422
export function Institutionsa({ list }) {
23+
const isDarkTheme = document.documentElement.getAttribute('data-theme') === 'dark';
24+
1525
return (
1626
<section >
1727
<div >
1828
{list.map((category) => (
19-
<div key={category.title} className="row margin-bottom--lg"
29+
<div key={category.title} className="row margin-bottom--lg" style={{
30+
borderRadius:'8px',
31+
padding:'17px',
32+
33+
}}
34+
2035
>
21-
22-
2336
<h2 className="col col--2 " >{category.title}</h2>
2437
{category.members.map((props) => (
2538
<a href={props.url} target="_blank" rel="noopener noreferrer">
2639
<img
40+
className="institutionsa-image"
41+
2742
src={props.log}
2843
alt={props.name}
2944
style={{
30-
width:'195px',
31-
height:'110px',
32-
margin: '20px',
33-
borderRadius:'8px',
34-
padding:'17px',
35-
36-
37-
38-
39-
}}
45+
...commonImageStyles,
46+
backgroundColor: isDarkTheme ? darkThemeBackgroundColor:'white' ,
47+
}}
4048
/>
4149
</a>
4250

0 commit comments

Comments
 (0)