better scaling
This commit is contained in:
		| @@ -14,11 +14,11 @@ | |||||||
|   display: flex; |   display: flex; | ||||||
|   flex-direction: column; |   flex-direction: column; | ||||||
|   position: relative; |   position: relative; | ||||||
|   padding-bottom: 50px; |   margin: 30px;  | ||||||
| } | } | ||||||
|  |  | ||||||
| .bubble_main { | .bubble_main { | ||||||
|   width: 40vw; |   width: 100%; | ||||||
| } | } | ||||||
|  |  | ||||||
| .bubble_main h1 { | .bubble_main h1 { | ||||||
| @@ -60,7 +60,7 @@ | |||||||
| @media screen and (max-width: 650px) { | @media screen and (max-width: 650px) { | ||||||
|   // Phones |   // Phones | ||||||
|   .bubble_main { |   .bubble_main { | ||||||
|     width: 80vw; |     width: auto; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   .bubble_main h1 { |   .bubble_main h1 { | ||||||
|   | |||||||
| @@ -51,17 +51,37 @@ | |||||||
| } | } | ||||||
|  |  | ||||||
| .home__content__info { | .home__content__info { | ||||||
|   height: auto; |   height: 100vh; | ||||||
|   width: 100%; |   width: 100%; | ||||||
|   margin: 0px; |   margin: 0px; | ||||||
|   padding: 0px; |   padding: 0px; | ||||||
|   background: linear-gradient(#353535, #232323); |   background: linear-gradient(#353535, #232323); | ||||||
|  |   display: flex; | ||||||
|  |   align-items: center; | ||||||
|  |   justify-content: center; | ||||||
|  |  | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .c { | ||||||
|  |   margin: 0px; | ||||||
|  |   padding: 0px; | ||||||
|  |   width: 80%; | ||||||
|  |   height: 80%; | ||||||
|  |   position: relative; | ||||||
|  |   display: flex; | ||||||
|  |   opacity: 100%; | ||||||
|  |   flex-direction: column; | ||||||
|  |   justify-content: center; | ||||||
|  |   background: transparent; | ||||||
|  |   z-index: 0; | ||||||
| } | } | ||||||
|  |  | ||||||
| @media screen and (max-width: 650px) { | @media screen and (max-width: 650px) { | ||||||
|   // Phones |   // Phones | ||||||
|  |   .home__content__panel__title { | ||||||
|  |     font-size: 45px; | ||||||
|  |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|  |  | ||||||
| // Animations | // Animations | ||||||
|  |  | ||||||
|   | |||||||
| @@ -6,10 +6,10 @@ export default class Bubble extends Component { | |||||||
|   render() { |   render() { | ||||||
|     return ( |     return ( | ||||||
|       <div |       <div | ||||||
|         style={{ |         // style={{ | ||||||
|           marginLeft: `${this.props.left}`, |         //   marginLeft: `${this.props.left}`, | ||||||
|           paddingTop: `${this.props.top}`, |         //   paddingTop: `${this.props.top}`, | ||||||
|         }} |         // }} | ||||||
|       > |       > | ||||||
|         <div className="bubble"> |         <div className="bubble"> | ||||||
|           <AnimationOnScroll |           <AnimationOnScroll | ||||||
|   | |||||||
| @@ -41,23 +41,21 @@ export default class Home extends Component { | |||||||
|               className="home__content__panel__video" |               className="home__content__panel__video" | ||||||
|               type="video/mp4" |               type="video/mp4" | ||||||
|               src={backgroundVideo} |               src={backgroundVideo} | ||||||
|             > |             ></video> | ||||||
|             </video> |  | ||||||
|           </div> |           </div> | ||||||
|  |  | ||||||
|           <div className="home__content__info"> |           <div className="home__content__info"> | ||||||
|             <Bubble top="10vh" left="30vw" h1="Join us at our" h2="GBMs 🤝"> |             <div className="c"> | ||||||
|  |               <Bubble h1="Join us at our" h2="GBMs 🤝"> | ||||||
|                 <span> |                 <span> | ||||||
|                 Welcome to the Illinois Tech Robotics Club! We are a student-run |                   Welcome to the Illinois Tech Robotics Club! We are a | ||||||
|                 organization that promotes the field of robotics through |                   student-run organization that promotes the field of robotics | ||||||
|                 hands-on projects, competitions and events. Open to students of |                   through hands-on projects, competitions and events. Open to | ||||||
|                 all majors and skill levels, we meet every week at 6:30pm CST to |                   students of all majors and skill levels, we meet every week at | ||||||
|                 work on exciting robotics projects. |                   6:30pm CST to work on exciting robotics projects. | ||||||
|                 </span> |                 </span> | ||||||
|               </Bubble> |               </Bubble> | ||||||
|               <Bubble |               <Bubble | ||||||
|               top="5vh" |  | ||||||
|               left="30vw" |  | ||||||
|                 h1="Directions to the" |                 h1="Directions to the" | ||||||
|                 h2="ITR Lab 🗺️" |                 h2="ITR Lab 🗺️" | ||||||
|               > |               > | ||||||
| @@ -72,13 +70,14 @@ export default class Home extends Component { | |||||||
|                   3. Once in the basement, take a right from the elevator and |                   3. Once in the basement, take a right from the elevator and | ||||||
|                   enter the last door on the left. |                   enter the last door on the left. | ||||||
|                   <br /> |                   <br /> | ||||||
|                 4. Finally, sign in to the Elevate Underground Lab with the CLA |                   4. Finally, sign in to the Elevate Underground Lab with the | ||||||
|                 on guard! |                   CLA on guard! | ||||||
|                 </span> |                 </span> | ||||||
|               </Bubble> |               </Bubble> | ||||||
|             </div> |             </div> | ||||||
|           </div> |           </div> | ||||||
|         </div> |         </div> | ||||||
|  |       </div> | ||||||
|     ); |     ); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user