Skip to content

Commit f2e3a49

Browse files
authored
Merge branch 'main' into conflict-in-index
2 parents a12a755 + f077b2e commit f2e3a49

26 files changed

+9140
-18
lines changed

Index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
| [Password Generator](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/Password%20Generator) | A password generator app to generate strong passwords which can be easily used for authentication. |
8383
| [Parallex Website](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/Chess-Game) | A basic website using HTML, CSS, JAVASCRIPT with modern look. |
8484
| [Random Meal Generator](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/Random%20Meal-generator) | A random meals generator app using HTML, CSS, JAVASCRIPT and an external API. It shows a picture of meal with name, category, ingredients and instructions |
85+
| [Relaxer App](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/Relaxer%20App) | A relaxer app using HTML, CSS, JAVASCRIPT. A relaxing breathing app with a visual director to tell you when to breathe in, hold and breathe out |
8586
| [To Do List](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/todolist) |This app allows you to make a list of events you want to do and you can strikeout the events completed.|
8687
| [Weight Converter](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/Weight%20Converter) |A web page where used can convert weight from kilograms to grams, ounces and pounds.|
8788
| [Restaurant website](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/Restaurant-website) |A Restuarant website with a simple and user friendly design ad a database linked to it.|
@@ -94,3 +95,15 @@
9495
| [Live Clock](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/Live%20Clock) | A simple web page made in react native which shows live time.
9596
| [DRUM(darkmode)](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/DRUM(darkmode) |This web app allows you to make your own music with all the beats that are present in the app. You can click on the alphabets or the images that are present on the screen and enjoy the beats. You can also use your keyboard keys to make the music.|
9697
| [Text to speech converter](https://github.com/nisha331/Web-dev-mini-projects/tree/main/text%20to%20speech) | A simple webapp that converts text to speech
98+
| [Basic portfolio website](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/Basic%20Portfolio%20Website)| This is a basic Portfolio website which you can use to showcase your own projects and experience.|
99+
| [Classroom Website](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/CLASSROOM%20SCHEDULER%20WEBSITE)| This project is helpful to students managing their classes, the student can schedule their batch and its timing here.|
100+
| [Covid 19 Awareness](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/Covid%2019%20Awarness%20Website)| This is a covid 19 website which has diffrenet sections.This is made using only html,css,javascript. You can find various Informations and news.|
101+
| [Dice Game](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/DiceGame)| It is a simple Dice Game. We can use this game to toss between two users and decide who is the winner.|
102+
| [Double vertical slider](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/Double%20Vertical%20Slider)| This App helps to Slide the two different parts of the webpage content at the same time.|
103+
| [FAQ](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/FAQ%20Application)| Generally, Frequently Asked Questions (FAQs) section is made with the help of accordion.|
104+
| [MyGym](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/MyGym%20Website)| This website contains frontend for Mygym website.|
105+
| [Survey form](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/SURVEY%20FORM)| It is a simple Survey Form. We can use this form to take feedback from the customers and use it for the betterment.|
106+
| [Typing Speed Test](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/Typing%20Speed%20Test%20Website)| User can improve his/her typing speed.|
107+
| [Week Day Predictor](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/Week%20Day%20Predictor%20App)| This app displays the current day of the week with quotes.|
108+
| [Parallex Website](https://github.com/Ayushparikh-code/Web-dev-mini-projects/tree/main/parallex-website)| This is a basic HTML, CSS, JAVASCRIPT website where images of this website has their position fixed that results in giving the parallex look and that is why it is called Parallex Website.|
109+

Live Clock/App.js

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import * as React from 'react';
2+
import { Text, View, StyleSheet} from 'react-native';
3+
import Constants from 'expo-constants';
4+
5+
import LiveClock from './components/Function';
6+
7+
import {Card} from 'react-native-paper';
8+
9+
export default class App extends React.Component {
10+
11+
render(){
12+
return (
13+
<View style={styles.container}>
14+
<Text style={styles.paragraph}>
15+
Live Clock
16+
</Text>
17+
<Card style={{height:100, width:500}}>
18+
<Text style={styles.timer}>
19+
<LiveClock />
20+
</Text>
21+
</Card>
22+
</View>
23+
);
24+
}
25+
}
26+
27+
const styles = StyleSheet.create({
28+
container: {
29+
justifyContent:"center",
30+
alignItems:"center",
31+
flex: 1,
32+
paddingTop: Constants.statusBarHeight,
33+
backgroundColor: '#ecf0f1',
34+
padding: 8,
35+
color:"red"
36+
},
37+
paragraph: {
38+
margin: 24,
39+
fontSize: 50,
40+
fontWeight: 'bold',
41+
textAlign: 'center',
42+
color:"red"
43+
},
44+
timer:{
45+
padding:20,
46+
textAlign:"center",
47+
fontSize:20,
48+
fontWeight:"bold"
49+
}
50+
});

Live Clock/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Live Clock
2+
A Live Clock Project which shows current time always with appropriate abbreviations AM or PM.
3+
4+
# Use of Project
5+
A beginner-friendly project to get started with web development, especially React-Native.
6+
7+
# Stack Used
8+
- JavaScript
9+
- React-Native
10+
11+
# Set up required to run
12+
- Pre-requisite -> Install node in your system and add it to environment path variable.
13+
- Install expo-cli using command:
14+
```
15+
npm install -g expo-cli
16+
```
17+
- Now, clone this repo.
18+
```
19+
git clone https://github.com/Ayushparikh-code/Web-dev-mini-projects
20+
```
21+
- Move to project directory.
22+
- In your IDE terminal, run command:
23+
```
24+
npm start
25+
```
26+
- On the new window that will open in the browser, click on the preferred option like web browser, android emulator, etc.
27+
- Wait for sometime, the project will open and run in another tab of browser.
28+
29+
# Screenshots
30+
- On running "npm start" command, a "Expo Developer Tools" window will open in the browser.
31+
![](./screenshots/developer_tools.png)
32+
33+
- On clicking "Run in Web Browser", project will start initializing.
34+
![](./screenshots/run_in_web_browser.png)
35+
![](./screenshots/project_initialize.png)
36+
37+
- A new tab will open which will show the live clock.
38+
![](./screenshots/live_clock.png)

Live Clock/app.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"expo": {
3+
"name": "liveClockProject",
4+
"slug": "liveClockProject",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/icon.png",
8+
"splash": {
9+
"image": "./assets/splash.png",
10+
"resizeMode": "contain",
11+
"backgroundColor": "#ffffff"
12+
},
13+
"updates": {
14+
"fallbackToCacheTimeout": 0
15+
},
16+
"assetBundlePatterns": [
17+
"**/*"
18+
],
19+
"ios": {
20+
"supportsTablet": true
21+
},
22+
"android": {
23+
"adaptiveIcon": {
24+
"foregroundImage": "./assets/adaptive-icon.png",
25+
"backgroundColor": "#FFFFFF"
26+
}
27+
},
28+
"web": {
29+
"favicon": "./assets/favicon.png"
30+
}
31+
}
32+
}

Live Clock/assets/adaptive-icon.png

17.1 KB
Loading

Live Clock/assets/favicon.png

1.43 KB
Loading

Live Clock/assets/icon.png

21.9 KB
Loading

Live Clock/assets/splash.png

47.3 KB
Loading

Live Clock/babel.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = function(api) {
2+
api.cache(true);
3+
return {
4+
presets: ['babel-preset-expo'],
5+
};
6+
};

Live Clock/components/Function.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import * as React from 'react';
2+
import { Text, View, StyleSheet, Image } from 'react-native';
3+
4+
export default class LiveClock extends React.Component {
5+
constructor(){
6+
super();
7+
this.state = {currentTime : new Date()}
8+
}
9+
10+
componentDidMount(){
11+
setInterval(()=> this.tick(), 1000) //tick() is called after every 1 sec or 1000ms
12+
}
13+
14+
tick=()=>{
15+
this.setState({currentTime:new Date()})
16+
}
17+
18+
render() {
19+
return (
20+
<View style={styles.container}>
21+
<Text style={styles.paragraph}>
22+
{this.state.currentTime.toLocaleTimeString('en-US')}
23+
</Text>
24+
</View>
25+
);
26+
}
27+
}
28+
29+
const styles = StyleSheet.create({
30+
container: {
31+
alignItems: 'center',
32+
justifyContent: 'center',
33+
padding: 15,
34+
},
35+
paragraph: {
36+
fontSize: 25,
37+
fontWeight: 'bold',
38+
textAlign: 'center',
39+
}
40+
});

0 commit comments

Comments
 (0)