11import React , { Suspense , useEffect } from "react" ;
22import { useNavigate } from "react-router-dom" ;
33import { ReactComponent as RightArrow } from "../../../img/rightArrow.svg" ;
4+ import BoldParagraph from "../../Canvas/Description/BoldParagraph" ;
45import Navigation from "../partial/Navbar/Navigation" ;
56import "./splash.css" ;
67
@@ -21,68 +22,49 @@ const SplashScreen = () => {
2122 return (
2223 < >
2324 < Navigation themeToggle = { false } />
24- < div className = "bg-homeGray relative flex justify-end min- h-screen min-w-screen" >
25+ < div className = "bg-homeGray relative flex h-screen justify-center min-w-screen overflow-hidden " >
2526 < div className = "main-canvas-grid z-0 dark:opacity-[0.03]" />
26- < p className = "font-lg text-white absolute text-[6vh] z-10 top-[15vh] left-[5vw] font-semibold font-spline" >
27- Algo Visualizer
28- </ p >
29- < p className = "font-spline absolute top-[30vh] max-w-[47ch] left-[5vw] text-[1.2em] z-10 text-gray-100" >
30- Improve your understanding of algorithms just by watching simple and
31- completely customizable animations. < br />
32- Welcome to the algo visualizer.
33- </ p >
34- < div className = "hidden md:block md:scale-[.7] z-1 -translate-y-[4em] md:translate-x-[150px] lg:translate-x-[17px] lg:scale-[.8] xl:scale-[.9] w-fit" >
35- < Suspense fallback = { < > </ > } >
36- < Spline scene = "https://prod.spline.design/qblRNAa3C-eNH6Bo/scene.splinecode" />
37- </ Suspense >
38- </ div >
3927
40- < div className = "absolute top-[50vh] left-[5vw] flex flex-col gap-5" >
41- < div
42- className = "hover:-translate-y-[.2em] transition duration-200 ease-in-out relative hover:shadow-custom-md-lightBlue cursor-pointer font-semibold text-white font-spline bg-lightBlue2 p-[1em] text-[1em] rounded-md"
43- onClick = { ( ) => navigate ( "/sorting-visualizer" ) }
44- >
45- Sorting Algorithms
46- < RightArrow className = "absolute top-[50%] -translate-y-[50%] right-[1em]" />
47- </ div >
28+ < div className = "w-full flex items-center max-w-[2000px]" >
29+ < div className = "flex flex-1 p-0 md:p-20" >
30+ < div className = "absolute top-0 flex flex-col w-full h-full px-[1em] items-center md:items-start pt-[6em] gap-[5em] z-20" >
31+ < p className = "font-lg text-white text-[6vh] z-10 font-semibold font-spline" >
32+ Algo Visualizer
33+ </ p >
34+ < p className = "font-spline max-w-[47ch] text-[1.2em] z-10 text-gray-100" >
35+ Improve your understanding of algorithms just by watching simple
36+ and completely < BoldParagraph text = "customizable animations" /> .{ " " }
37+ < br />
38+ Welcome to the algo visualizer.
39+ </ p >
4840
49- < div
50- className = "hover:-translate-y-[.2em] transition duration-200 ease-in-out relative hover:shadow-custom-md-lightBlue cursor-pointer font-semibold text-white font-spline bg-lightBlue2 p-[1em] text-[1em] rounded-md w-[15em]"
51- onClick = { ( ) => navigate ( "/dashboard-two" ) }
52- >
53- Path Finding Algorithms
54- < RightArrow className = "absolute top-[50%] -translate-y-[50%] right-[1em]" />
55- </ div >
56- </ div >
57- </ div >
41+ < div className = "flex flex-col gap-5" >
42+ < div
43+ className = "hover:-translate-y-[.2em] transition duration-200 ease-in-out relative hover:shadow-custom-md-lightBlue cursor-pointer font-semibold text-white font-spline bg-lightBlue2 p-[1em] text-[1em] rounded-md w-[15em]"
44+ onClick = { ( ) => navigate ( "/sorting-visualizer" ) }
45+ >
46+ Sorting Algorithms
47+ < RightArrow className = "absolute top-[50%] -translate-y-[50%] right-[1em]" />
48+ </ div >
5849
59- { /*-- Start of background --*/ }
60- { /* <div className = "splash_background">
61- <div className = "splash_overlay">
62- <div className = "splash_content">
63- <h1 className = "splash_title">
64- <span>{'{'}</span>{'Algorithm Visualizer'}<span>{'}'}</span>
65- </h1>
66- <h2 className = "splash_subheading">
67- <span>CU Boulder</span>
68- </h2>
69- <ul className = "splash_list">
70- <li><a href = "/about"
71- className = "splash_link"><span>{'About'}</span></a></li>
72- <li><a href = "/contact"
73- className = "splash_link"><span>{'Contact'}</span></a>
74- </li>
75- <li>
76- <a href = "/" className = "splash_link"><span>{'Home'}</span></a>
77- </li>
78- <li>
79- <a href = "/sorting-visualizer" className = "splash_link"><span>{'Sorting Algorithms'}</span></a>
80- </li>
81- </ul>
50+ < div
51+ className = "hover:-translate-y-[.2em] transition duration-200 ease-in-out relative hover:shadow-custom-md-lightBlue cursor-pointer font-semibold text-white font-spline bg-lightBlue2 p-[1em] text-[1em] rounded-md w-[15em]"
52+ onClick = { ( ) => navigate ( "/dashboard-two" ) }
53+ >
54+ Path Finding Algorithms
55+ < RightArrow className = "absolute top-[50%] -translate-y-[50%] right-[1em]" />
56+ </ div >
57+ </ div >
8258 </ div >
8359 </ div >
60+
61+ < div className = "hidden lg:block translate-x-[9em] xl:translate-x-[0] md:scale-[.7] z-1 -translate-y-[4em] lg:scale-[.7] xl:scale-[.9]" >
62+ < Suspense fallback = { < > </ > } >
63+ < Spline scene = "https://prod.spline.design/qblRNAa3C-eNH6Bo/scene.splinecode" />
64+ </ Suspense >
65+ </ div >
8466 </ div >
85- -- End of background -- */ }
67+ </ div >
8668 </ >
8769 ) ;
8870} ;
0 commit comments