File tree 2 files changed +12
-7
lines changed
2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 32
32
width : 400px ;
33
33
}
34
34
35
+ .staticLogo {
36
+ width : 85% ;
37
+ height : auto;
38
+ margin : 0 auto;
39
+ display : block;
40
+ position : relative;
41
+ top : 50% ;
42
+ transform : translateY (-50% );
43
+ }
44
+
35
45
.title {
36
46
text-align : center;
37
47
margin-bottom : calc (var (--mantine-spacing-xl ));
Original file line number Diff line number Diff line change 2
2
3
3
import React from "react" ;
4
4
import Script from "next/script" ;
5
+ import classes from "../app/index.module.css" ;
5
6
6
7
declare global {
7
8
interface Window {
@@ -40,13 +41,7 @@ export default class InteractiveLogo extends React.Component<LogoProps> {
40
41
const staticLogo = document . createElement ( "IMG" ) as HTMLImageElement ;
41
42
staticLogo . src = "/logo.svg" ;
42
43
staticLogo . alt = "Ruffle Logo" ;
43
- staticLogo . style . width = "85%" ;
44
- staticLogo . style . height = "auto" ;
45
- staticLogo . style . margin = "0 auto" ;
46
- staticLogo . style . display = "block" ;
47
- staticLogo . style . position = "relative" ;
48
- staticLogo . style . top = "50%" ;
49
- staticLogo . style . transform = "translateY(-50%)" ;
44
+ staticLogo . className = classes . staticLogo ;
50
45
this . container . current . textContent = "" ;
51
46
this . container . current . appendChild ( staticLogo ) ;
52
47
}
You can’t perform that action at this time.
0 commit comments