1
0

Profile.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877
  1. <template>
  2. <div v-if="isUser">
  3. <metadata :title="`Profile | ${user.username}`" />
  4. <edit-playlist v-if="modals.editPlaylist" />
  5. <create-playlist v-if="modals.createPlaylist" />
  6. <main-header />
  7. <div class="container">
  8. <div class="info-section">
  9. <div class="picture-name-row">
  10. <img
  11. class="profile-picture"
  12. :src="
  13. user.avatar.url && user.avatar.type === 'gravatar'
  14. ? `${user.avatar.url}?d=${notes}&s=250`
  15. : '/assets/notes.png'
  16. "
  17. onerror="this.src='/assets/notes.png'; this.onerror=''"
  18. />
  19. <div>
  20. <div class="name-role-row">
  21. <p class="name">{{ user.name }}</p>
  22. <span
  23. class="role admin"
  24. v-if="user.role === 'admin'"
  25. >admin</span
  26. >
  27. </div>
  28. <h2 class="username">@{{ user.username }}</h2>
  29. </div>
  30. </div>
  31. <div
  32. class="buttons"
  33. v-if="userId === user._id || role === 'admin'"
  34. >
  35. <router-link
  36. :to="`/admin/users?userId=${user._id}`"
  37. class="button is-primary"
  38. v-if="role === 'admin'"
  39. >
  40. Edit
  41. </router-link>
  42. <router-link
  43. to="/settings"
  44. class="button is-primary"
  45. v-if="userId === user._id"
  46. >
  47. Settings
  48. </router-link>
  49. </div>
  50. <div class="bio-row" v-if="user.bio">
  51. <i class="material-icons">notes</i>
  52. <p>{{ user.bio }}</p>
  53. </div>
  54. <div
  55. class="date-location-row"
  56. v-if="user.createdAt || user.location"
  57. >
  58. <div class="date" v-if="user.createdAt">
  59. <i class="material-icons">calendar_today</i>
  60. <p>{{ user.createdAt }}</p>
  61. </div>
  62. <div class="location" v-if="user.location">
  63. <i class="material-icons">location_on</i>
  64. <p>{{ user.location }}</p>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="bottom-section">
  69. <div class="buttons">
  70. <button
  71. :class="{ active: tab === 'recent-activity' }"
  72. @click="showTab('recent-activity')"
  73. >
  74. Recent activity
  75. </button>
  76. <button
  77. :class="{ active: tab === 'playlists' }"
  78. @click="showTab('playlists')"
  79. >
  80. Playlists
  81. </button>
  82. </div>
  83. <div
  84. class="content recent-activity-tab"
  85. v-if="tab === 'recent-activity'"
  86. >
  87. <div v-if="activities.length > 0">
  88. <h4 class="section-title">Recent activity</h4>
  89. <p class="section-description">
  90. This is a log of all actions
  91. {{
  92. userId === user._id
  93. ? "you have"
  94. : `${user.name} has`
  95. }}
  96. taken recently.
  97. </p>
  98. <hr class="section-horizontal-rule" />
  99. <div
  100. class="item activity-item universal-item"
  101. v-for="activity in sortedActivities"
  102. :key="activity._id"
  103. >
  104. <div class="thumbnail">
  105. <img :src="activity.thumbnail" alt="" />
  106. <i class="material-icons activity-type-icon">{{
  107. activity.icon
  108. }}</i>
  109. </div>
  110. <div class="left-part">
  111. <p
  112. class="item-title"
  113. v-html="activity.message"
  114. ></p>
  115. <p class="item-description">
  116. {{
  117. formatDistance(
  118. parseISO(activity.createdAt),
  119. new Date(),
  120. { addSuffix: true }
  121. )
  122. }}
  123. </p>
  124. </div>
  125. <div class="universal-item-actions">
  126. <a
  127. href="#"
  128. @click.prevent="hideActivity(activity._id)"
  129. >
  130. <i class="material-icons hide-icon"
  131. >visibility_off</i
  132. >
  133. </a>
  134. </div>
  135. </div>
  136. </div>
  137. <div v-else>
  138. <h3>No recent activity.</h3>
  139. </div>
  140. </div>
  141. <div class="content playlists-tab" v-if="tab === 'playlists'">
  142. <div v-if="playlists.length > 0">
  143. <h4 class="section-title">
  144. {{ user._id === userId ? "My" : null }}
  145. Playlists
  146. </h4>
  147. <p class="section-description">
  148. View
  149. {{
  150. userId === user._id
  151. ? "and manage your personal"
  152. : `${user.name}'s`
  153. }}
  154. playlists.
  155. </p>
  156. <hr class="section-horizontal-rule" />
  157. <draggable
  158. class="menu-list scrollable-list"
  159. v-if="playlists.length > 0"
  160. v-model="playlists"
  161. v-bind="dragOptions"
  162. @start="drag = true"
  163. @end="drag = false"
  164. @change="savePlaylistOrder"
  165. >
  166. <transition-group
  167. type="transition"
  168. :name="
  169. !drag ? 'draggable-list-transition' : null
  170. "
  171. >
  172. <div
  173. class="item item-draggable"
  174. v-for="playlist in playlists"
  175. :key="playlist._id"
  176. >
  177. <playlist-item
  178. v-if="
  179. playlist.privacy === 'public' ||
  180. (playlist.privacy ===
  181. 'private' &&
  182. playlist.createdBy ===
  183. userId)
  184. "
  185. :playlist="playlist"
  186. >
  187. <div slot="actions">
  188. <i
  189. v-if="user._id === userId"
  190. @click="
  191. showPlaylist(playlist._id)
  192. "
  193. class="material-icons edit-icon"
  194. >edit</i
  195. >
  196. <i
  197. v-else
  198. @click="
  199. showPlaylist(playlist._id)
  200. "
  201. class="material-icons view-icon"
  202. >visibility</i
  203. >
  204. </div>
  205. </playlist-item>
  206. </div>
  207. </transition-group>
  208. </draggable>
  209. <button
  210. v-if="user._id === userId"
  211. class="button is-primary"
  212. id="create-new-playlist-button"
  213. @click="
  214. openModal({
  215. sector: 'station',
  216. modal: 'createPlaylist'
  217. })
  218. "
  219. >
  220. Create new playlist
  221. </button>
  222. </div>
  223. <div v-else>
  224. <h3>No playlists here.</h3>
  225. </div>
  226. </div>
  227. </div>
  228. </div>
  229. <main-footer />
  230. </div>
  231. </template>
  232. <script>
  233. import { mapState, mapActions } from "vuex";
  234. import { format, formatDistance, parseISO } from "date-fns";
  235. import Toast from "toasters";
  236. import draggable from "vuedraggable";
  237. import TabQueryHandler from "../mixins/TabQueryHandler.vue";
  238. import PlaylistItem from "../components/ui/PlaylistItem.vue";
  239. import SortablePlaylists from "../mixins/SortablePlaylists.vue";
  240. import MainHeader from "../components/layout/MainHeader.vue";
  241. import MainFooter from "../components/layout/MainFooter.vue";
  242. import io from "../io";
  243. export default {
  244. components: {
  245. MainHeader,
  246. MainFooter,
  247. PlaylistItem,
  248. CreatePlaylist: () => import("../components/modals/CreatePlaylist.vue"),
  249. EditPlaylist: () =>
  250. import("../components/modals/EditPlaylist/index.vue"),
  251. draggable
  252. },
  253. mixins: [SortablePlaylists, TabQueryHandler],
  254. data() {
  255. return {
  256. user: {},
  257. notes: "",
  258. isUser: false,
  259. tab: "recent-activity",
  260. playlists: [],
  261. activities: []
  262. };
  263. },
  264. computed: {
  265. ...mapState({
  266. role: state => state.user.auth.role,
  267. userId: state => state.user.auth.userId,
  268. ...mapState("modalVisibility", {
  269. modals: state => state.modals.station
  270. })
  271. }),
  272. sortedActivities() {
  273. const { activities } = this;
  274. return activities.sort(
  275. (x, y) => new Date(y.createdAt) - new Date(x.createdAt)
  276. );
  277. }
  278. },
  279. mounted() {
  280. if (
  281. this.$route.query.tab === "recent-activity" ||
  282. this.$route.query.tab === "playlists"
  283. )
  284. this.tab = this.$route.query.tab;
  285. lofig.get("frontendDomain").then(frontendDomain => {
  286. this.frontendDomain = frontendDomain;
  287. this.notes = encodeURI(`${this.frontendDomain}/assets/notes.png`);
  288. });
  289. io.getSocket(socket => {
  290. this.socket = socket;
  291. this.socket.emit(
  292. "users.findByUsername",
  293. this.$route.params.username,
  294. res => {
  295. if (res.status === "error") this.$router.go("/404");
  296. else {
  297. this.user = res.data;
  298. this.user.createdAt = format(
  299. parseISO(this.user.createdAt),
  300. "MMMM do yyyy"
  301. );
  302. this.isUser = true;
  303. if (this.user._id !== this.userId) {
  304. this.socket.emit(
  305. "apis.joinRoom",
  306. `profile-${res.data._id}`,
  307. () => {}
  308. );
  309. }
  310. this.socket.emit(
  311. "playlists.indexForUser",
  312. this.user._id,
  313. res => {
  314. if (res.status === "success")
  315. this.playlists = res.data;
  316. this.orderOfPlaylists = this.calculatePlaylistOrder(); // order in regards to the database
  317. }
  318. );
  319. this.socket.on("event:playlist.create", playlist => {
  320. this.playlists.push(playlist);
  321. });
  322. this.socket.on("event:playlist.delete", playlistId => {
  323. this.playlists.forEach((playlist, index) => {
  324. if (playlist._id === playlistId) {
  325. this.playlists.splice(index, 1);
  326. }
  327. });
  328. });
  329. this.socket.on("event:playlist.addSong", data => {
  330. this.playlists.forEach((playlist, index) => {
  331. if (playlist._id === data.playlistId) {
  332. this.playlists[index].songs.push(data.song);
  333. }
  334. });
  335. });
  336. this.socket.on("event:playlist.removeSong", data => {
  337. this.playlists.forEach((playlist, index) => {
  338. if (playlist._id === data.playlistId) {
  339. this.playlists[index].songs.forEach(
  340. (song, index2) => {
  341. if (song.songId === data.songId) {
  342. this.playlists[
  343. index
  344. ].songs.splice(index2, 1);
  345. }
  346. }
  347. );
  348. }
  349. });
  350. });
  351. this.socket.on(
  352. "event:playlist.updateDisplayName",
  353. data => {
  354. this.playlists.forEach((playlist, index) => {
  355. if (playlist._id === data.playlistId) {
  356. this.playlists[index].displayName =
  357. data.displayName;
  358. }
  359. });
  360. }
  361. );
  362. this.socket.on("event:playlist.updatePrivacy", data => {
  363. this.playlists.forEach((playlist, index) => {
  364. if (playlist._id === data.playlist._id) {
  365. this.playlists[index].privacy =
  366. data.playlist.privacy;
  367. }
  368. });
  369. });
  370. this.socket.on(
  371. "event:user.orderOfPlaylists.changed",
  372. orderOfPlaylists => {
  373. const sortedPlaylists = [];
  374. this.playlists.forEach(playlist => {
  375. sortedPlaylists[
  376. orderOfPlaylists.indexOf(playlist._id)
  377. ] = playlist;
  378. });
  379. this.playlists = sortedPlaylists;
  380. this.orderOfPlaylists = this.calculatePlaylistOrder();
  381. }
  382. );
  383. if (this.user._id === this.userId) {
  384. this.socket.emit(
  385. "activities.getSet",
  386. this.userId,
  387. 1,
  388. res => {
  389. if (res.status === "success") {
  390. for (
  391. let a = 0;
  392. a < res.data.length;
  393. a += 1
  394. ) {
  395. this.formatActivity(
  396. res.data[a],
  397. activity => {
  398. this.activities.unshift(
  399. activity
  400. );
  401. }
  402. );
  403. }
  404. }
  405. }
  406. );
  407. this.socket.on(
  408. "event:activity.create",
  409. activity => {
  410. console.log(activity);
  411. this.formatActivity(activity, activity => {
  412. this.activities.unshift(activity);
  413. });
  414. }
  415. );
  416. }
  417. }
  418. }
  419. );
  420. });
  421. },
  422. methods: {
  423. formatDistance,
  424. parseISO,
  425. showPlaylist(playlistId) {
  426. this.editPlaylist(playlistId);
  427. this.openModal({ sector: "station", modal: "editPlaylist" });
  428. },
  429. hideActivity(activityId) {
  430. this.socket.emit("activities.hideActivity", activityId, res => {
  431. if (res.status === "success") {
  432. this.activities = this.activities.filter(
  433. activity => activity._id !== activityId
  434. );
  435. } else {
  436. new Toast({ content: res.message, timeout: 3000 });
  437. }
  438. });
  439. },
  440. formatActivity(res, cb) {
  441. console.log("activity", res);
  442. const icons = {
  443. created_account: "account_circle",
  444. created_station: "radio",
  445. deleted_station: "delete",
  446. created_playlist: "playlist_add_check",
  447. deleted_playlist: "delete_sweep",
  448. liked_song: "favorite",
  449. added_song_to_playlist: "playlist_add",
  450. added_songs_to_playlist: "playlist_add"
  451. };
  452. const activity = {
  453. ...res,
  454. thumbnail: "",
  455. message: "",
  456. icon: ""
  457. };
  458. const plural = activity.payload.length > 1;
  459. activity.icon = icons[activity.activityType];
  460. if (activity.activityType === "created_account") {
  461. activity.message = "Welcome to Musare!";
  462. return cb(activity);
  463. }
  464. if (activity.activityType === "created_station") {
  465. this.socket.emit(
  466. "stations.getStationForActivity",
  467. activity.payload[0],
  468. res => {
  469. if (res.status === "success") {
  470. activity.message = `Created the station <strong>${res.data.title}</strong>`;
  471. activity.thumbnail = res.data.thumbnail;
  472. return cb(activity);
  473. }
  474. activity.message = "Created a station";
  475. return cb(activity);
  476. }
  477. );
  478. }
  479. if (activity.activityType === "deleted_station") {
  480. activity.message = `Deleted a station`;
  481. return cb(activity);
  482. }
  483. if (activity.activityType === "created_playlist") {
  484. this.socket.emit(
  485. "playlists.getPlaylistForActivity",
  486. activity.payload[0],
  487. res => {
  488. if (res.status === "success") {
  489. activity.message = `Created the playlist <strong>${res.data.title}</strong>`;
  490. // activity.thumbnail = res.data.thumbnail;
  491. return cb(activity);
  492. }
  493. activity.message = "Created a playlist";
  494. return cb(activity);
  495. }
  496. );
  497. }
  498. if (activity.activityType === "deleted_playlist") {
  499. activity.message = `Deleted a playlist`;
  500. return cb(activity);
  501. }
  502. if (activity.activityType === "liked_song") {
  503. if (plural) {
  504. activity.message = `Liked ${activity.payload.length} songs.`;
  505. return cb(activity);
  506. }
  507. this.socket.emit(
  508. "songs.getSongForActivity",
  509. activity.payload[0],
  510. res => {
  511. if (res.status === "success") {
  512. activity.message = `Liked the song <strong>${res.data.title}</strong>`;
  513. activity.thumbnail = res.data.thumbnail;
  514. return cb(activity);
  515. }
  516. activity.message = "Liked a song";
  517. return cb(activity);
  518. }
  519. );
  520. }
  521. if (activity.activityType === "added_song_to_playlist") {
  522. this.socket.emit(
  523. "songs.getSongForActivity",
  524. activity.payload[0].songId,
  525. song => {
  526. console.log(song);
  527. this.socket.emit(
  528. "playlists.getPlaylistForActivity",
  529. activity.payload[0].playlistId,
  530. playlist => {
  531. if (song.status === "success") {
  532. if (playlist.status === "success")
  533. activity.message = `Added the song <strong>${song.data.title}</strong> to the playlist <strong>${playlist.data.title}</strong>`;
  534. else
  535. activity.message = `Added the song <strong>${song.data.title}</strong> to a playlist`;
  536. activity.thumbnail = song.data.thumbnail;
  537. return cb(activity);
  538. }
  539. if (playlist.status === "success") {
  540. activity.message = `Added a song to the playlist <strong>${playlist.data.title}</strong>`;
  541. return cb(activity);
  542. }
  543. activity.message = "Added a song to a playlist";
  544. return cb(activity);
  545. }
  546. );
  547. }
  548. );
  549. }
  550. if (activity.activityType === "added_songs_to_playlist") {
  551. activity.message = `Added ${activity.payload.length} songs to a playlist`;
  552. return cb(activity);
  553. }
  554. return false;
  555. },
  556. ...mapActions("modalVisibility", ["openModal"]),
  557. ...mapActions("user/playlists", ["editPlaylist"])
  558. }
  559. };
  560. </script>
  561. <style lang="scss" scoped>
  562. @import "../styles/global.scss";
  563. @media only screen and (max-width: 750px) {
  564. .info-section {
  565. margin-top: 0 !important;
  566. .picture-name-row {
  567. flex-direction: column !important;
  568. }
  569. .name-role-row {
  570. margin-top: 24px;
  571. }
  572. .buttons .button:not(:last-of-type) {
  573. margin-bottom: 10px;
  574. margin-right: 5px;
  575. }
  576. .date-location-row {
  577. flex-direction: column;
  578. width: auto !important;
  579. }
  580. .date-location-row > div:nth-child(2),
  581. .buttons .button:nth-child(2) {
  582. margin-left: 0 !important;
  583. }
  584. }
  585. .bottom-section {
  586. flex-direction: column;
  587. }
  588. .content {
  589. margin: 24px 0;
  590. }
  591. }
  592. .info-section {
  593. width: 912px;
  594. max-width: 100%;
  595. margin-left: auto;
  596. margin-right: auto;
  597. margin-top: 32px;
  598. padding: 24px;
  599. .picture-name-row {
  600. display: flex;
  601. flex-direction: row;
  602. align-items: center;
  603. justify-content: center;
  604. margin-bottom: 24px;
  605. }
  606. .profile-picture {
  607. width: 100px;
  608. height: 100px;
  609. border-radius: 100%;
  610. border: 0.5px solid $light-grey-2;
  611. margin-right: 32px;
  612. }
  613. .name-role-row {
  614. display: flex;
  615. flex-direction: row;
  616. align-items: center;
  617. }
  618. .name {
  619. font-size: 34px;
  620. line-height: 40px;
  621. color: $dark-grey-3;
  622. }
  623. .role {
  624. padding: 2px 24px;
  625. color: $white;
  626. text-transform: uppercase;
  627. font-size: 12px;
  628. line-height: 14px;
  629. height: 18px;
  630. border-radius: 5px;
  631. margin-left: 12px;
  632. &.admin {
  633. background-color: $red;
  634. }
  635. }
  636. .username {
  637. font-size: 24px;
  638. line-height: 28px;
  639. color: $dark-grey;
  640. margin: 0;
  641. }
  642. .buttons {
  643. width: 388px;
  644. max-width: 100%;
  645. display: flex;
  646. flex-direction: row;
  647. margin-left: auto;
  648. margin-right: auto;
  649. margin-bottom: 24px;
  650. .button {
  651. flex: 1;
  652. font-size: 17px;
  653. line-height: 20px;
  654. &:nth-child(2) {
  655. margin-left: 20px;
  656. }
  657. }
  658. }
  659. .bio-row,
  660. .date-location-row {
  661. i {
  662. font-size: 24px;
  663. color: $dark-grey-2;
  664. margin-right: 12px;
  665. }
  666. p {
  667. font-size: 17px;
  668. line-height: 20px;
  669. color: $dark-grey-2;
  670. word-break: break-word;
  671. }
  672. }
  673. .bio-row {
  674. max-width: 608px;
  675. margin-bottom: 24px;
  676. margin-left: auto;
  677. margin-right: auto;
  678. display: flex;
  679. width: max-content;
  680. }
  681. .date-location-row {
  682. max-width: 608px;
  683. margin-left: auto;
  684. margin-right: auto;
  685. margin-bottom: 24px;
  686. display: flex;
  687. width: max-content;
  688. margin-bottom: 24px;
  689. > div:nth-child(2) {
  690. margin-left: 48px;
  691. }
  692. }
  693. .date,
  694. .location {
  695. display: flex;
  696. }
  697. }
  698. .bottom-section {
  699. width: 962px;
  700. max-width: 100%;
  701. margin-left: auto;
  702. margin-right: auto;
  703. padding: 24px;
  704. display: flex;
  705. .buttons {
  706. height: 100%;
  707. width: 250px;
  708. margin-right: 64px;
  709. button {
  710. outline: none;
  711. border: none;
  712. box-shadow: none;
  713. color: $musare-blue;
  714. font-size: 22px;
  715. line-height: 26px;
  716. padding: 7px 0 7px 12px;
  717. width: 100%;
  718. text-align: left;
  719. cursor: pointer;
  720. border-radius: 5px;
  721. background-color: transparent;
  722. &.active {
  723. color: $white;
  724. background-color: $musare-blue;
  725. }
  726. }
  727. }
  728. .content {
  729. width: 600px;
  730. max-width: 100%;
  731. background-color: #fff;
  732. padding: 30px 50px;
  733. border-radius: 3px;
  734. h3 {
  735. font-weight: 400;
  736. }
  737. .item {
  738. overflow: hidden;
  739. &:not(:last-of-type) {
  740. margin-bottom: 10px;
  741. }
  742. /** temp code - will be put into a separate component */
  743. &.activity-item {
  744. height: 72px;
  745. border: 0.5px $light-grey-2 solid;
  746. border-radius: 3px;
  747. .thumbnail {
  748. position: relative;
  749. display: flex;
  750. align-items: center;
  751. justify-content: center;
  752. width: 70.5px;
  753. height: 70.5px;
  754. img {
  755. opacity: 0.4;
  756. }
  757. .activity-type-icon {
  758. position: absolute;
  759. color: $dark-grey;
  760. font-size: 30px;
  761. }
  762. }
  763. .left-part {
  764. flex: 1;
  765. padding: 12px;
  766. .item-title {
  767. margin: 0;
  768. }
  769. }
  770. .universal-item-actions a {
  771. border-bottom: 0;
  772. }
  773. }
  774. }
  775. #create-new-playlist-button {
  776. margin-top: 30px;
  777. width: 100%;
  778. }
  779. }
  780. }
  781. .night-mode {
  782. .name,
  783. .username,
  784. .bio-row i,
  785. .bio-row p,
  786. .date-location-row i,
  787. .date-location-row p,
  788. .item .left-part .top-text,
  789. .item .left-part .bottom-text,
  790. .bottom-section
  791. .content
  792. .item.activity-item
  793. .thumbnail
  794. .activity-type-icon {
  795. color: $light-grey;
  796. }
  797. }
  798. </style>