forked from PepeBigotes/Fallout4TerminalColorTheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
120 lines (114 loc) · 5.86 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="description" content="A BetterDiscord theme in the style of Fallout 4's terminals!">
<meta name="author" content="Bates#7075">
<title>Fallout 4 Terminal Theme</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<link rel="stylesheet" href="css/website.css">
</head>
<body>
<div class="container-fluid px-4">
<div class="row gx-5">
<div class="d-inline-flex mt-2">
<h1 class="title">Fallout 4 Terminal</h1>
</div>
</div>
<div class="row gx-5 mt-5">
<div class="d-flex justify-content-center">
<h2>Do you want that feeling of the good ol' terminal, brought to you by <b class="title">ROBCO Industries (tm)</b>?</h2>
</div>
</div>
<div class="row gx-3 mt-3">
<div class="d-flex justify-content-center">
<h3>Then try out this theme!</h3>
</div>
</div>
<div class="row gx-5 mt-5 pt-5">
<div class="col-sm-4">
<div class="card h-100">
<div class="card-body">
<h5 class="card-title mb-3">Now with patented CRT feeling!</h5>
<p class="card-text">This theme overlays a CRT effect over discord, to enhance that <b class="title">ROBCO Industries (tm) terminal</b> feeling!</p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="card h-100">
<div class="card-body">
<h5 class="card-title mb-3">Get the ROBCO Industries (tm) terminal glow!</h5>
<p class="card-text">Discord's text-color gets replaced by a bright <b class="title">green</b> color! And now you can even change said color!</p>
<div class="d-flex flex-column">
<input type="range" min="0" max="255" value="74" step="1" class="slider" id="customR" oninput="updateColors()" onchange="logColor()">
<input type="range" min="0" max="255" value="239" step="1" class="slider" id="customG" oninput="updateColors()" onchange="logColor()">
<input type="range" min="0" max="255" value="152" step="1" class="slider" id="customB" oninput="updateColors()" onchange="logColor()">
</div>
<p class="card-text">Just edit the <b class="title">--text-color</b> variable in your Fallout4Terminal.theme.css file!</p>
<p>(The color you have currently created would be <b class="title", id="hexText">#4AEF98</b> btw.)</p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="card h-100">
<div class="card-body">
<h5 class="card-title mb-3">Need an example?</h5>
<p class="card-text">This is what discord looks like when using the <b class="title">ROBCO Industries (tm) terminal</b> theme!</p>
<a href="https://gibbu.github.io/ThemePreview/?file=https://cdn.jsdelivr.net/gh/CommandCrafterHD/Fallout4TerminalTheme/css/Fallout4Terminal.theme.css" target="_blank"><img src="img/FalloutTerminalNoCRT.png" class="card-img" alt="Preview image"></a>
</div>
</div>
</div>
</div>
</div>
<div class="row gx-5">
<div class="col-sm-4"></div>
<div class="col-sm-4">
<div class="container flex-column justify-content-center pt-5">
<h2 class="d-flex justify-content-center">Intrigued?</h2>
<a href="css/Fallout4Terminal.theme.css" download="" class="button m-3 d-flex justify-content-center py-2">Get the Theme!</a>
<a href="https://discord.gg/6qd3SkP6Ch" target="_blank" class="button m-3 d-flex justify-content-center py-2">Join the Discord Server!</a>
</div>
</div>
<div class="col-sm-4"></div>
</div>
<div class="row gx-5">
<div class="col-sm-3"></div>
<div class="col-sm-6">
<div class="container flex-column justify-content-center pt-5">
<h2 class="d-flex justify-content-center">Don't like the Theme?</h2>
<h2 class="d-flex justify-content-center">Check out my other theme!</h2>
<a href="https://commandcrafterhd.github.io/DiscordDarkNeon/" class="button m-5 d-flex justify-content-center py-2">Dark Neon</a>
</div>
</div>
<div class="col-sm-3"></div>
</div>
</div>
<script type="text/javascript">
let root = document.documentElement;
var customR = document.getElementById("customR");
var customG = document.getElementById("customG");
var customB = document.getElementById("customB");
var hexText = document.getElementById("hexText");
function rgbToHex(r, g, b) {
return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
}
function decimalToHex(num) {
var numb = parseInt(num).toString(16);
if (numb.length == 2) {
return numb;
} else {
return "0" + numb;
}
}
function updateColors() {
root.style.setProperty('--highlight', '#' + decimalToHex(customR.value) + decimalToHex(customG.value) + decimalToHex(customB.value));
hexText.innerHTML = '#' + decimalToHex(customR.value) + decimalToHex(customG.value) + decimalToHex(customB.value);
}
function logColor() {
console.log("HEX: " + root.style.getPropertyValue('--highlight'));
console.log("RGB: " + customR.value + ', ' + customG.value + ', ' + customB.value);
}
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js" integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous"></script>
</body>
</html>