File tree Expand file tree Collapse file tree 3 files changed +26
-17
lines changed Expand file tree Collapse file tree 3 files changed +26
-17
lines changed Original file line number Diff line number Diff line change 64
64
65
65
< section class ="container content-section ">
66
66
< div class ="card ">
67
- < h2 > :نبذة عن اللغة </ h2 >
67
+ < h1 > : عن لغة ألف </ h1 >
68
68
< p dir ="rtl ">
69
69
بدأت الفكرة في عام 2010 من قبل المطور المغربي حسن دراكة - كندا < br >
70
70
ولكن دخلت الفكرة حيز التنفيذ في عام 2018 حيث بدأ بإصدار نسخ مترجمة من اللغة < br >
Original file line number Diff line number Diff line change 40
40
box-shadow : 2px 2px 1px # 2079FF ;
41
41
}
42
42
43
- .space {
44
- font-size : 80px ;
45
- }
46
-
47
43
.line {
44
+ align-self : center;
48
45
position : absolute;
49
- width : 100% ;
50
- border : solid 1px white;
51
- right : 0 ;
52
- bottom : 225px ;
46
+ width : 16384px ;
47
+ border : solid 1px # bbb ;
53
48
}
54
49
55
50
56
51
.button2-front {
57
- font-size : 50px ;
52
+ font-size : 3em ;
53
+ font-weight : 300 ;
58
54
width : 700px ;
59
55
height : 200px ;
60
56
border-radius : 200px ;
61
- left : 50% ;
62
- transform : translate (-50% );
63
57
}
64
58
65
59
.button2-front : hover {
66
60
font-size : 45px ;
67
61
}
68
62
69
63
.button2 {
64
+ justify-content : center;
70
65
width : 700px ;
71
66
height : 200px ;
72
67
border-radius : 200px ;
82
77
< div class ="button2-front ">
83
78
< div id ="countdown " dir ="rtl "> </ div >
84
79
</ div >
85
- < div class ="button2 "> </ div >
86
- < div class ="line "> </ div >
80
+ < div class ="button2 ">
81
+ < div class ="line "> </ div >
82
+ </ div >
87
83
</ div >
88
84
< div class ="space "> </ div >
89
85
94
90
const now = new Date ( ) ;
95
91
const timeDifference = newYear - now ;
96
92
93
+ const element = document . getElementById ( 'countdown' ) ;
97
94
if ( timeDifference <= 0 ) {
98
- document . getElementById ( "countdown" ) . innerHTML = "حان وقت اصدار اللغة (من المفترض ان يكون الان تم حذف هاذه الصفحة 😁)" ;
95
+ element . innerHTML = "حان وقت اصدار اللغة (من المفترض ان يكون الان تم حذف هاذه الصفحة 😁)" ;
96
+ element . style . fontSize = '20px' ;
97
+ element . style . fontWeight = 'normal' ;
99
98
return ;
100
99
}
101
100
104
103
const minutes = Math . floor ( ( timeDifference % ( 1000 * 60 * 60 ) ) / ( 1000 * 60 ) ) ;
105
104
const seconds = Math . floor ( ( timeDifference % ( 1000 * 60 ) ) / 1000 ) ;
106
105
107
- document . getElementById ( "countdown" ) . innerHTML = `${ seconds } : ${ minutes } : ${ hours } ساعة | ${ days } يوم` ;
106
+ element . innerHTML = `${ seconds } : ${ minutes } : ${ hours } ساعة | ${ days } يوم` ;
108
107
}
109
108
110
109
setInterval ( updateCountdown , 1000 ) ;
Original file line number Diff line number Diff line change 1
1
.card {
2
- padding : 10 px ;
2
+ padding : 45 px ;
3
3
border : 2px solid # 182d5555 ;
4
4
height : 100% ;
5
5
border-radius : 30px ;
6
6
backdrop-filter : blur (6px );
7
7
box-shadow : 2px 2px 1px # 2079ff ;
8
8
}
9
+
10
+
11
+ .card p {
12
+ line-height : 1.8em ;
13
+ }
14
+
15
+ .card h1 {
16
+ font-size : 1.8em ;
17
+ line-height : 2em ;
18
+ }
You can’t perform that action at this time.
0 commit comments