🗄️ Source Code Directory

This commit is contained in:
soulehshaikh99 2020-08-21 00:36:22 +05:30
parent e1d986cb6b
commit 6cd12bfcf2
2 changed files with 34 additions and 6 deletions

View File

@ -1,11 +1,23 @@
<script> <script>
export let name; export let appName;
</script> </script>
<main> <main>
<h1>Hello {name}!</h1> <h1>Welcome to {appName} App!</h1>
<img src="/favicon.png" alt="Svelte Logo" />
<p>Visit the <a href="https://svelte.dev/tutorial">Svelte tutorial</a> to learn how to build Svelte apps.</p> <p>Visit the <a href="https://svelte.dev/tutorial">Svelte tutorial</a> to learn how to build Svelte apps.</p>
</main> </main>
<footer>
<nav>
<a href="https://svelte.dev/docs">API</a>
<a href="https://svelte.dev/examples">Examples</a>
<a href="https://svelte.dev/repl/hello-world">REPL</a>
<a href="https://svelte.dev/blog">Blog</a>
<a href="https://svelte.dev/faq">FAQ</a>
<a href="https://discord.com/invite/yy75DKs">Discord</a>
<a href="https://github.com/sveltejs/svelte">GitHub</a>
</nav>
</footer>
<style> <style>
main { main {
@ -16,10 +28,26 @@
} }
h1 { h1 {
color: #ff3e00; color: #676778;
text-transform: uppercase; text-transform: uppercase;
font-size: 4em; font-size: 2.4em;
font-weight: 100; font-weight: 700;
}
img {
height: 40vmin;
margin: 0.8em;
}
nav {
display: flex;
justify-content: center;
}
nav a {
margin: 16px;
margin-top: 24px;
color: #ff3e00;
} }
@media (min-width: 640px) { @media (min-width: 640px) {

View File

@ -3,7 +3,7 @@ import App from './App.svelte';
const app = new App({ const app = new App({
target: document.body, target: document.body,
props: { props: {
name: 'world' appName: 'Electron-Svelte'
} }
}); });