made the website moblie compatiable and fix some design issue

This commit is contained in:
Rainyy21
2026-05-27 18:22:09 -04:00
parent 291b736315
commit 4e40999a0c
7 changed files with 370 additions and 114 deletions
+140 -21
View File
@@ -1,36 +1,155 @@
/* text box and make it so it doesn't overflow out of the box */
.description {
font-family: monospace;
font-size: 1.5rem;
font-weight: normal;
/* about page specific styling */
.box_body {
padding: 2rem;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
height: auto;
overflow-y: auto;
overflow-x: hidden;
white-space: normal;
word-wrap: break-word;
height: inherit;
width: inherit;
}
/* title (contain name, and simple text with icon) */
.title_text {
padding-bottom: 0rem;
.about_header {
display: flex;
align-items: center;
gap: 2rem;
margin-bottom: 2rem;
width: 100%;
}
.pfp_placeholder {
width: 120px;
height: 120px;
background: var(--primary-accent-color);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.pfp_placeholder svg {
width: 60px;
height: 60px;
fill: var(--secondary-accent-color);
}
.title_text h1 {
font-size: 2.5rem;
font-size: 2.8rem;
margin: 0;
color: var(--text-color);
font-family: 'Courier New', Courier, monospace;
}
.intro_text {
font-size: 1.4rem;
color: var(--text-color);
opacity: 0.9;
margin-top: 0.5rem;
font-family: monospace;
}
.description {
width: 100%;
height: auto;
}
.about_section {
margin-bottom: 2.5rem;
width: 100%;
}
.section_title {
display: flex;
align-items: center;
gap: 0.8rem;
border-bottom: 2px solid var(--secondary-accent-color);
padding-bottom: 0.5rem;
margin-bottom: 1.5rem;
}
.section_title h2 {
font-size: 1.8rem;
margin: 0;
font-family: 'Courier New', Courier, monospace;
color: var(--primary-accent-color);
}
.section_title svg {
fill: var(--primary-accent-color);
width: 28px;
height: 28px;
}
/* education section */
.brooklyn_college_container {
border-left: 3px solid rgba(17, 17, 17, 0.5);
.education_card {
background: rgba(255, 255, 255, 0.05);
padding: 1.5rem;
border-radius: 1rem;
border-left: 5px solid var(--secondary-accent-color);
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.education_detail {
padding-left: 4px;
font-size: .9rem;
.education_card h3 {
margin: 0 0 0.5rem 0;
font-size: 1.3rem;
color: var(--text-color);
}
.education_card p {
margin: 0;
font-size: 1.1rem;
color: var(--text-color);
opacity: 0.8;
}
/* hobby section */
.hobby_list {
font-size: 1.2rem;
.hobby_container {
display: flex;
flex-wrap: wrap;
gap: 1rem;
padding: 0;
list-style: none;
}
.hobby_item {
background: var(--secondary-accent-color);
color: var(--text-color);
padding: 0.6rem 1.2rem;
border-radius: 2rem;
font-size: 1.1rem;
font-family: monospace;
transition: transform 0.2s ease, background-color 0.2s ease;
cursor: default;
}
.hobby_item:hover {
transform: scale(1.05);
background: var(--primary-accent-color);
color: var(--secondary-accent-color);
}
@media (max-width: 768px) {
.about_header {
flex-direction: column;
text-align: center;
gap: 1rem;
}
.title_text h1 {
font-size: 2rem;
}
.intro_text {
font-size: 1.1rem;
}
.section_title h2 {
font-size: 1.4rem;
}
.box_body {
padding: 1.5rem;
}
}
+50 -6
View File
@@ -1,17 +1,61 @@
#social_button {
.social_button {
cursor: pointer;
background: none;
background: var(--secondary-accent-color);
border: none;
display: flex;
flex-direction: column;
align-items: center;
padding: 1rem;
border-radius: 1rem;
width: 100px;
transition: transform 0.2s ease, background-color 0.2s ease;
}
#social_text {
margin-top: 0;
.social_button:hover {
transform: translateY(-5px);
background-color: var(--primary-accent-color);
}
.social_button:hover .social_text {
color: var(--secondary-accent-color);
}
.social_button:hover svg {
fill: var(--secondary-accent-color);
}
.social_text {
margin-top: 0.5rem;
color: var(--text-color);
font-size: 1rem;
font-family: monospace;
}
.social {
display: flex;
flex-direction: row;
justify-content: space-between;
gap: 4rem;
justify-content: center;
gap: 2rem;
margin-top: 2rem;
flex-wrap: wrap;
}
@media (max-width: 768px) {
.social {
gap: 1rem;
}
.social_button {
width: 80px;
padding: 0.8rem;
}
.social_button svg {
width: 30px;
height: 30px;
}
.social_text {
font-size: 0.8rem;
}
}
+18 -1
View File
@@ -4,7 +4,8 @@
align-items: center;
justify-content: center;
flex-direction: column;
height: 50vh;
flex-grow: 1;
padding: 2rem;
}
/* welcome text and name text color */
@@ -12,6 +13,7 @@
font-size: 2.5rem;
font-family: 'Courier New', Courier, monospace;
margin-bottom: 10px;
text-align: center;
}
.main_page_name {
@@ -22,4 +24,19 @@
font-family: monospace;
font-size: 1.5rem;
font-weight: normal;
text-align: center;
}
@media (max-width: 768px) {
.title_text {
font-size: 1.8rem;
}
.description {
font-size: 1.2rem;
}
.box_body {
padding: 1rem;
}
}
+50 -26
View File
@@ -11,7 +11,6 @@
body {
margin: 0;
overflow: hidden;
}
/* trying to make the color change */
@@ -31,25 +30,12 @@ body {
/* background color */
.bg_color {
background-color: var(--primary-background-color);
}
/* the darkmode button */
#theme_switch {
padding: 0;
background: none;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
border-style: none;
cursor: pointer;
}
#theme_switch svg {
width: 3.5rem;
height: auto;
fill: var(--secondary-background-color);
flex-direction: column;
}
/* the darkmode button behavior */
#theme_switch svg:last-child {
display: none;
}
@@ -67,15 +53,38 @@ body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
flex-grow: 1;
padding: 2rem 0;
box-sizing: border-box;
}
.square_content {
width: 50vw;
height: 65vh;
min-height: 65vh;
background: var(--secondary-background-color);
border-radius: 1rem;
box-sizing: border-box;
display: flex;
flex-direction: column;
}
@media (max-width: 1024px) {
.square_content {
width: 70vw;
}
}
@media (max-width: 768px) {
.square_content {
width: 90vw;
min-height: 80vh;
}
#theme_switch, #home_button {
width: 3rem;
height: 3rem;
padding: 0.4rem;
}
}
.website_top {
@@ -94,19 +103,34 @@ body {
.header {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 0.5rem 1rem;
width: 100%;
box-sizing: border-box;
z-index: 10;
}
#home_button {
border-style: none;
background: none;
cursor: pointer;
.header div {
display: flex;
justify-content: center;
align-items: center;
}
#home_button svg {
#theme_switch, #home_button {
padding: 0.5rem;
background: none;
display: flex;
justify-content: center;
align-items: center;
border-style: none;
cursor: pointer;
width: 3.5rem;
height: auto;
height: 3.5rem;
box-sizing: border-box;
}
#theme_switch svg, #home_button svg {
width: 100%;
height: 100%;
fill: var(--secondary-background-color);
}