-
Notifications
You must be signed in to change notification settings - Fork 0
/
communaute.html
156 lines (143 loc) · 8.31 KB
/
communaute.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="highlight-js/styles/dracula.css" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Inter&display=swap" rel="stylesheet" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap" rel="stylesheet" crossorigin="anonymous">
<title> Community </title>
</head>
<body>
<header>
<div class="head-of-page">
<div class="logo-head-of-page">
<a href="https://www.alura.com.br/challenges/front-end/" target="_blank"><img class="img-logo" src="imgs/logo-plataforma.png"></a>
</div>
<div class="search-head-of-page">
<form class="searchInput"><input type="search" class="search-text" name="q" placeholder="Write your research here ..."></form>
</div>
<div class="user-photo-head-of-page">
<a href="https://www.linkedin.com/in/janynnemattos/" target="_blank"><img class ="userphoto" src="imgs/foto-perfil.jpg" label="useruser">
<span label="useruser" id="fullName">Janynne Mattos</span></a>
</div>
</div>
</header>
<main class="main-communaute">
<div class="left-page">
<h1 class="title-sidebar">Menu</h1>
<nav class="menu-nav">
<button class="button-mobile"aria-haspopup="true" aria-controls="link-nav-ul" aria-expanded="false">
<span class="hamburger"></span>
</button>
<ul class="link-nav-ul" role="menu">
<li><a class="link-nav" href="index.html">
<div class="icon-cointainer">
<img src="imgs/icon-1.svg" class="icone">
</div> Home </a></li>
<li><a class="link-nav" href="communaute.html">
<div class="icon-cointainer">
<img src="imgs/icon-2.svg" class="icone">
</div> Community</a></li>
</ul>
</nav>
</div>
<div class="main-projects">
<ul class="all-projects">
<div class="container-project" >
<div class="text-content-container" style="background-color:rgb(255, 174, 0)">
<div class="buttons">
<button class="button-red-communaute"></button>
<button class="button-yellow-communaute"></button>
<button class="button-green-communaute"></button>
</div>
<div class="text-editor">
<div class="text-editor-container"><a href="index.html"><pre><code class="language-javascript">const buttonMobile = document.querySelector('.button-mobile')
function toggleMenu(event) {
if (event.type === 'touchstart')event.preventDefault();
const menuNav = document.querySelector('.menu-nav')
menuNav.classList.toggle('active');
const active = menuNav.classList.contains('active')
event.currentTarget.setAttribute('aria-expended', active)
if (active) {
event.currentTarget.setAttribute('aria-label', 'Fermer Menu')
} else {
event.currentTarget.setAttribute('aria-label', 'Ouvrir Menu')
}
}</code></pre></a>
</div>
</div>
</div>
<div class="description-project-content">
<h2 class="project-title">Mon projet en JS</h2>
<p class="project-description">Voici la function pour utiliser avec un menu mobile </p>
<span class="project-language">Language: JavaScript</span>
<div class="interactions-project">
<div class="style-click">
<button type="button" class="button-project"> <img src="imgs/comentbutton.svg"></button>
</div>
<div class="style-click" onClick="onClick(event)">
<button type="button" class="button-project"><img src="imgs/likebutton.svg"></button>
<span class="icon-project-like">32</span>
</div>
<div class="user-photo-div">
<a href="https://www.linkedin.com/in/janynnemattos/" target="_blank"><img class ="user-photo" src="imgs/foto-perfil.jpg" label="useruser"></a>
</div>
</div>
</div>
</div>
<div class="container-project" >
<div class="text-content-container">
<div class="buttons">
<button class="button-red-communaute"></button>
<button class="button-yellow-communaute"></button>
<button class="button-green-communaute"></button>
</div>
<div class="text-editor">
<div class="text-editor-container"><a href="index.html"><pre><code class="language-css">@media screen and (max-width: 400px) {
.head-of-page {
margin: 0px;
display:initial;
}
.logo-head-of-page {
width: 60%;
}
.all-projects {
display: block;
max-width: 100%;
}</code></pre></a>
</div>
</div>
</div>
<div class="description-project-content">
<h2 class="project-title">My project in CSS</h2>
<p class="project-description">An exemple of how media query works in CSS. </p>
<span class="project-language">Language: CSS</span>
<div class="interactions-project">
<div class="style-click">
<button type="button" class="button-project"> <img src="imgs/comentbutton.svg"></button>
</div>
<div class="style-click" onClick="onClick(event)">
<button type="button" class="button-project"><img src="imgs/likebutton.svg"></button>
<span class="icon-project-like">79</span>
</div>
<div class="user-photo-div">
<a href="https://www.linkedin.com/in/janynnemattos/" target="_blank"><img class ="user-photo" src="imgs/foto-perfil.jpg" label="useruser"></a>
</div>
</div>
</div>
</div>
</ul>
</div>
</main>
</body>
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.0.0/build/highlight.min.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dom-to-image/2.6.0/dom-to-image.min.js" integrity="sha512-01CJ9/g7e8cUmY0DFTMcUw/ikS799FHiOA0eyHsUWfOetgbx/t6oV4otQ5zXKQyIrQGTHSmRVPIgrgLcZi/WMA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="sharedcontent.js"></script>
<script src="communaute.js"></script>
<script>hljs.highlightAll();</script>
</html>