@@ -14,6 +14,10 @@ import aboutGraphic1 from "./assets/ramalama-about-graphic-1.svg";
14
14
import aboutGraphic2 from "./assets/ramalama-about-graphic-2.svg" ;
15
15
import aboutGraphic3 from "./assets/ramalama-about-graphic-3.svg" ;
16
16
import aboutGraphic4 from "./assets/ramalama-about-graphic-4.svg" ;
17
+ import copySVG from "./assets/copy.svg" ;
18
+
19
+ let installCode1 = "curl -fsSL https://ramalama.ai/install.sh | bash" ;
20
+ let installCode2 = "pip install ramalama" ;
17
21
18
22
/* -------------------------------- Main App Function -------------------------------- */
19
23
function App ( ) {
@@ -31,7 +35,7 @@ function App() {
31
35
< ul >
32
36
< li >
33
37
< a href = "https://github.com/containers/ramalama?tab=readme-ov-file#install" >
34
- < button >
38
+ < button className = "button" >
35
39
{ " " }
36
40
< img src = { installIcon } alt = "Install Icon" > </ img > { " " }
37
41
< p > Installation guide here</ p >
@@ -40,7 +44,7 @@ function App() {
40
44
</ li >
41
45
< li >
42
46
< a href = "https://github.com/containers/ramalama" >
43
- < button >
47
+ < button className = "button" >
44
48
{ " " }
45
49
< img src = { githubIcon } alt = "GitHub Icon" > </ img > { " " }
46
50
< p > Contribute to the project</ p >
@@ -49,7 +53,7 @@ function App() {
49
53
</ li >
50
54
< li >
51
55
< a href = "https://matrix.to/#/#ramalama:fedoraproject.org" >
52
- < button >
56
+ < button className = "button" >
53
57
{ " " }
54
58
< img src = { communityIcon } alt = "Community Icon" > </ img > { " " }
55
59
< p > Interact with the community</ p >
@@ -58,7 +62,7 @@ function App() {
58
62
</ li >
59
63
< li >
60
64
< a href = "https://github.com/containers/ramalama?tab=readme-ov-file#hardware-support" >
61
- < button >
65
+ < button className = "button" >
62
66
{ " " }
63
67
< img src = { hardwareIcon } alt = "Hardware Icon" > </ img > { " " }
64
68
< p > Hardware support here</ p >
@@ -85,12 +89,32 @@ function App() {
85
89
< h2 className = "install-h2" >
86
90
Install RamaLama by running this in your command line:
87
91
</ h2 >
88
- < h3 className = "install-h3" > Linux and Mac:</ h3 >
89
- < p className = "install-code" >
90
- < div > curl -fsSL https://ramalama.ai/install.sh | sh</ div >
91
- </ p >
92
- < h3 className = "install-h3" > RamaLama is also available on PyPi!</ h3 >
93
- < p className = "install-code" > pip install ramalama</ p >
92
+ < div >
93
+ < h3 className = "install-h3" > Linux and Mac:</ h3 >
94
+ < div className = "install-code" >
95
+ < p > { installCode1 } </ p >
96
+ < button
97
+ className = "copy-button"
98
+ onClick = { ( ) => navigator . clipboard . writeText ( installCode1 ) }
99
+ >
100
+ < img className = "copy-svg" src = { copySVG } width = "30px" />
101
+ </ button >
102
+ </ div >
103
+ </ div >
104
+ < div >
105
+ < h3 className = "install-h3" >
106
+ RamaLama is also available on PyPi!
107
+ </ h3 >
108
+ < div className = "install-code" >
109
+ < p > { installCode2 } </ p >
110
+ < button
111
+ className = "copy-button"
112
+ onClick = { ( ) => navigator . clipboard . writeText ( installCode2 ) }
113
+ >
114
+ < img className = "copy-svg" src = { copySVG } width = "30px" />
115
+ </ button >
116
+ </ div >
117
+ </ div >
94
118
< a href = "https://github.com/containers/ramalama?tab=readme-ov-file#install" >
95
119
< button className = "install-button" role = "button" >
96
120
More install methods here
@@ -103,7 +127,11 @@ function App() {
103
127
< div className = "demo viewport orange-background" >
104
128
< div className = "demo-info" >
105
129
< h1 className = "demo-header" > Watch it in action</ h1 >
106
- < img src = { demoGIF } className = "demo-gif" alt = "GIF of RamaLama running in a command line" > </ img >
130
+ < img
131
+ src = { demoGIF }
132
+ className = "demo-gif"
133
+ alt = "GIF of RamaLama running in a command line"
134
+ > </ img >
107
135
</ div >
108
136
</ div >
109
137
0 commit comments