generated from sunwoo0706/Svelte-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
200 additions
and
149 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
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,19 +1,10 @@ | ||
<script lang="ts"> | ||
import Header from "./components/Templates/Header.svelte"; | ||
import Tailwind from "./Tailwind.svelte"; | ||
</script> | ||
|
||
<Tailwind /> | ||
<main> | ||
<h1 class="text-blue-400"> | ||
yarn berry / scss / typescript / tailwind CSS template | ||
</h1> | ||
</main> | ||
<Header /> | ||
|
||
<style lang="scss"> | ||
main { | ||
h1 { | ||
font-size: 2rem; | ||
text-align: center; | ||
} | ||
} | ||
</style> |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<script lang="ts"> | ||
</script> | ||
|
||
<h1 class="font-sans font-black text-3xl"> | ||
LOGO | ||
</h1> | ||
|
||
<style lang="scss"> | ||
</style> |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script lang="ts"> | ||
type bgColors = "red" | "blue" | "green" | "yellow" | "gray"; | ||
export let bg: bgColors | null = null; | ||
export let nestedStyle: string | null = null; | ||
export let href: string | null = null; | ||
const bgLogic: string = bg ? `bg-${bg}-600 px-3 py-2 text-white rounded-full` : "hover:underline"; | ||
</script> | ||
|
||
<a {href} class="font-sans cursor-pointer {bgLogic + " " + nestedStyle}"> | ||
<slot></slot> | ||
</a> |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script lang="ts"> | ||
import NavItem from "../Atoms/NavItem.svelte"; | ||
const navItemList: {href: string, text: string}[] = [ | ||
{href: "#", text: "About"}, | ||
{href: "#", text: "Promotion"}, | ||
{href: "#", text: "Github"}, | ||
] | ||
</script> | ||
|
||
<nav> | ||
{#each navItemList as { href, text }} | ||
<NavItem {href} nestedStyle="mx-4"> | ||
{text} | ||
</NavItem> | ||
{/each} | ||
</nav> |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<script lang="ts"> | ||
import Logo from '../Atoms/Logo.svelte'; | ||
import NavBar from '../Blocks/NavBar.svelte'; | ||
import NavItem from "../Atoms/NavItem.svelte"; | ||
</script> | ||
|
||
<header class="flex justify-between items-center w-3/4 py-2.5"> | ||
<Logo /> | ||
<NavBar /> | ||
<nav> | ||
<NavItem bg="blue"> | ||
Discord | ||
</NavItem> | ||
</nav> | ||
</header> | ||
|
||
<style lang="scss"> | ||
header { | ||
margin: 0 auto; | ||
} | ||
</style> |
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