summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-10-14 16:30:54 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-10-14 16:54:38 +0800
commiteec073d9ad335b340be83046b85d4f5adf77c7f0 (patch)
tree6faa54ba0ababd64b48dc6102cd751f268068abb /components
parent0d69b7f5b85282fd84dac2c411fc38d5bb4374bb (diff)
structure: font, lib
remove(layout): removed reveal animation, instead, its a wrapper now
Diffstat (limited to 'components')
-rw-r--r--components/blob.tsx2
-rw-r--r--components/styles/header.css27
2 files changed, 9 insertions, 20 deletions
diff --git a/components/blob.tsx b/components/blob.tsx
index fe9cf04..d5cfa54 100644
--- a/components/blob.tsx
+++ b/components/blob.tsx
@@ -1,6 +1,6 @@
"use client"
import React, { useState, useEffect, useRef } from 'react';
-import isMobile from '@/app/lib/isMobile';
+import isMobile from '@/lib/isMobile';
import styles from './styles/blob.module.css';
function getRandomInt(min: number, max: number): number {
diff --git a/components/styles/header.css b/components/styles/header.css
index 845168a..0ca9a35 100644
--- a/components/styles/header.css
+++ b/components/styles/header.css
@@ -11,7 +11,7 @@ header {
align-items: center;
text-align: center;
z-index: 1000;
- background-color: #000;
+ background-color: rgba(0,0,0,0.3);
border-radius: 32px;
-webkit-user-select: none; /* Safari */
-ms-user-select: none; /* IE 10 and IE 11 */
@@ -36,13 +36,11 @@ header {
text-decoration: none;
margin-left: 10mm;
margin-right: 10mm;
- padding-top: 5mm;
+ padding-top: 4mm;
/* padding-bottom: 3mm; */
border-radius: 32px;
color: #F4E8C1;
transition: all .3s;
- -webkit-user-select: none; /* Safari */
- -ms-user-select: none; /* IE 10 and IE 11 */
user-select: none; /* Standard syntax */
}
@@ -59,7 +57,7 @@ header {
.navBar a::after {
content: '';
- position: fixed;
+ position: absolute;
left: 0;
bottom: 0;
width: 100%;
@@ -67,20 +65,15 @@ header {
background: rgba(128, 128, 128, 0.2);
border-radius: 1mm;
transform: scaleX(0);
- -webkit-transition: all 0.3s;
transition: all 0.3s;
}
.navBar a:hover::after {
- transform: scaleX(1.1);
+ position: absolute;
+ transform: scaleX(1);
}
.navBar a:hover {
- /* background: rgba(255, 255, 255, 0.2); */
- /* outline: ridge rgba(128, 128, 128, .6); */
- /* -webkit-backdrop-filter: blur(10px);
- backdrop-filter: blur(10px); */
- -webkit-transition: all 1s;
transition: all 1s
}
@@ -100,18 +93,15 @@ header {
.navBar:hover,
header:hover,
#navBarHeader:hover
-/* #navBarHeader:active */
{
transform: scale(1.005);
- /* -webkit-backdrop-filter: blur(10px);
- backdrop-filter: blur(10px); */
transition: all 0.5s
}
header:active,
#navBarHeader:active,
.navBar:active {
- transform: scale(1.01);
+ transform: scale(1.01)
/* transition: transform 700ms; */
}
@@ -126,8 +116,7 @@ header,
header.minimizedIsland {
opacity: 0;
scale: 0;
- -webkit-animation-name: minimizeIsland;
- animation-name: minimizeIsland;
+ transform: translateY(-100%);
animation-fill-mode: forwards;
- transition: all 0.3s
+ transition: all 3s
} \ No newline at end of file