Skip to content

Commit

Permalink
do stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
keremsemiz committed Jun 5, 2024
1 parent 2cd1715 commit aeb56f2
Show file tree
Hide file tree
Showing 3 changed files with 523 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Frontend/src/Explain/explain.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import explainImg from '../assets/explain1.jpg'
function Explain() {
return (
<div className='explainContainer'>
<h1 className='headertext archivo'>What's Deconnecting?</h1>
<h1 className='headertext archivo'>What is Deconnecting?</h1>
<div className="explainMain">
<div className='explainLeft'>
<h2 className='bigHeader'>Deconnecting is...</h2>
Expand Down
28 changes: 26 additions & 2 deletions Frontend/src/createTrip/createTrip.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,45 @@ import '../Hero/hero.css';
import './createTrip.css';
import './gradients.css';
import './button.css';
import './loader.css'
import './button.js';

function CreateTrip() {
// manage current state
const [currentState, setCurrentState] = useState('click');
const [loading, setLoading] = useState(false);
const [groupType, setGroupType] = useState('');
const [budget, setBudget] = useState('');

// MESSY SHIT!!!!!!!
let content;
if (currentState === 'click') {
if (loading) {
content = (
<div className="banter-loader">
<div className="banter-loader__box"></div>
<div className="banter-loader__box"></div>
<div className="banter-loader__box"></div>
<div className="banter-loader__box"></div>
<div className="banter-loader__box"></div>
<div className="banter-loader__box"></div>
<div className="banter-loader__box"></div>
<div className="banter-loader__box"></div>
<div className="banter-loader__box"></div>
</div>
);
}

else if (currentState === 'click') {
content = (
<div className="mainOutline">
<div class="sparkle-button">
<button onClick={() => setCurrentState('start')}>
<button onClick={() => {
setLoading(true);
setTimeout(() => {
setLoading(false);
setCurrentState('start');
}, 2000); // 4 sec delay
}}>
<span class="spark"></span>
<span class="backdrop"></span>
<svg class="sparkle" viewBox="0 0 24 24" fill="none" xmlns="http:https://www.w3.org/2000/svg">
Expand Down
Loading

0 comments on commit aeb56f2

Please sign in to comment.