forked from Ferchupessoadev/tech-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (65 loc) · 3.67 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tech - Blog</title>
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/f845b9182b.js" crossorigin="anonymous"></script>
<!-- tailwind cdn -->
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="css/style.css">
</head>
<body class="min-h-[100vh] flex gap-2 bg-[var(--color-background)] relative">
<!-- side nav -->
<nav id="sidebar"
class="sidebar hidden md:flex flex-col items-center jus z-50 h-[100vh] fixed left-0 m-0 bg-[var(--color-secondary)]">
<p class="border-white border-2 text-[.8em] p-2 flex justify-center items-center">Logo</p>
<button class="btn-sidebar absolute bottom-[45%] right-3 group" id="btn-desktop-sidebar">
<i class="fa-solid fa-arrow-right text-[40px] group-hover:text-[var(--color-primary)]"></i>
</button>
</nav>
<main class="w-[100vw] md:w-[calc(100vw_-_60px)] absolute right-0">
<!-- Header principal -->
<header
class="flex flex-col md:flex-row items-center md:justify-between h-[180px] w-full border-[var(--color-secondary)] border-b-2 px-3 md:px-16 gap-2 md:gap-5">
<div
class="flex text-[26px] justify-center text-center items-center container-text-primary rounded-[10px] h-[120px] w-full md:w-[60vw]">
<h1 class="text-[1em] sm:text-[1.4em] md:text-[2.4em] text-[var(--color-background)]">Tech - Blog</h1>
</div>
<div class="h-full flex items-center justify-center md:justify-end relative w-[80vw] md:w-[250px] gap-5">
<button class="inline-block md:hidden">
<i class="fa-solid fa-bars text-[var(--color-secondary)] text-[2em]"></i>
</button>
<input type="text"
class="input-search rounded-[20px] px-4 py-1 outline-none w-full text-[var(--color-white)] bg-[var(--color-input-search)] border-2 border-[var(--color-secondary)]"
placeholder="Search">
<button class="absolute right-3">
<i class="fa-solid fa-magnifying-glass text-[var(--color-secondary)]"></i>
</button>
</div>
</header>
<section
class="h-[calc(100vh_-_180px)] w-full flex flex-col gap-10 md:gap-0 md:flex-row md:justify-end p-2 py-2">
<div class="flex flex-col items-center justify-center w-full md:w-[50%]">
<p class="text-[3em]">Bienvenido</p>
<div class="flex flex-col md:flex-row items-center gap-1">
<p>Articulo más destacado</p>
<div class="arrow"><i class="fa-regular fa-hand-point-up"></i></div>
</div>
</div>
<div class="container-img-banner relative w-[100%] md:w-[50%] h-full overflow-hidden">
<a href="#" class="link-img-banner"><img class="img-banner w-full h-full absolute bg-cover"
src="./img/img-1.jpg" alt=""></a>
<div class="absolute bottom-0 p-2 backdrop-blur-md bg-[rgba(255_255_255_/_0.2)] h-1/3 overflow-hidden">
<p class="text-[1.2em] font-extrabold">Mejores portatiles para programadores</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Vel voluptas ut rerum. Fuga
repudiandae rem
eveniet ratione placeat dolores incidunt eos dicta minima...</p>
</div>
</div>
</section>
</main>
<script src="./js/main.js"></script>
</body>
</html>