|
| 1 | +<script> |
| 2 | + import Button from '$ui/button/button.svelte'; |
| 3 | + import { fly, slide } from 'svelte/transition'; |
| 4 | +
|
| 5 | + let screenWidth = 0; |
| 6 | +</script> |
| 7 | + |
| 8 | +<svelte:window bind:innerWidth={screenWidth} /> |
| 9 | +<div class="flex flex-col justify-center items-center h-[84vh] md:h-[90vh] relative px-2 md:px-0"> |
| 10 | + <div class="text-center"> |
| 11 | + <h1 class="font-semibold head_title text-3xl md:text-5xl"> |
| 12 | + <!-- {#key textCode} |
| 13 | + <span in:blur>{textCode}</span> |
| 14 | + {/key} --> |
| 15 | + Coding Guide. |
| 16 | + </h1> |
| 17 | + <p class="mt-1.5 md:mt-3 text-lg text-primary/70 head_para"> |
| 18 | + Simple guide to Web Development & Competitive Coding with Interview Questions |
| 19 | + </p> |
| 20 | + </div> |
| 21 | + {#if screenWidth > 768} |
| 22 | + <div class="parent mt-5"> |
| 23 | + <a |
| 24 | + in:slide={{ duration: 300 }} |
| 25 | + href="/roadmap/stl" |
| 26 | + class="div1 box border bg-orange-400/30 border-orange-500 dark:border-sky-400 dark:bg-sky-800/20" |
| 27 | + > |
| 28 | + DSA |
| 29 | + </a> |
| 30 | + <a |
| 31 | + in:fly={{ y: 100, duration: 300, delay: 500 }} |
| 32 | + href="/databases/d" |
| 33 | + class="div2 box border dark:bg-orange-800/20 dark:border-orange-500 border-sky-600 bg-sky-600/30" |
| 34 | + > |
| 35 | + Databases |
| 36 | + </a> |
| 37 | + <a |
| 38 | + in:fly={{ x: 100, duration: 300, delay: 1000 }} |
| 39 | + href="/fullstack" |
| 40 | + class="div3 box border bg-emerald-500/30 dark:bg-emerald-800/20 border-emerald-500 bg" |
| 41 | + > |
| 42 | + Full-stack</a |
| 43 | + > |
| 44 | + <div |
| 45 | + class="div4 box border bg-gray-100 border-gray-600 dark:border-cyan-800/50 dark:bg-cyan-800/10" |
| 46 | + /> |
| 47 | + <div |
| 48 | + class="div5 box border bg-gray-100 border-gray-600 dark:border-gray-800 dark:bg-gray-800/10" |
| 49 | + /> |
| 50 | + <div |
| 51 | + class="div6 box border bg-gray-100 border-gray-600 dark:border-gray-800 dark:bg-gray-800/10" |
| 52 | + /> |
| 53 | + <div |
| 54 | + class="div7 box border bg-gray-100 border-gray-600 dark:border-cyan-800/50 dark:bg-cyan-800/10" |
| 55 | + /> |
| 56 | + </div> |
| 57 | + {:else} |
| 58 | + <div class="flex flex-wrap gap-2 mt-5 justify-center"> |
| 59 | + <Button size="lg" href="/fullstack/frameworks">Frameworks</Button> |
| 60 | + <Button size="lg" href="/fullstack/concepts">Concepts</Button> |
| 61 | + <Button size="lg" href="/fullstack/interview">Interview</Button> |
| 62 | + </div> |
| 63 | + {/if} |
| 64 | +</div> |
| 65 | + |
| 66 | +<style> |
| 67 | + @import url('https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap'); |
| 68 | +
|
| 69 | + @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap'); |
| 70 | + .head_title { |
| 71 | + font-family: 'Sora', sans-serif; |
| 72 | + font-optical-sizing: auto; |
| 73 | + font-weight: 600; |
| 74 | + font-style: normal; |
| 75 | + } |
| 76 | + .head_para { |
| 77 | + font-family: 'Sora', sans-serif; |
| 78 | + } |
| 79 | + /* .parent { |
| 80 | + display: grid; |
| 81 | + grid-template-columns: repeat(2, 1fr); |
| 82 | + grid-template-rows: repeat(2, 1fr); |
| 83 | + grid-column-gap: 10px; |
| 84 | + grid-row-gap: 10px; |
| 85 | + font-weight: 500; |
| 86 | + font-family: 'Poppins', sans-serif; |
| 87 | + } |
| 88 | +
|
| 89 | + .div1 { |
| 90 | + grid-area: 1 / 1 / 2 / 2; |
| 91 | + height: 150px; |
| 92 | + width: 320px; |
| 93 | + } |
| 94 | + .div2 { |
| 95 | + height: 150px; |
| 96 | + width: 320px; |
| 97 | + grid-area: 2 / 1 / 3 / 2; |
| 98 | + } |
| 99 | + .div3 { |
| 100 | + height: 310px; |
| 101 | + width: 320px; |
| 102 | + grid-area: 1 / 2 / 3 / 3; |
| 103 | + } */ |
| 104 | + .box { |
| 105 | + display: flex; |
| 106 | + align-items: center; |
| 107 | + justify-content: center; |
| 108 | + padding: 30px; |
| 109 | + border-radius: 15px; |
| 110 | + font-size: 2rem; |
| 111 | + } |
| 112 | + .parent { |
| 113 | + display: grid; |
| 114 | + grid-template-columns: repeat(6, 1fr); |
| 115 | + grid-template-rows: repeat(6, 1fr); |
| 116 | + grid-column-gap: 10px; |
| 117 | + grid-row-gap: 10px; |
| 118 | + font-family: 'Poppins', sans-serif; |
| 119 | + } |
| 120 | +
|
| 121 | + .div1 { |
| 122 | + grid-area: 1 / 2 / 4 / 4; |
| 123 | + } |
| 124 | + .div2 { |
| 125 | + grid-area: 1 / 4 / 7 / 6; |
| 126 | + } |
| 127 | + .div3 { |
| 128 | + grid-area: 4 / 2 / 7 / 4; |
| 129 | + } |
| 130 | + .div4 { |
| 131 | + grid-area: 1 / 6 / 5 / 7; |
| 132 | + } |
| 133 | + .div5 { |
| 134 | + grid-area: 5 / 6 / 7 / 7; |
| 135 | + } |
| 136 | + .div6 { |
| 137 | + grid-area: 1 / 1 / 3 / 2; |
| 138 | + } |
| 139 | + .div7 { |
| 140 | + grid-area: 3 / 1 / 7 / 2; |
| 141 | + } |
| 142 | +</style> |
0 commit comments