-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
184 lines (162 loc) · 9.03 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AluraDEV</title>
<link rel="stylesheet" href="Assets/css/reset.css">
<link rel="stylesheet" href="Assets/css/global.css">
<link rel="stylesheet" href="Assets/css/header.css">
<link rel="stylesheet" href="Assets/css/menu.css">
<link rel="stylesheet" href="Assets/css/code.css">
<link rel="stylesheet" href="Assets/css/sidebar.css">
<link rel="stylesheet" href="Assets/css/modal.css">
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/default.min.css"> -->
<link rel="stylesheet" href="Assets/css/temas-hljs/dracula.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<!-- <link href="https://fonts.googleapis.com/css2?family=Inter&display=swap" rel="stylesheet"> -->
</head>
<body>
<header class="header">
<figure class="header__img">
<img class="header__logo" src="./Assets/img/logo.svg" alt="Logo AluraDev"/>
</figure>
<div class="header__search">
<input class="header__search_input" type="text" placeholder="Busque por algo"/>
<button class="header__search_btn">🔎</button>
<div class="header__search__menu">
<div class="header__search__menu_btn active" id="btn-dropdown" onclick="openMenu()">☰</div>
<div class="header__search__menu_btn desactive" id="closeMenu" onclick="closeMenu()">X</div>
<!-- MENU CONTAINER COM MODIFICADOR ACTIVE USANDO APENAS PARA AJUSTE
EM PRODUÇÂO O MODIFICADOR DEVE SER DESACTIVE -->
<div class="menu__container-desactived" id="menu">
<div class="menu__container-left">
<nav class="menu__nav_header">
<ul class="menu__list">
<li class="active">
<a class="menu__item" href="./index.html">
<img class="menu__item_img" src="Assets/img/icon_code.svg" alt="">
Editor de código</img></a>
</li>
<li>
<a class="menu__item" href="./comunity.html">
<img class="menu__item_img" src="Assets/img/icon_comunity.svg" alt="">
Comunidade</img></a>
</li>
</ul>
</nav>
<span class="menu__item_line"></span>
<div class="user__container">
<img class="header__user_img" src="./Assets/img/Photo.png" alt=""/>
<p class="header__user_name">Herry</p>
</div>
</div>
</div>
</div>
</div>
<div class="header__user">
<div class="user__container">
<img class="header__user_img" src="./Assets/img/Photo.png" alt=""/>
<p class="header__user_name">Herry</p>
</div>
</div>
</header>
<main class="main">
<section class="menu">
<div class="menu__container">
<h3 class="title">MENU</h3>
<nav class="menu__nav">
<ul class="menu__list">
<li class="active">
<a class="menu__item" href="#">
<img class="menu__item_img" src="Assets/img/icon_code.svg" alt="">
Editor de código</img></a>
</li>
<li>
<a class="menu__item" href="./comunity.html">
<img class="menu__item_img" src="Assets/img/icon_comunity.svg" alt="">
Comunidade</img></a>
</li>
</ul>
</nav>
</div>
</section>
<section class="code">
<div class="code__container" id="photo" >
<div class="code__windows">
<div class="dots">
<div class="dot-danger"></div>
<div class="dot-atetion"></div>
<div class="dot-sucess"></div>
</div>
<!-- <textarea name="code" id="codeArea" placeholder="digite o codigo"></textarea> -->
<div id="codigo"><pre>
<code class="codeArea hlhj js-code" contenteditable="true" id="codeAreas" area-label="editor"></code></pre>
</div>
<!-- <div name="code" id="codeArea" placeholder="digite o codigo" contenteditable="true"></div> -->
</div>
</div>
<button type="button" class="code__btn" id="code__btn">
Visualizar com o highlight
</button>
</section>
<section class="sidebar">
<div class="sidebar__container">
<div class="sidebar__description">
<h3 class="title">Seu Projeto</h3>
<input class="sidebar__description_input js-title" type="text" placeholder="Nome do seu projeto"/>
<textarea class="sidebar__description_input js-descrition" name="description" id="descript" placeholder="Descrição do seu projeto"></textarea>
</div>
<div class="sidebar__custom">
<h3 class="title">Personalização</h3>
<div class="sidebar__custom_filds">
<select class="sidebar__custom_changes sidebar__options js-language" name="language" id="language" class="">
<option value="Javascript" class="sidebar__options_item">Javascript</option>
<option value="HTML" class="sidebar__options_item">HTML</option>
<option value="CSS" class="sidebar__options_item">CSS</option>
</select>
<button onclick="modal()" class="sidebar__custom_changes sidebar__colors_btn fundo_blue js-color" id="sidebar__modal_btn" value="fundo_blue">Color</button>
<!-- <input class="sidebar__custom_changes" type="text" placeholder="color"> -->
</div>
</div>
<button class="sidebar__btn js-btn-savar" id="">
Salvar projeto
</button>
<button class="sidebar__btn" id="download" onclick="takeshot()">
Exportar png
</button>
</div>
</section>
</main>
<div id="output" class="noMargin"></div>
<div class="overlay-desactive" id="modalColors">
<div class="modal" id="">
<header class="modal__header">
<h2 class="title">Escolha a cor de fundo</h2>
<button class="modal__close" onclick="closeModal()">Close</button>
</header>
<div class="modal__body">
<div class="modal__body_container">
<button id="green"class="modal__option fundo_green" onclick="green()" value="green">Green</button>
<button id="blue"class="modal__option fundo_blue" onclick="blue()" value="blue">Blue</button>
<button id="red"class="modal__option fundo_red" onclick="red()" value="red">Red</button>
<button id="yellow"class="modal__option fundo_yellow" onclick="yellow()" value="yellow">Yellow</button>
<button id="purple"class="modal__option fundo_purple" onclick="purple()" value="purple">Purple</button>
<button id="white"class="modal__option fundo_white" onclick="white()" value="white">White</button>
<button id="pink"class="modal__option fundo_pink" onclick="pink()" value="pink">Pink</button>
<button id="orange"class="modal__option fundo_orange" onclick="orange()" value="orange">Orange</button>
</div>
</div>
</div>
</div>
</body>
<script src="./Assets/js/menuCollapse.js"></script>
<script src="./Assets/js/screenshot/html2canvas.min.js"></script>
<script src="./Assets/js/screenshot/canvas2image.js"></script>
<script src="./Assets/js/screenshot/screenshot.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/highlight.min.js"></script>
<script src="./Assets/js/sintaxyFormat.js"></script>
<script src="./Assets/js/modal.js"></script>
<script src="./Assets/js/save.js"></script>
</html>