initialize project

This commit is contained in:
somrat sorkar
2023-04-17 12:50:29 +06:00
commit 8badd3f3e7
106 changed files with 4564 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
html {
@apply text-base;
}
body {
@apply bg-body font-primary font-normal leading-relaxed text-text dark:bg-darkmode-body dark:text-darkmode-text;
}
h1,
h2,
h3,
h4,
h5,
h6 {
@apply font-secondary font-bold leading-tight text-dark dark:text-darkmode-dark;
}
h1,
.h1 {
@apply text-h1-sm md:text-h1;
}
h2,
.h2 {
@apply text-h2-sm md:text-h2;
}
h3,
.h3 {
@apply text-h3-sm md:text-h3;
}
h4,
.h4 {
@apply text-h4 font-medium;
}
h5,
.h5 {
@apply text-h5 font-medium;
}
h6,
.h6 {
@apply text-h6 font-medium;
}
b,
strong {
@apply font-semibold;
}
code {
@apply after:border-none;
}
+15
View File
@@ -0,0 +1,15 @@
.btn {
@apply inline-block rounded border border-transparent px-5 py-2 font-semibold capitalize transition;
}
.btn-sm {
@apply rounded-sm px-4 py-1.5 text-sm;
}
.btn-primary {
@apply border-primary bg-primary text-white no-underline dark:border-darkmode-primary dark:bg-white dark:text-dark;
}
.btn-outline-primary {
@apply border-dark bg-transparent text-dark no-underline hover:bg-dark hover:text-white dark:border-white dark:text-white dark:hover:bg-white dark:hover:text-dark;
}
+174
View File
@@ -0,0 +1,174 @@
// section style
.section {
@apply py-24 xl:py-28;
&-sm {
@apply py-16 xl:py-20;
}
}
// container
.container {
@apply mx-auto max-w-[1320px] px-4;
}
// form style
.form-input {
@apply w-full rounded border-transparent bg-theme-light px-6 py-4 text-dark placeholder:text-light focus:border-primary focus:ring-transparent dark:border-darkmode-border dark:bg-darkmode-theme-light dark:text-darkmode-light;
}
.form-label {
@apply mb-4 block font-secondary text-xl font-normal text-dark dark:text-darkmode-light;
}
// social icons
.social-icons {
@apply space-x-4;
li {
@apply inline-block;
a {
@apply flex h-9 w-9 items-center justify-center rounded bg-primary text-center leading-9 text-white dark:bg-darkmode-primary dark:text-dark;
svg {
@apply h-5 w-5;
}
}
}
}
// notice
.notice {
@apply mb-6 rounded-lg border px-8 py-6;
&-head {
@apply flex items-center;
svg {
@apply mr-3;
}
p {
@apply font-secondary text-xl font-semibold text-dark dark:text-darkmode-light;
}
}
.notice-body {
@apply mt-3;
p {
@apply my-0;
}
}
&.note {
@apply text-[#1B83E2];
@apply border-current;
}
&.tip {
@apply text-[#40D294];
@apply border-current;
}
&.info {
@apply text-[#E3A72C];
@apply border-current;
}
&.warning {
@apply text-[#DB2C23];
@apply border-current;
}
}
// swiper pagination
.swiper-pagination-bullet {
@apply h-2.5 w-2.5 bg-theme-light opacity-100 dark:bg-darkmode-theme-light;
&-active {
@apply h-4 w-4 bg-primary dark:bg-darkmode-primary;
}
}
// tab
.tab {
@apply overflow-hidden rounded-lg border border-border dark:border-darkmode-border;
&-nav {
@apply flex border-b border-border bg-theme-light dark:border-darkmode-border dark:bg-darkmode-theme-light;
@apply m-0 #{!important};
@apply list-none #{!important};
&-item {
@apply cursor-pointer border-b-[3px] border-border py-2 text-lg text-dark opacity-80 dark:border-light;
@apply my-0 #{!important};
@apply px-8 #{!important};
&.active {
@apply border-b-[3px] border-dark opacity-100 dark:border-darkmode-primary;
}
}
}
&-content {
&-panel {
@apply hidden p-8;
p {
@apply mb-0;
}
&.active {
@apply block;
}
}
}
}
// accordion
.accordion {
@apply mb-6 overflow-hidden rounded-lg border border-border bg-theme-light dark:border-darkmode-border dark:bg-darkmode-theme-light;
&-header {
@apply flex cursor-pointer items-center justify-between px-8 py-4 text-lg text-dark dark:bg-darkmode-theme-light dark:text-darkmode-light;
}
&-icon {
@apply h-[.8em] w-[.8em] rotate-[-90deg] transition-transform duration-200;
}
&-content {
@apply max-h-0 overflow-hidden px-8 py-0;
}
&.active {
.accordion-icon {
@apply rotate-0;
}
.accordion-content {
@apply max-h-screen;
}
}
}
// modal
.modal {
@apply fixed inset-0 z-40 hidden h-full w-full overflow-auto;
&-overlay {
@apply fixed inset-0 z-40 hidden h-full w-full bg-black bg-opacity-40;
}
&-content {
@apply relative top-1/2 z-50 mx-auto max-w-[90%] -translate-y-1/2 rounded-lg bg-body p-8 dark:bg-darkmode-body;
}
&-close {
@apply absolute right-3 top-3 h-8 w-8 rounded-full bg-theme-light text-center leading-8 text-dark dark:bg-darkmode-theme-light dark:text-darkmode-dark;
}
}
// content style
.content {
@apply prose max-w-none;
@apply prose-headings:mb-[.3em] prose-headings:mt-[.6em];
@apply prose-h1:text-h1-sm md:prose-h1:text-h1;
@apply prose-h2:text-h2-sm md:prose-h2:text-h2;
@apply prose-h3:text-h3-sm md:prose-h3:text-h3;
@apply prose-img:max-w-full prose-img:rounded;
@apply prose-hr:border-border prose-hr:dark:border-darkmode-border;
@apply prose-p:text-base prose-p:text-text prose-p:dark:text-darkmode-text;
@apply prose-blockquote:rounded-lg prose-blockquote:border prose-blockquote:border-l-[10px] prose-blockquote:border-primary prose-blockquote:bg-theme-light prose-blockquote:px-8 prose-blockquote:py-10 prose-blockquote:font-secondary prose-blockquote:text-2xl prose-blockquote:not-italic prose-blockquote:text-dark prose-blockquote:dark:border-darkmode-primary prose-blockquote:dark:bg-darkmode-theme-light prose-blockquote:dark:text-darkmode-light;
@apply prose-pre:rounded-lg prose-pre:bg-theme-light prose-pre:dark:bg-darkmode-theme-light;
@apply prose-code:px-1 prose-code:text-primary prose-code:dark:text-darkmode-primary;
@apply prose-strong:text-dark prose-strong:dark:text-darkmode-text;
@apply prose-a:text-text prose-a:underline hover:prose-a:text-primary prose-a:dark:text-darkmode-text hover:prose-a:dark:text-darkmode-primary;
@apply prose-li:text-text prose-li:dark:text-darkmode-text;
@apply prose-table:relative prose-table:overflow-hidden prose-table:rounded-lg prose-table:before:absolute prose-table:before:left-0 prose-table:before:top-0 prose-table:before:h-full prose-table:before:w-full prose-table:before:rounded-[inherit] prose-table:before:border prose-table:before:content-[""] prose-table:before:dark:border-darkmode-border;
@apply prose-thead:border-border prose-thead:bg-theme-light prose-thead:dark:border-darkmode-border prose-thead:dark:bg-darkmode-theme-light;
@apply prose-th:relative prose-th:z-10 prose-th:px-4 prose-th:py-[18px] prose-th:text-dark prose-th:dark:text-darkmode-text;
@apply prose-tr:border-border prose-tr:dark:border-darkmode-border;
@apply prose-td:relative prose-td:z-10 prose-td:px-3 prose-td:py-[18px] prose-td:dark:text-darkmode-text;
}
+17
View File
@@ -0,0 +1,17 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
@import "base";
}
@layer components {
@import "components";
@import "navigation";
@import "buttons";
}
@layer utilities {
@import "utilities";
}
+79
View File
@@ -0,0 +1,79 @@
// navbar toggler
input#nav-toggle:checked ~ label#show-button {
@apply hidden;
}
input#nav-toggle:checked ~ label#hide-button {
@apply flex lg:hidden;
}
input#nav-toggle:checked ~ #nav-menu {
@apply block lg:flex;
}
.header {
@apply bg-body py-6 dark:bg-darkmode-body;
}
// navbar items
.navbar {
@apply relative flex flex-wrap items-center justify-between;
}
.navbar-brand {
@apply text-xl font-semibold text-dark dark:text-darkmode-dark;
image {
@apply max-h-full max-w-full;
}
}
.navbar-nav {
@apply text-center lg:text-left;
}
.nav-item {
// @apply mx-3;
}
.nav-link {
@apply block p-3 font-semibold text-dark transition hover:text-primary dark:text-darkmode-dark lg:px-2 lg:py-3;
}
.nav-dropdown {
@apply mr-0;
}
.nav-dropdown-list {
@apply z-10 min-w-[180px] rounded bg-body p-4 shadow dark:bg-darkmode-body;
}
.nav-dropdown-item {
@apply mb-2;
}
.nav-dropdown-link {
@apply block py-1 font-semibold text-dark transition hover:text-primary dark:text-darkmode-text dark:hover:text-darkmode-primary;
}
//theme-switcher
.theme-switcher {
@apply inline-flex;
label {
@apply relative inline-block h-4 w-6 cursor-pointer rounded-2xl bg-border lg:w-10;
}
input {
@apply absolute opacity-0;
}
span {
@apply absolute -top-1 left-0 flex h-6 w-6 items-center justify-center rounded-full bg-dark transition-all duration-300 dark:bg-white;
}
input:checked + label {
span {
@apply lg:left-4;
}
}
}
+20
View File
@@ -0,0 +1,20 @@
.bg-gradient {
@apply bg-gradient-to-b from-[rgba(249,249,249,1)] from-[0.53%] to-white to-[83.28%] dark:from-darkmode-theme-light dark:to-darkmode-body;
}
.rounded-sm {
@apply rounded-[4px];
}
.rounded {
@apply rounded-[6px];
}
.rounded-lg {
@apply rounded-[12px];
}
.rounded-xl {
@apply rounded-[16px];
}
.shadow {
box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.05);
}