fix resizing issue

This commit is contained in:
Rainyy21
2026-05-27 16:28:46 -04:00
parent 995dfbc8be
commit 291b736315
6 changed files with 118 additions and 119 deletions
+12 -11
View File
@@ -1,35 +1,36 @@
/* text box and make it so it doesn't overflow out of the box */ /* text box and make it so it doesn't overflow out of the box */
#about.description{ .description {
font-family: monospace; font-family: monospace;
font-size: 1.5rems; font-size: 1.5rem;
font-weight: normal; font-weight: normal;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
white-space: normal; white-space: normal;
word-wrap: break-word; word-wrap: break-word;
height: 100rem; height: inherit;
width: 40rem; width: inherit;
} }
/* tittle (contain name, and simple text with icon) */ /* title (contain name, and simple text with icon) */
#about.tittle_text{ .title_text {
padding-bottom: 0rem; padding-bottom: 0rem;
} }
#about.tittle_text h1{
.title_text h1 {
font-size: 2.5rem; font-size: 2.5rem;
} }
/* education section */ /* education section */
#textbox.brooklyncollege{ .brooklyn_college_container {
border-left: 3px solid rgba(17, 17, 17, 0.5); border-left: 3px solid rgba(17, 17, 17, 0.5);
} }
#education.brooklyncollege{ .education_detail {
padding-left: 4px; padding-left: 4px;
font-size: .9rem; font-size: .9rem;
} }
/* hobbie section */ /* hobby section */
#bulletpoint.hobbie{ .hobby_list {
font-size: 1.2rem; font-size: 1.2rem;
} }
+2 -2
View File
@@ -2,11 +2,11 @@
cursor: pointer; cursor: pointer;
background: none; background: none;
border: none; border: none;
} }
#social_text { #social_text {
margin-top: 0; margin-top: 0;
color:var(--text-color) color: var(--text-color);
} }
.social { .social {
+3 -4
View File
@@ -7,20 +7,19 @@
height: 50vh; height: 50vh;
} }
/* welcome text and name text color */ /* welcome text and name text color */
.tittle_text{ .title_text {
font-size: 2.5rem; font-size: 2.5rem;
font-family: 'Courier New', Courier, monospace; font-family: 'Courier New', Courier, monospace;
margin-bottom: 10px; margin-bottom: 10px;
} }
.main_page_name { .main_page_name {
color: var(--temp_primary-color); color: var(--primary-accent-color);
} }
.description { .description {
font-family: monospace; font-family: monospace;
font-size: 1.5rems; font-size: 1.5rem;
font-weight: normal; font-weight: normal;
} }
+12 -13
View File
@@ -4,13 +4,16 @@
--ground-footer-color: #CFAB8D; --ground-footer-color: #CFAB8D;
--second-footer-color: #D9C4B0; --second-footer-color: #D9C4B0;
--secondary-background-color: #BBDCE5; --secondary-background-color: #BBDCE5;
--temp_primary-color: #fffdd0; --primary-accent-color: #fffdd0;
--temp_secondary-color:#0070A9; --secondary-accent-color: #0070A9;
--text-color: #fcffe9; --text-color: #fcffe9;
}
body {
margin: 0; margin: 0;
overflow: hidden; overflow: hidden;
} }
/* trying to make the color change */ /* trying to make the color change */
* { * {
transition: background-color 0.4s ease, color 0.4s ease; transition: background-color 0.4s ease, color 0.4s ease;
@@ -23,8 +26,8 @@
--second-footer-color: #065084; --second-footer-color: #065084;
--secondary-background-color: #0F828C; --secondary-background-color: #0F828C;
--text-color: #1a033b; --text-color: #1a033b;
} }
/* background color */ /* background color */
.bg_color { .bg_color {
background-color: var(--primary-background-color); background-color: var(--primary-background-color);
@@ -45,7 +48,6 @@
width: 3.5rem; width: 3.5rem;
height: auto; height: auto;
fill: var(--secondary-background-color); fill: var(--secondary-background-color);
} }
#theme_switch svg:last-child { #theme_switch svg:last-child {
@@ -61,27 +63,26 @@
} }
/* the style of the main page */ /* the style of the main page */
.content_container { .content_container {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 100vh; height: 100vh;
} }
.Square_content{
width: 50rem; .square_content {
height: 50rem; width: 50vw;
height: 65vh;
background: var(--secondary-background-color); background: var(--secondary-background-color);
border-radius: 1rem; border-radius: 1rem;
box-sizing: border-box; box-sizing: border-box;
} }
.website_top { .website_top {
background-color: var(--temp_secondary-color); background-color: var(--secondary-accent-color);
padding: 1rem; padding: 1rem;
border-top-left-radius: inherit; border-top-left-radius: inherit;
border-top-right-radius: inherit; border-top-right-radius: inherit;
} }
.website_text { .website_text {
@@ -102,12 +103,10 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
#home_button svg { #home_button svg {
width: 3.5rem; width: 3.5rem;
height: auto; height: auto;
fill: var(--secondary-background-color); fill: var(--secondary-background-color);
} }
+3 -3
View File
@@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- tittle --> <!-- title -->
<title>Rain website</title> <title>Rain website</title>
<!-- add a image --> <!-- add a image -->
@@ -36,7 +36,7 @@
<!-- my info from who i am and my social linke --> <!-- my info from who i am and my social linke -->
<div class="content_container"> <div class="content_container">
<div class = "Square_content"> <div class="square_content">
<div class="website_top"> <div class="website_top">
<div class="website_text"> <div class="website_text">
Home Home
@@ -45,7 +45,7 @@
<!-- this might be where the whole stuff should be in --> <!-- this might be where the whole stuff should be in -->
<div class="box_body"> <div class="box_body">
<!-- this is the text for the main page --> <!-- this is the text for the main page -->
<p class = "tittle_text"> <p class="title_text">
HI I'm <span class="main_page_name"> Simon Zheng</span> HI I'm <span class="main_page_name"> Simon Zheng</span>
</p> </p>
<h2 class="description"> <h2 class="description">
+9 -9
View File
@@ -43,35 +43,35 @@
<!-- my info from who i am and my social linke --> <!-- my info from who i am and my social linke -->
<div class="content_container"> <div class="content_container">
<div class = "Square_content"> <div class="square_content">
<div class="website_top"> <div class="website_top">
<div class="website_text"> <div class="website_text">
About About
</div> </div>
</div> </div>
<!-- this might be where the whole stuff should be in --> <!-- this might be where the whole stuff should be in -->
<div class = "box_body" id = "about"> <div class="box_body">
<!-- this is the text for the main page --> <!-- this is the text for the main page -->
<!-- adding my pfp image --> <!-- adding my pfp image -->
<div class = "tittle_text" id = "about"> <div class="title_text">
<h1>Simon Zheng</h1> <h1>Simon Zheng</h1>
<!-- add paragraph here to explain what i do --> <!-- add paragraph here to explain what i do -->
</div> </div>
<div class = "description" id = "about"> <div class="description">
<h2> <h2>
Hi I'm Simon, Student studying in computer science. Hi I'm Simon, Student studying in computer science.
</h2> </h2>
<br> <br>
<div class = "education" id = "textbox"> <div class="education">
<h1> <h1>
Education Education
</h1> </h1>
<div class = "brooklyncollege" id = "textbox"> <div class="brooklyn_college_container">
<div class = "brooklyncollege" id = education> <div class="education_detail">
<p> <p>
Bachelor of Science in Computer Science Bachelor of Science in Computer Science
</p> </p>
@@ -81,11 +81,11 @@
</div> </div>
</div> </div>
</div> </div>
<div class = "interest" id = "textbox"> <div class="interest">
<h1> <h1>
Other interest Other interest
</h1> </h1>
<ul class = "hobbie" id = "bulletpoint"> <ul class="hobby_list">
<li> <li>
Game Game
</li> </li>