Skip to content

Commit

Permalink
feat: change theme
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiHaoLu committed Nov 5, 2024
1 parent 48d6d0b commit 699420f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 71 deletions.
9 changes: 8 additions & 1 deletion pages/explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,14 @@ const Explorer = () => {
</div>
<div>
<span className="label">Topics</span>
<div>{log.topics.join("\n ")}</div>
<div>
{log.topics.map((topic: any, index: any) => (
<span key={index}>
{topic}
<br />
</span>
))}
</div>
</div>
<div>
<span className="label">Data</span>
Expand Down
106 changes: 36 additions & 70 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
body {
font-family: 'Noto Sans JP', sans-serif;
background-color: #f7f3e9;
color: #333;
font-family: 'Ubuntu Mono', monospace;
background-color: #1e1e1e;
color: #dcdcdc;
margin: 0;
padding: 0;
display: flex;
Expand All @@ -14,8 +14,8 @@ h2,
h3,
h4,
h5 {
color: #d32f2f;
/* Traditional Japanese red */
color: #4ec9b0;
/* Green inspired by terminal syntax highlights */
}

div {
Expand All @@ -27,7 +27,7 @@ div {
label {
display: block;
margin-bottom: 10px;
color: #333;
color: #dcdcdc;
}

input[type="text"],
Expand All @@ -36,15 +36,15 @@ textarea {
padding: 10px;
margin-top: 5px;
margin-bottom: 20px;
border: 1px solid #ccc;
border: 1px solid #3e3e3e;
border-radius: 4px;
background-color: #fff;
color: #333;
background-color: #2e2e2e;
color: #dcdcdc;
}

button {
background-color: #d32f2f;
color: #fff;
background-color: #4ec9b0;
color: #1e1e1e;
padding: 10px 20px;
border: none;
border-radius: 4px;
Expand All @@ -53,24 +53,24 @@ button {
}

button:disabled {
background-color: #ccc;
background-color: #555555;
}

button:hover:enabled {
background-color: #b71c1c;
background-color: #388e7b;
}

pre {
background-color: #fff;
background-color: #2e2e2e;
padding: 10px;
border: 1px solid #ccc;
border: 1px solid #3e3e3e;
border-radius: 4px;
overflow-x: auto;
color: #333;
color: #dcdcdc;
}

a {
color: #d32f2f;
color: #4ec9b0;
text-decoration: none;
}

Expand All @@ -80,7 +80,7 @@ a:hover {

footer {
background-color: #333;
color: #fff;
color: #dcdcdc;
text-align: center;
padding: 20px;
width: 100%;
Expand All @@ -89,28 +89,28 @@ footer {
}

.warning-banner {
background-color: #ffcc00;
color: #333;
background-color: #d69d00;
color: #1e1e1e;
text-align: center;
padding: 10px;
font-weight: bold;
}

.simulation-result {
background-color: #fff;
background-color: #2e2e2e;
padding: 10px;
border: 1px solid #ccc;
border: 1px solid #3e3e3e;
border-radius: 4px;
margin-top: 20px;
}

.simulation-result h3 {
color: #d32f2f;
color: #4ec9b0;
}

.simulation-result button {
background-color: #d32f2f;
color: #fff;
background-color: #4ec9b0;
color: #1e1e1e;
padding: 10px 20px;
border: none;
border-radius: 4px;
Expand All @@ -119,7 +119,7 @@ footer {
}

.simulation-result button:hover {
background-color: #b71c1c;
background-color: #388e7b;
}

.link-container {
Expand All @@ -132,23 +132,23 @@ footer {
margin: 10px;
padding: 10px 20px;
text-decoration: none;
color: #fff;
background-color: #d32f2f;
color: #1e1e1e;
background-color: #4ec9b0;
border-radius: 5px;
transition: background-color 0.3s;
}

.link:hover {
background-color: #b71c1c;
background-color: #388e7b;
}

.explorer-container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
background-color: #2e2e2e;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.input-section {
Expand All @@ -158,60 +158,26 @@ footer {
.data-section {
margin-top: 20px;
padding: 10px;
background-color: #f9f9f9;
background-color: #3e3e3e;
border-radius: 8px;
}

.label {
font-weight: bold;
color: #555;
color: #dcdcdc;
}

.log-entry {
margin-bottom: 15px;
padding: 10px;
background-color: #f1f1f1;
background-color: #3e3e3e;
border-radius: 8px;
}

.data-box {
background-color: #fff;
background-color: #2e2e2e;
padding: 10px;
border: 1px solid #ccc;
border: 1px solid #3e3e3e;
border-radius: 4px;
overflow-x: auto;
}

pre {
background-color: #f1f1f1;
padding: 10px;
border-radius: 8px;
overflow-x: auto;
}

a {
color: #d32f2f;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

button {
background-color: #d32f2f;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}

button:disabled {
background-color: #ccc;
}

button:hover:enabled {
background-color: #b71c1c;
}

0 comments on commit 699420f

Please sign in to comment.