Skip to content

Commit

Permalink
Production
Browse files Browse the repository at this point in the history
  • Loading branch information
leomotors committed Aug 30, 2021
1 parent 8acc7d4 commit 7b6f948
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 25 deletions.
1 change: 1 addition & 0 deletions public/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vercel
69 changes: 48 additions & 21 deletions src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,30 +1,57 @@
<script lang="ts">
export let name: string;
//const lucky: string = "https://www.youtube.com/watch?v=dQw4w9WgXcQ";
let luck: boolean = false;
// async function getDoujin(id: string) {
// let url: string = "https://nhentai.net/g/" + id + "/";
// const response: Response = await fetch(url, { mode: "no-cors" });
// console.log(response);
// }
function getLucky() {
//window.location.replace(lucky);
luck = true;
}
//getDoujin("177013");
</script>

<main>
<h1>Hello {name}!</h1>
<p>Visit the <a href="https://svelte.dev/tutorial">Svelte tutorial</a> to learn how to build Svelte apps.</p>
<h1>Hello Gaymrs!</h1>
<h2>This website is made for Nathan</h2>
{#if luck}
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/dQw4w9WgXcQ?autoplay=1"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
/>
{:else}
<button on:click={getLucky}>Click Here</button>
{/if}
</main>

<style>
main {
text-align: center;
padding: 1em;
max-width: 240px;
margin: 0 auto;
}
main {
text-align: center;
padding: 1em;
max-width: 240px;
margin: 0 auto;
}
h1 {
color: #ff3e00;
text-transform: uppercase;
font-size: 4em;
font-weight: 100;
}
h1 {
color: #ff3e00;
text-transform: uppercase;
font-size: 4em;
font-weight: 100;
}
@media (min-width: 640px) {
main {
max-width: none;
}
}
</style>
@media (min-width: 640px) {
main {
max-width: none;
}
}
</style>
5 changes: 1 addition & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import App from './App.svelte';

const app = new App({
target: document.body,
props: {
name: 'world'
}
target: document.body
});

export default app;

0 comments on commit 7b6f948

Please sign in to comment.