add of text, button and background for the home
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
import React from "react";
|
||||
import "../../styles/thirdParty/Background.css";
|
||||
|
||||
export default function Background() {
|
||||
return (
|
||||
<div className="space-background">
|
||||
{[...Array(100)].map((_, i) => (
|
||||
<div
|
||||
key={i}
|
||||
className="star"
|
||||
style={{
|
||||
top: `${Math.random() * 100}%`,
|
||||
left: `${Math.random() * 100}%`,
|
||||
animationDelay: `${Math.random() * 5}s`,
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
<div className="nebula nebula1"></div>
|
||||
<div className="nebula nebula2"></div>
|
||||
<div className="nebula nebula3"></div>
|
||||
<div className="planet"></div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user