Skip to content

Commit b840dc5

Browse files
committed
Se crea el layout
1 parent 15b16f2 commit b840dc5

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

layouts/default.vue

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<template>
2+
<div class="p-2 w-full">
3+
<nav
4+
class="h-full flex justify-between items-center max-h-12 top-0 left-0 border border-stroke-color bg-dark-yellow/15 p-2 rounded-md z-50 shadow-md transition-transform duration-300"
5+
>
6+
<a href="/">
7+
<img class="h-8 aspect-square" src="/logo.svg" alt="rustlingWeb" />
8+
</a>
9+
<div>
10+
<a
11+
class="text-white flex gap-1 bg-editor-bg p-1 rounded-md border border-white/50 hover:scale-105 duration-300 justify-center items-center"
12+
target="_blank"
13+
href="https://github.com/RustLangES/rustlings-web"
14+
>
15+
<svg
16+
xmlns="http://www.w3.org/2000/svg"
17+
viewBox="0 0 24 24"
18+
fill="none"
19+
stroke="currentColor"
20+
stroke-width="2"
21+
stroke-linecap="round"
22+
stroke-linejoin="round"
23+
class="lucide lucide-github size-5 m-px"
24+
>
25+
<path
26+
d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"
27+
/>
28+
<path d="M9 18c-4.51 2-5-2-7-2" />
29+
</svg>
30+
</a>
31+
</div>
32+
</nav>
33+
<slot />
34+
</div>
35+
</template>

tailwind.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Config } from "tailwindcss";
33

44
const config: Config = {
55
content: [
6+
"./layouts/**/*.{vue,js,ts]",
67
"./components/**/*.{vue,js,ts}",
78
"./layouts/**/*.{vue,js,ts}",
89
"./pages/**/*.{vue,js,ts}",

0 commit comments

Comments
 (0)