-
Notifications
You must be signed in to change notification settings - Fork 28
splash screen added #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mohit200008
wants to merge
6
commits into
HarshCasper:main
Choose a base branch
from
mohit200008:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1a51fe5
splash screen added
mohit200008 28c84f1
Delete package-lock.json
mohit200008 0fccf56
Create continuous-integration.yml
mohit200008 ad2f391
Delete continuous-integration.yml
mohit200008 f4954c1
Create continuous-integration.yml
mohit200008 bd9d371
Create continuous-deployment.yml
mohit200008 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| name: Continuous Deployment | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| - develop | ||
| jobs: | ||
| deploy: | ||
| name: Deploy | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| SOURCE_DIR: "build/" | ||
| AWS_REGION: "us-east-1" | ||
| AWS_ACCESS_KEY_ID: ${{ secrets.STAGING_AWS_ACCESS_KEY_ID }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ secrets.STAGING_AWS_SECRET_ACCESS_KEY }} | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - name: Install dependencies | ||
| run: yarn | ||
| - name: Build | ||
| run: yarn build | ||
| - name: Deploy staging | ||
| if: github.ref == 'refs/heads/develop' | ||
| uses: jakejarvis/s3-sync-action@v0.5.0 | ||
| with: | ||
| args: --acl public-read --follow-symlinks --delete | ||
| env: | ||
| AWS_S3_BUCKET: ${{ secrets.STAGING_AWS_S3_BUCKET }} | ||
| - name: Deploy production | ||
| if: github.ref == 'refs/heads/master' | ||
| uses: jakejarvis/s3-sync-action@v0.5.0 | ||
| with: | ||
| args: --acl public-read --follow-symlinks --delete | ||
| env: | ||
| AWS_S3_BUCKET: ${{ secrets.PRODUCTION_AWS_S3_BUCKET }} | ||
|
|
This file contains hidden or 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,14 @@ | ||
| name: Continuous Integration | ||
| on: [pull_request] | ||
| jobs: | ||
| buildAndTest: | ||
| name: Build and Test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - name: Install Dependencies | ||
| run: yarn | ||
| - name: Build | ||
| run: yarn build | ||
| - name: Test | ||
| run: yarn test --watchAll=false |
This file contains hidden or 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 @@ | ||
| [{"C:\\Users\\mohit\\OneDrive\\Desktop\\AllNotes\\client\\src\\index.js":"1","C:\\Users\\mohit\\OneDrive\\Desktop\\AllNotes\\client\\src\\reportWebVitals.js":"2","C:\\Users\\mohit\\OneDrive\\Desktop\\AllNotes\\client\\src\\App.js":"3","C:\\Users\\mohit\\OneDrive\\Desktop\\AllNotes\\client\\src\\components\\splashscreen.js":"4"},{"size":517,"mtime":1616002842817,"results":"5","hashOfConfig":"6"},{"size":375,"mtime":1616002842819,"results":"7","hashOfConfig":"6"},{"size":550,"mtime":1616079763162,"results":"8","hashOfConfig":"6"},{"size":258,"mtime":1616086467845,"results":"9","hashOfConfig":"6"},{"filePath":"10","messages":"11","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"12"},"1r8njg7",{"filePath":"13","messages":"14","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"12"},{"filePath":"15","messages":"16","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"17","messages":"18","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Users\\mohit\\OneDrive\\Desktop\\AllNotes\\client\\src\\index.js",[],["19","20"],"C:\\Users\\mohit\\OneDrive\\Desktop\\AllNotes\\client\\src\\reportWebVitals.js",[],"C:\\Users\\mohit\\OneDrive\\Desktop\\AllNotes\\client\\src\\App.js",[],"C:\\Users\\mohit\\OneDrive\\Desktop\\AllNotes\\client\\src\\components\\splashscreen.js",[],{"ruleId":"21","replacedBy":"22"},{"ruleId":"23","replacedBy":"24"},"no-native-reassign",["25"],"no-negated-in-lhs",["26"],"no-global-assign","no-unsafe-negation"] | ||
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -35,4 +35,4 @@ | |
| to { | ||
| transform: rotate(360deg); | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,15 +1,27 @@ | ||
| import logo from './logo.svg'; | ||
| import './App.css'; | ||
| import React , {useEffect,useState} from 'react'; | ||
| import LoadingMessage from './components/splashscreen'; | ||
| import "./App.css"; | ||
|
|
||
| function App() { | ||
| return ( | ||
| <div className="App"> | ||
| <header className="App-header"> | ||
| <h1>Hello, All-Notes :)</h1> | ||
| const [loading,setLoading]= useState(true) | ||
|
|
||
| </header> | ||
| </div> | ||
| ); | ||
| } | ||
| useEffect(()=>{ | ||
| setTimeout(()=>{ | ||
| setLoading(false) | ||
| },6000) | ||
| },[]) | ||
| return ( | ||
|
|
||
| <div className="App"> | ||
| { | ||
| loading ? <LoadingMessage /> : null | ||
| } | ||
| <header className="App-header"> | ||
| <h1>Hello, All-Notes :)</h1> | ||
|
|
||
| </header> | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| export default App; | ||
| export default App; |
File renamed without changes
This file contains hidden or 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,8 @@ | ||
| .splash-screen { | ||
| width: 100%; | ||
| height: 100%; | ||
| align-items: center; | ||
| justify-content: center; | ||
| } | ||
|
|
||
|
|
||
|
Comment on lines
+7
to
+8
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove extra lines of code and add a new line at the EOF |
||
This file contains hidden or 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,12 @@ | ||
| import React from 'react'; | ||
| import './splashscreen.css'; | ||
|
|
||
| function LoadingMessage() { | ||
| return ( | ||
| <div className="splash-screen"> | ||
| <img src="./img/splash-screen.gif" alt="splash-screen" /> | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| export default LoadingMessage; |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.