-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f82e1da
commit 7b2d312
Showing
9 changed files
with
78 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
body { | ||
background-color: #000000; /* Ersetzen Sie #yourColor durch die gewünschte Farbe */ | ||
background-color: #000000; | ||
overflow: hidden; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
// Import CSS and JS from Bootstrap | ||
import 'bootstrap/dist/css/bootstrap.min.css'; | ||
import 'bootstrap/dist/js/bootstrap.bundle.min.js'; | ||
|
||
// Import the global CSS file | ||
import './App.css'; | ||
|
||
// Import the components | ||
import Background from './Background'; | ||
import Dm3Widget from './Dm3Widget'; | ||
import Footer from './Footer'; | ||
import Header from './Header'; | ||
|
||
|
||
|
||
// The main component of the application | ||
function App() { | ||
|
||
|
||
// The components are rendered in the order they should appear | ||
return ( | ||
<div className="App"> | ||
<Header /> | ||
<Background /> | ||
<Dm3Widget /> | ||
<Header /> | ||
<Footer /> | ||
|
||
<Dm3Widget /> | ||
</div> | ||
); | ||
} | ||
|
||
export default App; | ||
// Export the App component as the default export | ||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
// Import React and the CSS for this component | ||
import React from 'react'; | ||
import './Background.css'; | ||
|
||
// Define the Background component | ||
const Background: React.FC = () => { | ||
// Return the JSX for this component | ||
return ( | ||
// The main div that contains the background | ||
// 2 different moving gradients | ||
<div className="background"> | ||
<div className="gradient gradient-right" /> | ||
<div className="gradient gradient-left" /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Background; | ||
// Export the Background component as the default export | ||
export default Background; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,33 @@ | ||
// Import React and the CSS for this component | ||
import React from 'react'; | ||
import './Dm3Widget.css'; | ||
|
||
// Ignore TypeScript errors for the next line | ||
//@ts-ignore | ||
// Import the DM3 component from the 'messenger-widget' package | ||
import { DM3 } from 'messenger-widget'; | ||
|
||
// Define the Dm3Widget component | ||
const Dm3Widget: React.FC = () => { | ||
// Define the props for the DM3 component | ||
const props: any = { | ||
defaultContact: 'help.dm3.eth', | ||
defaultContact: 'receiver.beta-user.dm3.eth', | ||
defaultServiceUrl: process.env.REACT_APP_DEFAULT_SERVICE, | ||
ethereumProvider: process.env.REACT_APP_ETHEREUM_PROVIDER, | ||
walletConnectProjectId: process.env.REACT_APP_WALLET_CONNECT_PROJECT_ID, | ||
showAlways: true, | ||
hideFunction: 'attachments,edit,delete', // OPTINAL PARAMETER : 'attachments,edit,delete' or undefined | ||
hideFunction: 'attachments,edit,delete', // Optional parameter: 'attachments,edit,delete' or undefined | ||
showContacts: true, // true for all contacts / false for default contact | ||
|
||
}; | ||
|
||
// Return the JSX for this component | ||
return ( | ||
// A div that contains the DM3 component | ||
<div className="dm3widget"> | ||
|
||
<DM3 {...props} /> | ||
|
||
</div> | ||
); | ||
}; | ||
|
||
export default Dm3Widget; | ||
// Export the Dm3Widget component as the default export | ||
export default Dm3Widget; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
import React from 'react'; | ||
|
||
// Define the Header component | ||
const Header: React.FC = () => { | ||
// Define the handlers for the mouse over and mouse out events | ||
const handleMouseOver = (e: React.MouseEvent<HTMLImageElement, MouseEvent>) => { | ||
e.currentTarget.style.transform = 'scale(1.2)'; | ||
}; | ||
const handleMouseOut = (e: React.MouseEvent<HTMLImageElement, MouseEvent>) => { | ||
e.currentTarget.style.transform = 'scale(1)'; | ||
}; | ||
|
||
// Return the JSX for this component | ||
return ( | ||
<nav className="navbar fixed-top navbar-light" > | ||
<a href="https://dm3.network" target="_blank" style={{ position: 'absolute', top: '26px', left: '21px' }}> | ||
<nav className="navbar fixed-top navbar-light"> | ||
<a href="https://dm3.network" target="_blank" rel="noopener noreferrer" style={{ position: 'absolute', top: '26px', left: '21px' }}> | ||
<img | ||
src="/dm3-logo.png" | ||
alt="dm3 Network Logo" | ||
style={{ height: '29px', transition: 'transform 0.5s ease' }} // Stelle die Größe nach Bedarf ein | ||
onMouseOver={(e) => e.currentTarget.style.transform = 'scale(1.2)'} | ||
onMouseOut={(e) => e.currentTarget.style.transform = 'scale(1)'} | ||
style={{ height: '29px', transition: 'transform 0.5s ease' }} | ||
onMouseOver={handleMouseOver} | ||
onMouseOut={handleMouseOut} | ||
/> | ||
</a> | ||
</nav> | ||
|
||
); | ||
}; | ||
|
||
export default Header; | ||
export default Header; |
This file was deleted.
Oops, something went wrong.