-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from leo-paz/CreatingSetting
Creating Home Page
- Loading branch information
Showing
6 changed files
with
83 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React, { useEffect, useRef, useState } from 'react'; | ||
import lottie from 'lottie-web'; | ||
|
||
function Clock(props) { | ||
const [date, setDate] = useState(new Date()); | ||
|
||
useEffect(() => { | ||
var timerID = setInterval( () => tick(), 1000 ); | ||
|
||
return function cleanup() { | ||
clearInterval(timerID); | ||
}; | ||
}); | ||
|
||
function tick() { | ||
setDate(new Date()); | ||
} | ||
|
||
return ( | ||
<div> | ||
<h4>The local time is {date.toLocaleTimeString()}.</h4> | ||
</div> | ||
); | ||
} | ||
export default Clock; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
frontend/grad-admissions-hub-app/src/Components/SignUpLogIn/HomeSetUp.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React, { useEffect, useRef, useState } from 'react'; | ||
import lottie from 'lottie-web'; | ||
|
||
import { Link } from "react-router-dom"; | ||
import { Auth } from 'aws-amplify'; | ||
|
||
function HomeSetUp() { | ||
const goHomeContainer = useRef(null); | ||
|
||
useEffect(() => { | ||
lottie.loadAnimation({ | ||
container: goHomeContainer.current, | ||
renderer: 'svg', | ||
loop: false, | ||
autoplay: false, | ||
animationData: require('../../animations/go-arrow.json'), | ||
name: 'Home' | ||
})}) | ||
|
||
return ( | ||
<div className="Homesetup-card"> | ||
<div className="goHomeContainer" | ||
onMouseEnter={() => lottie.play('Home')} | ||
onMouseLeave={() => lottie.stop('Home')} | ||
> | ||
|
||
<img className="GradPhoto" src="GradHomePhoto.jpg" height={350} width ={585} /> | ||
|
||
</div> | ||
<div className="center-card"> | ||
|
||
</div> | ||
</div> | ||
|
||
)} | ||
export default HomeSetUp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React, { useState, useEffect, useRef } from 'react'; | ||
|
||
const Settings = () => { | ||
return ( | ||
<div className="page"> | ||
<h1>Settings</h1> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Settings; |