Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions my-demo-app/dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Getting Started: Inrupt JavaScript Client Libraries</title>
<script defer src="./index.js" ></script>
<link rel="stylesheet" href="my-demo.css" />
</head>
<body>

<header>
<h2>Getting Started</h2>
<h3>with Inrupt JavaScript Client Libraries</h3>
</header>
<section id="login" class="panel">
<div class="row">
<label id="labelLogin" for="btnLogin">1. Click the button to log in: </label>
<button name="btnLogin" id="btnLogin">Login</button>
<p id="labelStatus"></p>
</div>
</section>

<div id="read" class="panel" >
<div class="row">
<label id="readlabel" for="webID">2. Enter a WebID: </label>
<input type="url" id="webID" name="webID" size="50" pattern="https://.*" value="https://pod.inrupt.com/<username>/profile/card#me">
<button name="btnRead" id="btnRead" >Read Profile</button>
</div>
<dl class="display">
<dt>Profile SolidDataset: </dt>
<dd id="labelProfile"></dd>
<dt>Formatted Name (FN): </dt>
<dd id="labelFN"></dd>
<dt>Role: </dt>
<dd id="labelRole"></dd>
</dl>
</div>
<div id="file-upload" class="panel">
<button id="upload-file-btn">Upload</button>
<p>Drop a file</p>

<input type="file" id="file-drop-zone" class="drop-zone" multiple accept="image/*">
<div class="file-preview-zone" id="preview-zone">
</div>
<!-- <img class="img-thumbnail" id="img_preview" src="#" alt="image preview" /> -->


</div>
</body>
</html>
79 changes: 79 additions & 0 deletions my-demo-app/dist/my-demo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
h2,h3 {
margin: 1rem 1.2rem 1rem 1.4rem;
}

body * {
margin-left: .5rem;
margin-right: 1rem;
}

header {
border-bottom: #5795b9 solid;
padding-left: .5rem;
}

.panel {
border: 1px solid #005b81;
border-radius: 4px;
box-shadow: rgb(184, 196, 194) 0px 4px 10px -4px;
box-sizing: border-box;

padding: 1rem 1.5rem;
margin: 1rem 1.2rem 1rem 1.2rem;
}

#login {
background: white;
}

#read {
background: #e6f4f9;
}

#labelStatus[role="alert"] {
padding-left: 1rem;
color: purple;
}

.display {
margin-left: 1rem;
color: gray;
}

dl {
display: grid;
grid-template-columns: max-content auto;
}

dt {
grid-column-start: 1;
}

dd {
grid-column-start: 2;
}

.drop-zone
{
outline-style: dashed;
outline-color: transparent;
background-color: #ddd;
width: 400px;
height: 200px;
}

.drop-zone-hover
{
outline-color: grey;
}

.file-preview-zone{
display: flex;
flex-wrap: wrap;
}

.img-thumbnail{
width: 200px;
height: 100%;
margin: 20px;
}
Loading