-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathteacher.css
95 lines (85 loc) · 1.95 KB
/
teacher.css
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/* General Page Styling */
body {
margin: 0;
font-family: Arial, sans-serif;
background: #000000;
color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
min-height: 100vh;
text-align: center;
}
/* Teacher Container */
.teacher-container {
max-width: 800px;
padding: 20px;
background: rgb(0, 0, 0);
border-radius: 10px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
/* Teacher Name */
.teacher-name {
font-size: 3rem;
font-weight: bold;
color: #00ff33;
margin-bottom: 20px;
}
/* Teacher Image */
.teacher-image img {
width: 100%;
max-width: 500px;
height: auto;
border-radius: 10px;
box-shadow: 0px 4px 10px rgba(17, 243, 62, 0.2);
margin-bottom: 20px;
}
/* Teacher Bio */
.teacher-bio {
justify-content: left;
font-weight: bold;
font-size: 2rem;
line-height: 1.2;
color: #ffffff;
}
/* Media Queries */
@media (max-width: 768px) {
.teacher-name {
font-size: 2.5rem;
}
.teacher-bio {
font-size: 1rem;
}
}
.book-now-btn {
position:sticky;
bottom: 20px;
right: auto;
font-size: 24px;
font-weight: bold;
color: #5bff1a;
text-decoration: none;
padding: 15px 30px;
background: #3a3a3a; /* Greyish color */
border-radius: 5px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
z-index: 1000; /* Ensure it appears above other elements */
}
.book-now-btn:hover {
transform: scale(1.1); /* Slightly enlarges the button */
background: #00ff33;
color:#000000;
box-shadow: 0 0 20px #39ff14, 0 0 10px #39ff14, 0 0 20px #39ff14;
}
/* Add a fade-in class */
.fade-in {
opacity: 0;
transform: translateY(20px); /* Optional: slide effect */
transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
/* Add this class to trigger the fade-in effect */
.fade-in.visible {
opacity: 1;
transform: translateY(0);
}