Skip to content

Commit

Permalink
Update Sandbox UI/UX (#5205)
Browse files Browse the repository at this point in the history
I updated the Sandbox UI for a better user experience. Now users do not have to scroll down to view the data they requested. The form is on the left and the response is on the right.

Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
geeth24 and jasonsaayman committed Oct 30, 2022
1 parent 179a0c8 commit 6a548bf
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions sandbox/client.html
@@ -1,19 +1,39 @@
<!doctype html>
<html>
<head>
<title>axios</title>
<title>AXIOS | Sandbox</title>
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"/>
<style type="text/css">
pre {
min-height: 39px;
overflow: auto;
}
.header{
display: flex;
flex-direction: row;
}
.box{
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 25px;
}
@media screen and (max-width: 1000px) {
.box {
grid-template-columns: 1fr;
}
}

</style>
</head>
<body class="container">
<h1>axios</h1>

<div class="well">
<div class="header">
<img src="https://axios-http.com/assets/logo.svg" alt="axios" width="130" height="60">

<h1> &nbsp;| Sandbox</h1>
</div>

<div class="box">
<div class="well">
<h3>Input</h3>
<form role="form" onsubmit="return false;">
<div class="form-group">
Expand Down Expand Up @@ -47,7 +67,8 @@ <h3>Input</h3>
</form>
</div>

<div class="well">
<div class="response">
<div class="well">
<h3>Request</h3>
<pre id="request">No Data</pre>
</div>
Expand All @@ -61,6 +82,8 @@ <h3>Response</h3>
<h3>Error</h3>
<pre id="error">None</pre>
</div>
</div>
</div>

<script src="/axios.js"></script>
<script>
Expand Down

0 comments on commit 6a548bf

Please sign in to comment.