11<!DOCTYPE html>
22< html lang ="en ">
33< head >
4- < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
5- < title > Random Gradient Generator</ title >
6- <!-- Google Font -->
7- < link href ="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap " rel ="stylesheet ">
8- <!-- Stylesheet -->
4+ < title > Gradient Generator</ title >
5+ <!--Font Awesome-->
6+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css ">
7+ <!--Google Fonts-->
8+ < link href ="https://fonts.googleapis.com/css2?family=Rubik:wght@400;600&display=swap " rel ="stylesheet ">
9+ <!--Stylesheet-->
910 < link rel ="stylesheet " href ="style.css ">
1011</ head >
1112< body >
12- < div class ="wrapper ">
13- < div id ="output-color "> </ div >
14- < input type ="text " id ="output-code " readonly >
15- < div class ="btn-container ">
16- < button id ="generate-btn "> Generate</ button >
17- < button id ="copy-btn "> Copy</ button >
13+ < div class ="container ">
14+ < div class ="colors ">
15+ < input type ="color " id ="color-a " value ="#1488cc ">
16+ < input type ="color " id ="color-b " value ="#2b32b2 ">
17+ </ div >
18+ < div class ="buttons ">
19+ < button onclick ="setDirection('to top',this) ">
20+ < i class ="fas fa-arrow-up "> </ i >
21+ </ button >
22+ < button class ="active " onclick ="setDirection('to bottom',this) ">
23+ < i class ="fas fa-arrow-down "> </ i >
24+ </ button >
25+ < button onclick ="setDirection('to right',this) ">
26+ < i class ="fas fa-arrow-right "> </ i >
27+ </ button >
28+ < button onclick ="setDirection('to left',this) ">
29+ < i class ="fas fa-arrow-left "> </ i >
30+ </ button >
31+ < button class ="rotate-icon " onclick ="setDirection('to top right',this) ">
32+ < i class ="fas fa-arrow-up "> </ i >
33+ </ button >
34+ < button class ="rotate-icon " onclick ="setDirection('to bottom left',this) ">
35+ < i class ="fas fa-arrow-down "> </ i >
36+ </ button >
37+ < button class ="rotate-icon " onclick ="setDirection('to bottom right',this) ">
38+ < i class ="fas fa-arrow-right "> </ i >
39+ </ button >
40+ < button class ="rotate-icon " onclick ="setDirection('to top left',this) ">
41+ < i class ="fas fa-arrow-left "> </ i >
42+ </ button >
43+ </ div >
44+ < button id ="submit " onclick ="generateCode() "> Generate</ button >
45+ < div class ="output ">
46+ < textarea id ="code " rows ="2 "> </ textarea >
47+ < button id ="copy " onclick ="copyText() "> Copy</ button >
1848 </ div >
1949 </ div >
20- <!-- Script -->
50+ <!--Script-->
2151 < script src ="script.js "> </ script >
2252</ body >
2353</ html >
0 commit comments