From e7bf5952d0729b37e677168b6e8fbd1ce58ed1a2 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 10 Aug 2014 17:28:37 +0200 Subject: First version --- point/view/notes.css | 34 +++++++++++++++++++++++++++++++ point/view/slides.css | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ point/view/view.js | 31 +++++++++++++++++++++++++++++ 3 files changed, 120 insertions(+) create mode 100644 point/view/notes.css create mode 100644 point/view/slides.css create mode 100644 point/view/view.js (limited to 'point/view') diff --git a/point/view/notes.css b/point/view/notes.css new file mode 100644 index 0000000..cb4daee --- /dev/null +++ b/point/view/notes.css @@ -0,0 +1,34 @@ +/* + * This file is part of "What's The Point" + * Copyright (C) 2014 Pacien TRAN-GIRARD + * + * "What's The Point" is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * "What's The Point" is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +@import url("slides.css"); + +s-notes { + display: flex; +} + +s-content { + display: none; +} + +p-screen.slides s-notes { + display: none; +} + +p-screen.slides s-content { + display: flex; +} diff --git a/point/view/slides.css b/point/view/slides.css new file mode 100644 index 0000000..adbe4ac --- /dev/null +++ b/point/view/slides.css @@ -0,0 +1,55 @@ +/* + * This file is part of "What's The Point" + * Copyright (C) 2014 Pacien TRAN-GIRARD + * + * "What's The Point" is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * "What's The Point" is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +p-screen { + position: absolute; + width: 900px; + height: 600px; + margin: auto; + top: 0; + bottom: 0; + left: 0; + right: 0; +} + +p-slide { + display: none; + flex-direction: column; + box-sizing: border-box; + width: 100%; + height: 100%; + background: white; +} + +p-slide:target { + display: flex; +} + +p-slide > * { + display: flex; + flex-direction: column; + justify-content: center; +} + +s-content, s-notes { + height: 100%; +} + +s-notes { + display: none; +} diff --git a/point/view/view.js b/point/view/view.js new file mode 100644 index 0000000..e009af4 --- /dev/null +++ b/point/view/view.js @@ -0,0 +1,31 @@ +/* + * This file is part of "What's The Point" + * Copyright (C) 2014 Pacien TRAN-GIRARD + * + * "What's The Point" is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * "What's The Point" is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +define(function () { + + var view = {}; + + view.VIEW = { + DESK: "desk", + NOTES: "notes", + SLIDES: "slides", + }; + + return view; + +}); -- cgit v1.2.3