-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
80 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,90 @@ | ||
<!doctype html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | ||
<title>Corbado's WebJS (script) App</title> | ||
<link rel="stylesheet" href="https://unpkg.com/@corbado/[email protected]/dist/bundle/index.css" /> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
<script> | ||
tailwind.config = { | ||
theme: { | ||
extend: { | ||
fontFamily: { | ||
eloquent: 'var(--font-eloquent)', | ||
}, | ||
colors: { | ||
lightBrown: 'var(--color-light-brown)', | ||
darkBrown: 'var(--color-dark-brown)', | ||
white: 'var(--color-white)', | ||
black: 'var(--color-black)', | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1.0" | ||
/> | ||
<meta | ||
http-equiv="X-UA-Compatible" | ||
content="ie=edge" | ||
/> | ||
<title>Corbado's WebJS (script) App</title> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/@corbado/[email protected]/dist/bundle/index.css" | ||
/> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
<script> | ||
tailwind.config = { | ||
theme: { | ||
extend: { | ||
fontFamily: { | ||
eloquent: 'var(--font-eloquent)', | ||
}, | ||
colors: { | ||
lightBrown: 'var(--color-light-brown)', | ||
darkBrown: 'var(--color-dark-brown)', | ||
white: 'var(--color-white)', | ||
black: 'var(--color-black)', | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; | ||
</script> | ||
<link type="text/tailwindcss" rel="stylesheet" href="./style.css" /> | ||
<link rel="stylesheet" href="./assets/prism.css" /> | ||
</head> | ||
|
||
<body> | ||
<header id="header" class="bg-amber-700 text-white p-2 flex justify-between items-center"></header> | ||
<div id="main" class="flex"> | ||
<div id="guide" class="w-2/3 p-10 bg-gray-200"></div> | ||
<div id="right-section" class="w-1/3 mt-8 flex items-start justify-around"></div> | ||
</div> | ||
}; | ||
</script> | ||
<link | ||
type="text/tailwindcss" | ||
rel="stylesheet" | ||
href="./style.css" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="./assets/prism.css" | ||
/> | ||
</head> | ||
|
||
<script src="https://kit.fontawesome.com/fe9dcc7772.js" crossorigin="anonymous"></script> | ||
<script src="./assets/prism.js"></script> | ||
<script src="https://unpkg.com/@corbado/[email protected]/dist/bundle/index.js"></script> | ||
<body> | ||
<header | ||
id="header" | ||
class="bg-amber-700 text-white p-2 flex justify-between items-center" | ||
></header> | ||
<div | ||
id="main" | ||
class="flex" | ||
> | ||
<div | ||
id="guide" | ||
class="w-2/3 p-10 bg-gray-200" | ||
></div> | ||
<div | ||
id="right-section" | ||
class="w-1/3 mt-8 flex items-start justify-around" | ||
></div> | ||
</div> | ||
|
||
<script type="module"> | ||
import { insertHeader, insertGuide, insertDemo } from './components/index.js'; | ||
<script | ||
src="https://kit.fontawesome.com/fe9dcc7772.js" | ||
crossorigin="anonymous" | ||
></script> | ||
<script src="./assets/prism.js"></script> | ||
<script src="https://unpkg.com/@corbado/[email protected]/dist/bundle/index.js"></script> | ||
|
||
const projectID = window.location.href.includes('localhost') | ||
? 'pro-1743528526530787479' | ||
: 'pro-523751808285927805'; | ||
<script type="module"> | ||
import { insertHeader, insertGuide, insertDemo } from './components/index.js'; | ||
|
||
await Corbado.load({ | ||
projectId: projectID | ||
}); | ||
const projectID = window.location.href.includes('localhost') | ||
? 'pro-1743528526530787479' | ||
: 'pro-523751808285927805'; | ||
|
||
insertHeader(!!Corbado.isAuthenticated, Corbado.user); | ||
insertGuide(!!Corbado.isAuthenticated); | ||
insertDemo(Corbado); | ||
Prism.highlightAll(); | ||
</script> | ||
</body> | ||
await Corbado.load({ | ||
projectId: projectID, | ||
}); | ||
|
||
</html> | ||
insertHeader(!!Corbado.isAuthenticated, Corbado.user); | ||
insertGuide(!!Corbado.isAuthenticated); | ||
insertDemo(Corbado); | ||
Prism.highlightAll(); | ||
</script> | ||
</body> | ||
</html> |