Skip to content

Commit

Permalink
reduce h1 font size, add more help text
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmray committed Oct 12, 2024
1 parent e10aa1a commit 1c87190
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@

#output {
padding: 10px;
line-height: 1.2;
margin-top: 20px;
border-radius: 5px;
white-space: pre-wrap;
word-wrap: break-word;
border: 1px solid #ced4da;
text-align: center;
max-height: 200px;
Expand Down Expand Up @@ -83,14 +82,23 @@
}

h1 {
font-size: 2.5rem;
margin-bottom: 1.5rem;
font-size: 1.8rem;
font-weight: 500;
line-height: 1.2;
margin-top: 0;
text-align: center;
}

a {
color: inherit;
}

.cool-color {
background-image: linear-gradient(to right,#E70000, #FF8C00, #FFEF00, #00811F, #0044FF, #760089);
-webkit-background-clip: text;
color:transparent;
}

@media (prefers-color-scheme: dark) {
body {
background-color: #121212;
Expand All @@ -110,12 +118,15 @@
<body>
<div class="container">
<nav id="nav">
<span id="version-info">Loading Xray</span> |
<span id="version-info">Loading Xray&hellip;</span> |
<a href="https://github.com/mmmray/xray-online">GitHub</a>
<h1>Xray Config Validator</h1>
</nav>
<div id="editor"></div>
<div id="output">Start typing your Xray config in the editor above.</div>
<div id="output">
Start typing your Xray config in the editor above.<br>
Hover over fields for documentation. <span class="cool-color">Autocomplete</span> is available.
</div>
</div>

<script>
Expand All @@ -124,7 +135,6 @@ <h1>Xray Config Validator</h1>
const editorElement = document.getElementById('editor');
const output = document.getElementById("output");


function updateEditorTheme() {
const prefersDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
const theme = prefersDarkMode ? 'vs-dark' : 'vs-light';
Expand Down

0 comments on commit 1c87190

Please sign in to comment.