generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add basic code structure for discord invite feature
- Loading branch information
1 parent
8fd1621
commit 989e951
Showing
4 changed files
with
82 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="stylesheet" href="/discord-invite/style.css" /> | ||
<script type="module" src="/discord-invite/script.js" defer></script> | ||
<script src="/helpers/loadENV.js"></script> | ||
<title>Discord Invite</title> | ||
</head> | ||
|
||
<body> | ||
<header class="header"> | ||
<h1>Create Discord invite for RDS Server</h1> | ||
</header> | ||
<div id="toast" class="hidden"></div> | ||
<div class="container"> | ||
<textarea | ||
id="discord-invite-link-description" | ||
class="discord-invite-link-description" | ||
></textarea> | ||
<button id="create-discord-invite" class="create-discord-invite"> | ||
Create Invite | ||
</button> | ||
</div> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Script file for discord-invite feature. | ||
const discordInviteDescription = document.querySelector( | ||
'#discord-invite-link-description', | ||
); | ||
const createInviteButton = document.querySelector('#create-discord-invite'); | ||
|
||
createInviteButton.addEventListener('click', () => { | ||
console.log('Invite button clicked', discordInviteDescription.value); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
:root { | ||
font-family: 'Inter', sans-serif; | ||
--color-primary: #1d1283; | ||
--color-primary-hover: #11085c; | ||
--color-button-hover: #2c1bc6; | ||
--white: #fff; | ||
--color-gray: #666; | ||
--black-color: black; | ||
--black-transparent: #000000a8; | ||
--light-gray-color: lightgray; | ||
--red-color: red; | ||
--elevation-1: 0 1px 3px 1px rgba(0, 0, 0, 0.1), | ||
0 1px 2px 0 rgba(0, 0, 0, 0.1); | ||
--elevation-3: 0px 1px 3px 0px rgba(0, 0, 0, 0.3), | ||
0px 4px 8px 3px rgba(0, 0, 0, 0.15); | ||
--color-green: green; | ||
--color-red-variant1: #f43030; | ||
} | ||
|
||
body { | ||
font-family: 'Roboto', sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.header { | ||
text-align: center; | ||
} | ||
|
||
.container { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.create-discord-invite { | ||
margin: 2rem; | ||
padding: 10px; | ||
} |
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