-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
155 lines (155 loc) · 7.4 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Alura Dev Challenge</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Roboto+Mono&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./assets/css/reset.css">
<link rel="stylesheet" href="./assets/css/highlight.css">
<link rel="stylesheet" href="./assets/fonts/style.css">
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="stylesheet" href="./assets/css/code-editor.css">
</head>
<body>
<header class="header" id="header">
<div class="header__menu">
<h1 class="header__logo">
<img src="./assets/images/logo.svg" alt="Logo da AluraDev">
</h1>
<div class="search__container">
<label for="search" class="sr-only">Pesquisar</label>
<input type="text" id="search" name="search" placeholder="Busque por algo" class="search__field">
<div class="search__close search__toggle">
<i class="icon-close" aria-label="Cancelar pesquisa"></i>
</div>
</div>
<section class="header__icons">
<div class="header__search search__toggle">
<i class="icon-search" aria-label="Pesquisar"></i>
</div>
<div class="header__menu--icon menu__toggle">
<i class="icon-menu" aria-label="Abrir menu"></i>
</div>
<div class="header__close menu__toggle">
<i class="icon-close" aria-label="Fechar menu"></i>
</div>
</section>
<div class="menu__profile">
<a class="profile__link">
<img src="./assets/images/icon-login.png" alt="Ícone de fazer login">
<span>Fazer login</span>
</a>
</div>
</div>
<nav class="side__menu">
<div class="menu__items">
<h2 class="input__title">Menu</h2>
<a href="#" class="menu__item">
<img src="./assets/images/icon-editor.svg" alt="Ícone da página Editor de código" class="active">
<span>Editor de código</span>
</a>
<a href="./community.html" class="menu__item">
<img src="./assets/images/icon-community.svg" alt="Ícone da página Comunidade">
<span>Comunidade</span>
</a>
</div>
<div class="divider"></div>
<div class="menu__profile">
<a class="profile__link">
<img src="./assets/images/icon-login.png" alt="Ícone de fazer login">
<span>Fazer login</span>
</a>
</div>
</nav>
</header>
<section class="login__modal">
<div class="modal__container">
<div class="modal__image"></div>
<i class="icon-close" aria-label="Fechar modal"></i>
<div class="modal__content">
<h2 class="modal__title">Login com Github</h2>
<p class="modal__description">Faça login na plataforma utilizando seu nome de usuário do Github</p>
<div class="modal__form">
<label for="name" class="sr-only">Nome de usuário do Github</label>
<input type="text" id="name" class="modal__input" data-modal-input required placeholder="Nome de usuário">
</div>
<button class="modal__button" data-modal-button>Fazer Login</button>
</div>
</div>
</section>
<main>
<section class="code__editor">
<div class="editor__container">
<section class="editor__header">
<div class="editor__icons">
<div class="editor__icon icon-red"></div>
<div class="editor__icon icon-yellow"></div>
<div class="editor__icon icon-green"></div>
</div>
<div class="editor__export">
<select name="extension" id="extension" class="export__extensions" data-export-select>
<option value="png" class="export__extension">PNG</option>
<option value="jpeg" class="export__extension">JPEG</option>
<option value="svg" class="export__extension">SVG</option>
</select>
<button disabled class="export__button" data-export-button>Salvar imagem</button>
</div>
</section>
<label for="code" class="sr-only">Editor de código</label>
<div class="code__content">
<pre><code id="code" spellcheck="false" contenteditable="true" data-project-code></code></pre>
</div>
</div>
<button class="button__highlight"></button>
</section>
<form action="" data-form>
<fieldset class="project">
<legend class="input__title">Seu projeto</legend>
<label for="name" class="sr-only">Nome do seu projeto</label>
<input type="text" id="name" name="name" placeholder="Nome do seu projeto" class="project__name" data-project-name required>
<label for="description" class="sr-only">Descrição do seu projeto</label>
<textarea type="text" id="description" name="description" placeholder="Descrição do seu projeto" rows="2" class="project__description" data-project-description required></textarea>
</fieldset>
<fieldset class="personalization">
<legend class="input__title">Personalização</legend>
<label for="language" class="sr-only">Seleciona uma linguagem de programação</label>
<select name="language" id="language" class="personalization__language" data-project-language>
<option value="javascript">Javascript</option>
<option value="python">Python</option>
<option value="php">PHP</option>
<option value="html">HTML</option>
<option value="css">CSS</option>
</select>
<label for="color" class="sr-only">Selecione uma cor para seu projeto</label>
<input type="color" id="color" name="color" list="colors" class="personalization__color" value="#0597F2" data-project-colors>
<datalist id="colors">
<option value="#0597F2"></option>
<option value="#970FF2"></option>
<option value="#49D907"></option>
<option value="#EAF205"></option>
<option value="#F24607"></option>
<option value="#D91111"></option>
<option value="#C9C9C9"></option>
<option value="#594302"></option>
<option value="#ED6897"></option>
<option value="#232625"></option>
</datalist>
</fieldset>
<button type="submit" class="button__save" data-project-button>Salvar projeto</button>
</form>
</main>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dom-to-image/2.6.0/dom-to-image.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.0/FileSaver.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"></script>
<script type="module" src="./assets/scripts/get-user-profile.js"></script>
<script type="module" src="./assets/scripts/modal.js"></script>
<script type="module" src="./assets/scripts/login.js"></script>
<script type="module" src="./assets/scripts/highlight.js"></script>
<script type="module" src="./assets/scripts/export-code-to-image.js"></script>
<script type="module" src="./index.js"></script>
</body>
</html>