feat: build UI

This commit is contained in:
Viet An
2026-04-09 17:20:47 +07:00
parent bcfda00993
commit 631527225e
36 changed files with 11305 additions and 1123 deletions

View File

@@ -1,11 +1,13 @@
@use "sass:color";
@use "bulma/sass/utilities/initial-variables.scss" as *;
@use "bulma/sass/utilities/derived-variables.scss" as *;
@use "bulma/sass/utilities/mixins.scss" as *;
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900');
@use "bulma/sass/components/card.scss" as *;
@use "utils.scss";
@use "overrides-components.scss";
:root {
--bulma-family-primary: 'Inter', 'SF Pro', 'Helvetica', 'Arial', sans-serif;
font-size: 15px;
}
// ==========================================
@@ -124,81 +126,15 @@ $size: (
// 4. CUSTOM CLASSES
// ==========================================
.fullheight { height: 100vh; }
.textsize {
@include mobile { font-size: 18px; }
}
.header-logo {
background: url('/logo_dev.png') no-repeat center center;
background-size: 40px;
width: 50px;
}
.border-bottom { border-bottom: 1px solid color.change($black-pure, $alpha: 0.15) }
.carousel-height {
width: 100%;
height: 80vh;
@include mobile { height: 110vh; }
}
// Mobile Spacing Utilities
.mobile-mt20 { @include mobile { margin-top: 20px; } }
.mobile-px10 { @include mobile { padding-left: 10px; padding-right: 10px; } }
.mobile-pt10 { @include mobile { padding-top: 10px; } }
.mobile-pt80 { padding-top: 120px; @include mobile { padding-top: 80px; } }
.fullhd-pt30 {
padding-top: 30px;
@include until($fullhd) { padding-top: 0px; }
}
.media-width {
width: 120px !important;
@include mobile { width: 112px !important; }
}
.hideon-mobile { @include mobile { display: none; } }
// Typography Classes
.maintext {
margin-top: 20px;
font-size: 40px;
line-height: 3rem;
font-weight: 600;
color: $blue-dianne;
@include mobile { font-size: 34px; }
}
.subtext {
margin-top: 30px;
font-size: 1.2rem;
line-height: 2rem;
color: $cutty-sark;
@include mobile { line-height: 1.8rem; }
}
.dotslide {
position: fixed;
bottom: 0;
position: absolute;
width: 100%;
text-align: center;
z-index: 999;
}
.activetab {
border-radius: 8px;
color: $white-pure;
background-color: $blue-dianne;
}
// Block Layout
.blockdiv {
max-width: 1900px !important;
background-color: $white-pure;
padding: 60px 15px 40px 15px;
@include until($desktop) { padding: 65px 20px 30px 20px; }
@@ -213,31 +149,6 @@ $size: (
}
}
.padding-text {
padding-left: 15%; padding-right: 5%;
@include until($desktop) { padding-left: 0; padding-right: 0; }
@include until($fullhd) { padding-left: 0; padding-right: 0; }
}
.padding-image {
padding-left: 5%; padding-right: 15%;
@include until($fullhd) { padding-left: 0; padding-right: 0; }
@include until($desktop) { padding-left: 15%; padding-right: 15%; }
@include mobile { padding-left: 0; padding-right: 0; }
}
.imgcontainer {
position: relative;
width: 100% !important;
max-width: 500px;
}
.centered {
position: absolute;
top: 80%;
text-align: center;
}
// Tooltip Styles
.tooltip {
position: relative;
@@ -262,8 +173,6 @@ $size: (
pointer-events: none;
}
.to-left { right: 30px; }
@mixin tooltipshow() {
visibility: visible;
opacity: 1;
@@ -277,166 +186,3 @@ $size: (
.tooltip:hover .tooltiptext { @include tooltipshow() }
.tooltip:hover .tooltiptext .to-left { @include tooltipshow() }
// Dot Indicators
@mixin dot($background) {
height: 22px;
width: 22px;
text-align: center;
color: $white-pure;
font-weight: bold;
background-color: $background;
display: inline-block;
cursor: pointer;
font-size: 15px;
border-radius: 50%;
}
@each $name, $hex in $color {
.dot-#{$name} {
@include dot($hex);
}
}
// ==========================================
// 5. HELPER CLASSES GENERATOR
// ==========================================
@each $name, $hex in $color {
.bg-#{$name} { background-color: $hex !important; }
.text-#{$name} { color: $hex !important; }
.border-#{$name} { border-color: $hex !important; }
.icon-#{$name} { color: $hex !important; }
.icon-bg-#{$name} {
background-color: $hex !important;
color: if(color.channel($hex, "lightness", $space: hsl) > 70, $blue-dianne, $white-pure) !important;
padding: 0.5rem;
border-radius: 4px;
}
}
// ==========================================
// 6. BULMA OVERRIDES
// ==========================================
// Backgrounds
.has-background-primary { background-color: $primary-color !important; }
.has-background-secondary { background-color: $secondary-color !important; }
.has-background-info { background-color: $info-color !important; }
.has-background-success { background-color: $success-color !important; }
.has-background-warning { background-color: $warning-color !important; }
.has-background-danger { background-color: $danger-color !important; }
.has-background-light { background-color: $light-color !important; }
.has-background-dark { background-color: $dark-color !important; }
.has-background-white { background-color: $white-pure !important; }
// Text Colors
.has-text-primary { color: #086e71 !important; }
.has-text-secondary { color: $secondary-color !important; }
.has-text-info { color: $info-color !important; }
.has-text-success { color: $success-color !important; }
.has-text-warning { color: $warning-color !important; }
.has-text-danger { color: $danger-color !important; }
.has-text-light { color: $accent-color !important; }
.has-text-dark { color: $dark-color !important; }
// Button/Element States (is-*)
.is-primary {
background-color: $primary-color !important;
border-color: transparent !important;
color: $white-pure !important;
}
.is-secondary {
background-color: $secondary-color !important;
border-color: transparent !important;
color: $white-pure !important;
}
.is-link {
background-color: $link-color !important;
border-color: transparent !important;
color: $white-pure !important;
}
.is-info {
background-color: $info-color !important;
border-color: transparent !important;
color: $white-pure !important;
}
.is-success {
background-color: $success-color !important;
border-color: transparent !important;
color: $white-pure !important;
}
.is-warning {
background-color: $warning-color !important;
border-color: transparent !important;
color: $white-pure !important;
}
.is-danger {
background-color: $danger-color !important;
border-color: transparent !important;
color: $white-pure !important;
}
.is-light {
background-color: $light-color !important;
border-color: transparent !important;
color: $blue-dianne !important;
}
.is-dark {
background-color: $dark-color !important;
border-color: transparent !important;
color: $white-pure !important;
}
// Outlined Variants
.is-primary.is-outlined {
background-color: transparent !important;
border-color: $primary-color !important;
color: $primary-color !important;
}
.is-link.is-outlined {
background-color: transparent !important;
border-color: $link-color !important;
color: $link-color !important;
}
.is-info.is-outlined {
background-color: transparent !important;
border-color: $info-color !important;
color: $info-color !important;
}
.is-success.is-outlined {
background-color: transparent !important;
border-color: $success-color !important;
color: $success-color !important;
}
.is-warning.is-outlined {
background-color: transparent !important;
border-color: $warning-color !important;
color: $warning-color !important;
}
.is-primary.is-light {
background-color: rgba($primary-color, 0.1) !important;
color: $primary-color !important;
}
.is-info.is-light {
background-color: rgba($info-color, 0.2) !important;
color: color.adjust($info-color, $lightness: -10%) !important;
}
.is-success.is-light {
background-color: rgba($success-color, 0.1) !important;
color: $success-color !important;
}