-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
151 lines (130 loc) · 5.87 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>Editor de texto online</title>
<!-- https://github.com/highlightjs/highlight.js/blob/main/src/styles/base16/dracula.css -->
<link rel="stylesheet" href="./assets/css/reset.css">
<link rel="stylesheet" href="./assets/css/dracula.css">
<link rel="stylesheet" href="./assets/css/index.css">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap" rel="stylesheet">
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/highlight.min.js"></script> -->
<script src="./assets/js/highlight.min.js"></script>
<script src="https://kit.fontawesome.com/e9ae6e9b7e.js" crossorigin="anonymous"></script>
</head>
<body>
<header class="header">
<div class="containerDesktop">
<div class="containerLogo">
<img class="logo" src="./assets/img/logo.png" alt="logo alura dev">
</div>
<div class="containerSearchBar">
<input type="text" class="searchBar" placeholder="Busque por algo">
</div>
<div class="containerAuthor">
<div class="author">
<img class="author__image" src="./assets/img/photo.png" alt="imagem do autor">
<div class="author__name">Author</div>
</div>
</div>
</div>
<div class="containerMobile">
<div class="containerLogo">
<img class="logo" src="./assets/img/logo.png" alt="logo alura dev">
</div>
<div class="containerIcons">
<i class="fas fa-search searchIcon" aria-label="ícone código de programação"></i>
<input type="text" class="searchBar" placeholder="Busque por algo">
<i class="fas fa-times searchCloseIcon" aria-label="ícone fechar pesquisa"></i>
<i id="menuIcon" class="fas fa-bars menuIcon" aria-label="ícone menu"></i>
<i id="menuCloseIcon" class="fas fa-times menuCloseIcon" aria-label="ícone fechar menu "></i>
</div>
</div>
</header>
<div class="body">
<nav class="menu__desktop">
<div class="menu__title">Menu</div>
<ul>
<li class="menu__item" id="elEditorMenuOption">
<a href="./index.html" class="menu__link">
<div class="menu__icon">
<i class="fas fa-code" aria-label="ícone código de programação"></i>
</div>
<span>Editor de código</span>
</a>
</li>
<li class="menu__item" id="elComunidadeMenuOption">
<a href="./comunidade.html">
<div class="menu__icon">
<i class="fas fa-users" aria-label="ícone usuários"></i>
</div>
<span>Comunidade</span>
</a>
</li>
</ul>
</nav>
<nav id="menu__mobile" class="menu__mobile">
<ul>
<li class="menu__item" id="elEditorMenuOption">
<a href="./index.html" class="menu__link">
<div class="menu__icon">
<i class="fas fa-code" aria-label="ícone código de programação"></i>
</div>
<span>Editor de código</span>
</a>
</li>
<li class="menu__item" id="elComunidadeMenuOption">
<a href="./comunidade.html">
<div class="menu__icon">
<i class="fas fa-users" aria-label="ícone usuários"></i>
</div>
<span>Comunidade</span>
</a>
</li>
</ul>
<div class="menu__mobile__line"></div>
<div class="containerAuthor mobile">
<div class="author">
<img class="author__image" src="./assets/img/photo.png" alt="imagem do autor">
<div class="author__name">Harry</div>
</div>
</div>
</nav>
<main class="code">
<div class="code__containerText">
<div id="codeBorder" class="code__border">
<span class="code__circle code__circle1"></span>
<span class="code__circle code__circle2"></span>
<span class="code__circle code__circle3"></span>
<div id="codeWrapper">
<code class="code__text hljs" id="codeText" contenteditable="true" aria-label="Edição do código"></code>
</div>
</div>
</div>
<button type="button" id="btnVisualizeCode" class="code__btnVisualize">Visualizar com o highlight</button>
</main>
<aside class="edition">
<span class="edition__title">Seu projeto</span>
<input type="text" id="projectName" class="edition__projectName" placeholder="Nome do seu projeto">
<textarea class="edition__projectDescription" id="projectDescription" placeholder="Descrição do seu projeto" rows="2"></textarea>
<span class="edition__title">Personalização</span>
<select name="language" id="language" class="edition__language">
<option value="javascript">Javascript</option>
<option value="html">HTML</option>
<option value="css">CSS</option>
</select>
<input type="color" id="inputBackgroundColor" class="edition__inputBackgroundColor" value="#6BD1FF">
<button id="btnSaveProject" class="edition__btnSaveProject">Salvar projeto</button>
</aside>
</div>
<script src="./assets/js/global.js"></script>
<script src="./assets/js/code.js"></script>
<script src="./assets/js/index.js"></script>
<script src="./assets/js/menu.js"></script>
<script src="./assets/js/search.js"></script>
</body>
</html>