-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject-notes.txt
75 lines (62 loc) · 4.7 KB
/
project-notes.txt
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
69
70
71
72
73
74
75
NOTES:
Tailwind grid breakpoints
Breakpointprefix --- Minimum width --- CSS
sm 640px @media (min-width: 640px) { ... }
md 768px @media (min-width: 768px) { ... }
lg 1024px @media (min-width: 1024px) { ... }
xl 1280px @media (min-width: 1280px) { ... }
2xl 1536px @media (min-width: 1536px) { ... }
----------------------------------------------------------**Things To Add**-------------------------------------------------------------
-- add a few subtle scroll effects
-- maybe add an animation to the background preferebly one that responses to the cursor position
-- Custom Offline fallback page [DONE, added SW to cache html file and icons]
-- add animation to the buttons and links [DONE]
-- Add switchable light and dark themes [DONE]
-- add project links and card thumbnails for the projects inside the project cards [DONE]
-- Add a navbar with resume download link, time date and weather[if possible] [DONE]
-- add wobbly ellipse animation to the display picture [DONE]
-- The downward scroll arrow, when clicked, should scroll to the Projects section [DONE]
!--->need to add a prop to do this
----------------------------------------------------------**Things to Fix**-------------------------------------------------------------
-- mobile page becomes horizontally scrollable when nav menu is opened [FIXED, removed overflow]
-- fix issue with display picture being rendered on splashscreen [FIXED]
!--->issue is caused by the css property of "infinite". need to use a state to dynamically add and remove the css className to the component
-- fix issue of adding more than one animation on dp background glow effect. @apply works on localhost but not on netlfiy.[FIXED used separate css]
-- Fix the alignment and the overall font of the page
-- try to make it look more minimalistic [FIXED]
----------------------------------------------------------**Additional Info**-------------------------------------------------------------
---------------------------------------------------------**LINKS**------------------------------------------------------------------------
-- "https://stackoverflow.com/questions/76753785/how-to-make-typing-animation-with-tailwind-next13-4-tailwind"
-- Typing Animation Lib: "https://react-type-animation.netlify.app/"
--------------------------------------------------------**Explanations**------------------------------------------------------------------
Breakdown:
--0%, 100%:
This specifies two keyframe positions in the animation timeline:
--0%: This is the start of the animation (when the animation begins).
--100%: This is the end of the animation (when the animation completes one cycle).
By defining the same properties for both 0% and 100%, you ensure that the shape starts
and ends with the same configuration, creating a seamless loop in the animation.
--borderRadius: '60% 30% 40% 70% / 60% 30% 70% 40%':
This sets the border-radius of the element to create an abstract, blob-like shape.
The border-radius value is being split into two sections:
The first part (60% 30% 40% 70%) applies to the horizontal radii (top-left, top-right, bottom-right, bottom-left corners in that order).
The second part (60% 30% 70% 40%) applies to the vertical radii (top-left, top-right, bottom-right, bottom-left corners vertically).
These uneven percentages for the corners create the abstract, irregular blob shape instead of a perfect circle or rectangle.
How It Works in the Animation:
-- At 0% and 100%:
The blob shape will have a specific border-radius that gives it the irregular, blobby appearance
defined by the 60% 30% 40% 70% / 60% 30% 70% 40% values.
-- During the animation (e.g., 50%, 75%):
The shape will change (morph) to different border-radius values, making it "wobble" or "morph" as the animation progresses.
-- Why 0%, 100%:
By having the same border-radius values at both 0% and 100%, the animation loops smoothly.
This ensures that the shape gradually transforms during the animation and returns to
the original shape at the end, creating a continuous loop.
-------------------------------------------------***profileborder.css***--------------------------------------------------------------
-- blob-fadein Class:
We define a new class .blob-fadein in the CSS file.
Using the @apply directive, it applies the animate-blob from Tailwind's config.
Additionally, we manually set animation to run both the fadeInOnce and blob animations.
-- Combining Animations:
fadeInOnce 2s ease-in-out forwards: Runs once to fade in the blob.
blob 5s ease-in-out infinite: Keeps running to morph the shape indefinitely.