Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
a.paziresh committed Oct 1, 2024
1 parent 8239060 commit 30defa2
Show file tree
Hide file tree
Showing 44 changed files with 78 additions and 23 deletions.
3 changes: 3 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,8 @@
}
}
}
},
"cli": {
"analytics": "23e99102-7e9d-4650-9cb6-c37407637f2a"
}
}
Binary file added docs/Dana-Bold.ef99ef1055d05f41.woff2
Binary file not shown.
Binary file added docs/Dana-Regular.32792207a729916c.woff2
Binary file not shown.
Binary file added docs/assets/Fonts/Dana/Dana-Black.woff2
Binary file not shown.
Binary file added docs/assets/Fonts/Dana/Dana-Bold.woff2
Binary file not shown.
Binary file added docs/assets/Fonts/Dana/Dana-DemiBold.woff2
Binary file not shown.
Binary file added docs/assets/Fonts/Dana/Dana-ExtraBlack.woff2
Binary file not shown.
Binary file added docs/assets/Fonts/Dana/Dana-ExtraBold.woff2
Binary file not shown.
Binary file added docs/assets/Fonts/Dana/Dana-Hairline.woff2
Binary file not shown.
Binary file added docs/assets/Fonts/Dana/Dana-Heavy.woff2
Binary file not shown.
Binary file added docs/assets/Fonts/Dana/Dana-Light.woff2
Binary file not shown.
Binary file added docs/assets/Fonts/Dana/Dana-Medium.woff2
Binary file not shown.
Binary file added docs/assets/Fonts/Dana/Dana-Regular.woff2
Binary file not shown.
Binary file added docs/assets/Fonts/Dana/Dana-Thin.woff2
Binary file not shown.
Binary file added docs/assets/Fonts/Dana/Dana-UltraLight.woff2
Binary file not shown.
Binary file added docs/assets/Fonts/Dana/Dana-fat.woff2
Binary file not shown.
Binary file added docs/assets/u5xicew35ps51.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions docs/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/app/calender/calender.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}

body {
font-family: Kalameh;
font-family: 'Dana', sans-serif;
color: #fff;
position: absolute;
left: 1008px;
Expand Down
2 changes: 1 addition & 1 deletion src/app/clock/clock.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
height: 100vh;
width: 100%;

font-family: "kalameh";
font-family: 'Dana', sans-serif;
float: right;
}

Expand Down
35 changes: 33 additions & 2 deletions src/app/clock/clock.component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,41 @@
import { Component } from '@angular/core';
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-clock',
templateUrl: './clock.component.html',
styleUrls: ['./clock.component.css']
})
export class ClockComponent {
export class ClockComponent implements OnInit {

constructor() { }

ngOnInit(): void {
this.updateClock();
setInterval(() => {
this.updateClock();
}, 1000); // Update every second
}

updateClock() {
const now = new Date();

const seconds = now.getSeconds();
const minutes = now.getMinutes();
const hours = now.getHours() % 12;

const secondDegree = seconds * 6; // 360deg / 60 seconds
const minuteDegree = (minutes * 6) + (seconds * 0.1); // 360deg / 60 minutes + second fraction
const hourDegree = (hours * 30) + (minutes * 0.5); // 360deg / 12 hours + minute fraction

// Apply the rotation to clock hands
const secondHand = document.getElementById('second');
const minuteHand = document.getElementById('minute');
const hourHand = document.getElementById('hour');

if (secondHand && minuteHand && hourHand) {
secondHand.style.transform = `rotate(${secondDegree}deg)`;
minuteHand.style.transform = `rotate(${minuteDegree}deg)`;
hourHand.style.transform = `rotate(${hourDegree}deg)`;
}
}
}
4 changes: 2 additions & 2 deletions src/app/googlesearch/googlesearch.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
display: flex;
align-items: center;
justify-content: center;
font-family: kalameh;
font-family: 'Dana', sans-serif;
border: 0;
outline: none;
position: absolute;
Expand All @@ -31,7 +31,7 @@

::placeholder {
color: #5f5f5f;
font-family: kalameh;
font-family: 'Dana', sans-serif;
margin-right: 5px;
}
.glogo {
Expand Down
2 changes: 1 addition & 1 deletion src/app/googlesearch/googlesearch.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
name="q"
/>

<img src="https://s6.uupload.ir/files/glogo_k7qv.png" class="glogo" />
<img src="../../assets/u5xicew35ps51.png" class="glogo" />
<!-- </form> -->
</div>
</html>
4 changes: 2 additions & 2 deletions src/app/main/main.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
background-image: "../assets/night-cold.jpg" center/cover no-repeat;

color: white;
font-family: kalameh;
font-family: 'Dana', sans-serif;
}

.row {
display: block;
margin: 0 auto;
width: fit-content;
font-family: kalameh;
font-family: 'Dana', sans-serif;
margin-top: 40px;
}
.imagebanner {
Expand Down
2 changes: 1 addition & 1 deletion src/app/main/main.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="row" style="font-size: 32px; margin-top: 5px">
{{ weatherdata.temp_celcius }}°
</div>
<div class="row" style="font-size: 25px; margin-top: 0px">تهران</div>
<div class="row" style="font-size: 25px; margin-top: 0px; font-family: 'Dana', sans-serif;">تهران</div>

<div class="weatherbox">
<div class="coldtemp">
Expand Down
4 changes: 2 additions & 2 deletions src/app/todo/todo.component.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.container {
font-family: kalameh;
font-family: 'Dana', sans-serif;
float: right;
color: rgb(54, 54, 54);
background: rgba(255, 255, 255, 0.93);
Expand All @@ -9,7 +9,7 @@
h1 {
text-align: center;
font-size: 25px;
font-family: kalameh;
font-family: 'Dana', sans-serif;
padding-top: 14px;
}

Expand Down
3 changes: 2 additions & 1 deletion src/app/weather/weather.component.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
.p {
font-size: 18px;
font-family: Kalameh;
font-family: 'Dana', sans-serif;
color: rgb(63, 63, 63);
float: right;
font-family: 'Dana', sans-serif;
}
.container-box {
width: 165px;
Expand Down
Binary file added src/assets/Fonts/Dana/Dana-Black.woff2
Binary file not shown.
Binary file added src/assets/Fonts/Dana/Dana-Bold.woff2
Binary file not shown.
Binary file added src/assets/Fonts/Dana/Dana-DemiBold.woff2
Binary file not shown.
Binary file added src/assets/Fonts/Dana/Dana-ExtraBlack.woff2
Binary file not shown.
Binary file added src/assets/Fonts/Dana/Dana-ExtraBold.woff2
Binary file not shown.
Binary file added src/assets/Fonts/Dana/Dana-Hairline.woff2
Binary file not shown.
Binary file added src/assets/Fonts/Dana/Dana-Heavy.woff2
Binary file not shown.
Binary file added src/assets/Fonts/Dana/Dana-Light.woff2
Binary file not shown.
Binary file added src/assets/Fonts/Dana/Dana-Medium.woff2
Binary file not shown.
Binary file added src/assets/Fonts/Dana/Dana-Regular.woff2
Binary file not shown.
Binary file added src/assets/Fonts/Dana/Dana-Thin.woff2
Binary file not shown.
Binary file added src/assets/Fonts/Dana/Dana-UltraLight.woff2
Binary file not shown.
Binary file added src/assets/Fonts/Dana/Dana-fat.woff2
Binary file not shown.
Binary file added src/assets/u5xicew35ps51.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 22 additions & 2 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ body {
background-image: url(./assets/mountain.jpg);

border-radius: 20px;
font-family: kalameh;
font-family: 'Dana', sans-serif;
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -21,5 +21,25 @@ body {
}
body {
margin: 0;
font-family: Roboto, "Helvetica Neue", sans-serif;
font-family: 'Dana', sans-serif;
}


@font-face {
font-family: 'Dana';
src: url('assets/fonts/Dana/Dana-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Dana';
src: url('assets/fonts/Dana/Dana-Bold.woff2') format('woff2');
font-weight: bold;
font-style: normal;
}


h1 {
font-family: 'Dana', sans-serif;
}

0 comments on commit 30defa2

Please sign in to comment.