-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
134 lines (118 loc) · 3.17 KB
/
styles.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
/* Base Styles */
body {
font-family: 'Nunito', sans-serif;
margin: 0;
background-color: #1E1B2E;
color: #bd9aa6;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
#particles-js {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
}
.container {
display: flex; /* Enables side-by-side layout */
width: 100%;
max-width: 1200px; /* Adjusts the overall width */
background-color: rgba(41, 40, 77, 0.418);
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
padding: 20px;
z-index: 2;
flex-direction: column; /* Column layout for navbar and content */
}
/* Navbar */
#navbar {
background-color: #2C2850;
padding: 10px 0;
border-radius: 10px;
width: 100%; /* Full width of the container */
margin-bottom: 20px; /* Space below the navbar */
z-index: 2; /* Ensure it's above the particles */
position: relative;
}
#navbar ul {
list-style: none;
display: flex;
justify-content: space-around;
padding: 0;
margin: 0;
}
#navbar li {
padding: 0 15px;
}
#navbar li a {
color: #AA336A;
text-decoration: none;
font-weight: 700;
}
#navbar li a:hover {
color: #A478CB;
}
/* Main Content */
.content-area {
display: flex; /* Allows the main and photo boxes to be side by side */
width: 100%;
margin-top: 10px; /* Small gap between main content and photo box */
}
main {
flex: 2; /* Main content is wider */
background-color: #403A5B;
padding: 20px;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Photo Box */
.photo-box {
flex: 1; /* Photo box is narrower */
background-color: #2C2850;
display: flex;
justify-content: center;
align-items: center;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for photo box */
margin-left: 10px; /* Small gap between main content and photo box */
}
.photo-box img {
max-width: 100%; /* Ensures the image fits inside the box */
height: auto;
border-radius: 0%; /* Makes the image circular */
border: 6px solid #2C2850; /* Adds a border around the image */
transition: opacity 0.6s ease-in-out; /* Smooth transition */
}
.photo-box:hover img {
content: url('me2.png'); /* Ensure this path is correct */
}
/* Footer */
footer {
background-color: #2C2850;
color: #A478CB;
text-align: center;
padding: 10px;
margin-top: 20px;
border-radius: 10px;
}
/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
.content-area {
flex-direction: column; /* Stack main and photo vertically */
}
.photo-box {
margin-left: 0; /* Remove left margin */
margin-top: 10px; /* Add space above the photo box */
width: 100%; /* Make photo box full width */
}
main {
width: 100%; /* Make main section full width */
}
}