Compare commits

...

3 Commits

Author SHA1 Message Date
Boris 85415105c8 Remplacement page IPNS par lien IPFS direct 2021-09-29 18:21:09 +02:00
Boris 9ff050917c [STY] Add 'barry' theme 2021-09-29 18:21:09 +02:00
Boris cff942b812 [STY] Séparation couleur et decoration 2021-09-29 18:21:09 +02:00
85 changed files with 557 additions and 175 deletions

View File

@ -0,0 +1,124 @@
:root {
--rouge: hsl(0, 98.8%, 33.5%);
--rouge-fonce: hsl(0, 75%, 33.5%);
--noir-complet: black;
--noir-fonce: hsl(0, 30%, 2.1%);
--noir-moyen: hsl(0, 15%, 3.1%);
--noir-clair: hsl(0, 5%, 7.1%);
--blanc: hsla(0, 0%, 100%, 1);
--blanc-fort: hsla(0, 0%, 100%, 0.75);
--blanc-semi-transparent: hsla(0, 0%, 100%, 0.25);
}
body {
background: var(--noir-fonce);
color: white;
}
header {
background: var(--noir-clair);
}
header * {
color: var(--rouge);
}
header span {
color: white;
}
#pinFilter ul li a {
background-color: var(--blanc);
}
#pinFilter ul li a {
border-color: red;
}
#pinFilter ul li.selected a {
background-color: var(--rouge);
}
ul#tagsList a,
ul#tagsList a:visited {
color: var(--rouge-fonce);
}
#narrowingTags a,
#narrowingTags a:visited {
color: inherit;
}
#narrowingTags li.selected {
background-color: var(--rouge-fonce);
color: var(--blanc);
border-color: var(--noir-clair);
}
#narrowingTags li.selectable {
background-color: var(--noir-fonce);
color: var(--rouge-fonce);
border-color: var(--noir-clair);
}
#videosList > li {
background-color: var(--noir-clair);
border-color: var(--rouge);
}
.video-title,
.video-title a,
.video-title a:visited {
color: white;
}
#videosList .thumbnail {
background-color: var(--noir-complet);
}
#videosList > li ul.tags li.selectable a,
#videosList > li ul.tags li.selectable a:visited {
color: var(--blanc-semi-transparent);
}
#videosList > li ul.tags li.selectable a:hover {
color: var(--blanc-fort);
}
#videosList > li ul.tags li.selected a,
#videosList > li ul.tags li.selected a:visited {
color: var(--blanc-fort);
}
article {
background-color: var(--noir-clair);
}
article video {
background-color: black;
}

View File

@ -1,106 +1,16 @@
:root {
--rouge: hsl(0, 98.8%, 33.5%);
--rouge-fonce: hsl(0, 75%, 33.5%);
--noir-complet: black;
--noir-fonce: hsl(0, 30%, 2.1%);
--noir-moyen: hsl(0, 15%, 3.1%);
--noir-clair: hsl(0, 5%, 7.1%);
--blanc: hsla(0, 0%, 100%, 1);
--blanc-fort: hsla(0, 0%, 100%, 0.75);
--blanc-semi-transparent: hsla(0, 0%, 100%, 0.25);
}
body {
background: var(--noir-fonce);
color: white;
font-family: Roboto,sans-serif;
}
header {
background: var(--noir-clair);
}
header * {
color: var(--rouge);
text-decoration: none;
}
header span {
header a:active {
color: white;
}
#pinFilter ul li a {
background-color: var(--blanc);
}
#pinFilter ul li.selected a {
background-color: var(--rouge);
}
ul#tagsList,
ul#narrowingTags {
list-style: none;
margin-left: 0;
padding-left: 0;
}
ul#tagsList li,
ul#narrowingTags li {
display: inline-block;
}
ul#tagsList a,
ul#tagsList a:visited {
text-decoration: none;
color: var(--rouge-fonce);
}
#narrowingTags a,
#narrowingTags a:visited {
text-decoration: none;
color: inherit;
}
#narrowingTags li {
border-radius: 1rem;
}
#narrowingTags li.selected {
background-color: var(--rouge-fonce);
color: var(--blanc);
border: 0.125rem solid var(--noir-clair);
}
#tagsList,
#narrowingTags {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
#tagsList li.station,
#narrowingTags li.station {
order: 1;
outline: 0;
}
#tagsList li.station,
@ -111,20 +21,16 @@ ul#tagsList a:visited {
background-position: left middle;
background-size: contain;
padding-left: 2em;
order: 1;
}
#narrowingTags li.selectable {
background-color: var(--noir-fonce);
color: var(--rouge-fonce);
border: 0.125rem solid var(--noir-clair);
border-width: 0.125rem;
border-style: solid;
}
#videosList > li {
background: var(--noir-clair);
border-color: var(--rouge);
border-style: solid;
}
@ -132,51 +38,17 @@ ul#tagsList a:visited {
.video-title a,
.video-title a:visited {
color: white;
font-weight: bold;
text-decoration: none;
word-break: break-all;
}
#videosList .thumbnail {
background-color: var(--noir-complet);
}
#videosList > li ul.tags li a,
#videosList > li ul.tags li a:visited {
text-decoration: none;
}
#videosList > li ul.tags li.selectable a,
#videosList > li ul.tags li.selectable a:visited {
color: var(--blanc-semi-transparent);
}
#videosList > li ul.tags li.selectable a:hover {
color: var(--blanc-fort);
}
#videosList > li ul.tags li.selected a,
#videosList > li ul.tags li.selected a:visited {
color: var(--blanc-fort);
}
article {
background: var(--noir-clair);
}
article video {
background: black;
}
article .video-title {
font-weight: bold;

View File

@ -1,2 +1,3 @@
@import "./layout.css";
@import "./decoration.css";
@import "./colors.css";

View File

@ -0,0 +1 @@
../default/9gag_logo.png

View File

@ -0,0 +1,121 @@
:root {
--rouge: hsl(0, 98.8%, 33.5%);
--rouge-fonce: hsl(0, 75%, 33.5%);
--noir-complet: black;
--noir-fonce: hsl(0, 30%, 2.1%);
--noir-moyen: hsl(0, 15%, 3.1%);
--noir-clair: hsl(0, 5%, 7.1%);
--gris: hsl(0, 5%, 50%);
--gris-fonce: hsl(0, 5%, 25%);
--blanc: hsla(0, 0%, 100%, 1);
--blanc-fort: hsla(0, 0%, 100%, 0.75);
--blanc-semi-transparent: hsla(0, 0%, 100%, 0.25);
}
header * {
color: var(--noir-fonce);
}
#pinFilter ul li a {
background-color: var(--blanc);
}
#pinFilter ul li a {
border-color: var(--rouge-fonce);
}
#pinFilter ul li.selected a {
background-color: var(--rouge);
}
ul#tagsList a,
ul#tagsList a:visited {
color: var(--rouge-fonce);
}
#narrowingTags a,
#narrowingTags a:visited {
color: inherit;
}
#narrowingTags li.selected {
background-color: var(--rouge-fonce);
color: var(--blanc);
border-color: var(--rouge-fonce);
}
#narrowingTags li.selectable {
background-color: var(--blanc);
color: var(--rouge-fonce);
border-color: var(--rouge-fonce);
}
#videosList > li {
border-color: var(--gris);
}
.video-title,
.video-title a,
.video-title a:visited {
color: var(--noir-complet);
}
#videosList .thumbnail {
background-color: var(--noir-complet);
}
#videosList > li ul.tags li.selectable a,
#videosList > li ul.tags li.selectable a:visited {
color: var(--gris-fonce);
}
#videosList > li ul.tags li.selectable a:hover {
color: var(--noir-complet);
}
#videosList > li ul.tags li.selected a,
#videosList > li ul.tags li.selected a:visited {
color: var(--noir-complet);
}
article video {
background-color: black;
}
form.add-video input[type="text"] {
border-color: var(--gris);
}
form.add-video input[type="text"]:focus {
border-color: var(--rouge);
}
form.add-video input[type="submit"] {
background-color: var(--rouge);
border-color: var(--rouge);
color: white;
}

View File

@ -0,0 +1 @@
../astroport/decoration.css

View File

@ -0,0 +1 @@
../../default/font-awesome/address-book.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/anchor.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/arrow-down.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/bars.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/book.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/bookmark.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/bullhorn.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/cloud.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/film.svg

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -0,0 +1 @@
../../default/font-awesome/film.white.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/hdd.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/laptop.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/play-circle.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/play.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/qrcode.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/save.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/share-alt-square.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/share-alt.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/share-square.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/share.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/sliders-h.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/tag.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/tags.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/tv.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/unlink.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/upload.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/user-alt.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/user-astronaut.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/user-friends.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/user-tag.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/user.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/wallet.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/wrench.svg

View File

@ -0,0 +1 @@
../default/layout.css

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

View File

@ -0,0 +1,3 @@
@import "./layout.css";
@import "./decoration.css";
@import "./colors.css";

View File

@ -0,0 +1 @@
../default/9gag_logo.png

View File

@ -0,0 +1,149 @@
:root {
--pink: hsl(338.5, 72.8%, 36.1%);
--light-pink: hsl(338.5, 72.8%, 56.1%);
--canard: hsl(200.8, 100%, 9.6%);
--blanc: hsla(0, 0%, 100%, 1);
--blanc-fort: hsla(0, 0%, 100%, 0.75);
--blanc-semi-transparent: hsla(0, 0%, 100%, 0.25);
}
body {
background-color: #121212;
color: white;
}
header {
background-color: var(--canard);
}
header a,
header a:visited {
color: white;
}
header > .sitetitle span {
border-bottom-color: var(--pink);
}
header .usp {
color: white;
}
header .usp strong {
color: var(--light-pink);
}
#pinFilter ul li a {
background-color: var(--blanc);
}
#pinFilter ul li a {
border-color: var(--blanc);
}
#pinFilter ul li.selected a {
background-color: var(--pink);
}
ul#tagsList a,
ul#tagsList a:visited {
color: var(--pink);
}
#narrowingTags a,
#narrowingTags a:visited {
color: inherit;
}
#narrowingTags li.selected {
background-color: var(--blanc);
color: var(--canard);
border-color: var(--canard);
}
#narrowingTags li.selectable {
background-color: var(--canard);
color: var(--blanc);
border-color: var(--blanc);
}
#videosList > li {
background-color: var(--canard);
border-color: var(--pink);
}
.video-title,
.video-title a,
.video-title a:visited {
color: var(--blanc);
}
#videosList .thumbnail {
background-color: var(--noir-complet);
}
#videosList > li ul.tags li.selectable a,
#videosList > li ul.tags li.selectable a:visited {
color: var(--blanc-semi-transparent);
}
#videosList > li ul.tags li.selectable a:hover {
color: var(--blanc-fort);
}
#videosList > li ul.tags li.selected a,
#videosList > li ul.tags li.selected a:visited {
color: var(--blanc-fort);
}
article {
background: var(--canard);
}
article video {
background-color: black;
}
form.add-video input[type="text"] {
border-color: transparent;
}
form.add-video input[type="text"]:focus {
border-color: var(--pink);
}
form.add-video input[type="submit"] {
background-color: var(--pink);
border-color: var(--pink);
color: white;
}

View File

@ -1,26 +1,11 @@
:root {
--pink: hsl(338.5, 72.8%, 36.1%);
--light-pink: hsl(338.5, 72.8%, 56.1%);
--canard: hsl(200.8, 100%, 9.6%);
}
body {
background: #121212;
color: white;
font-family: Roboto,sans-serif;
}
header {
background: var(--canard);
}
header a,
header a:visited {
color: white;
text-decoration: none;
}
@ -32,24 +17,27 @@ header a:active {
header > .sitetitle span {
border-bottom-style: solid;
border-bottom-color: var(--pink);
}
header .usp {
#tagsList li.station,
#narrowingTags li.station {
color: white;
background-image: url("logo.png");
background-repeat: no-repeat;
background-position: left middle;
background-size: contain;
padding-left: 2em;
}
header .usp strong {
color: var(--light-pink);
#narrowingTags li.selectable {
border-width: 0.125rem;
border-style: solid;
}
#videosList > li {
background: var(--canard);
border-color: var(--pink);
border-style: solid;
}
@ -57,20 +45,15 @@ header .usp strong {
.video-title a,
.video-title a:visited {
color: white;
font-weight: bold;
text-decoration: none;
word-break: break-all;
}
article {
background: var(--canard);
}
article video {
background: black;
#videosList > li ul.tags li a,
#videosList > li ul.tags li a:visited {
text-decoration: none;
}
article .video-title {
@ -78,25 +61,28 @@ article .video-title {
font-weight: bold;
}
form.add-video input[type="text"] {
border-style: solid;
border-color: transparent;
}
form.add-video input[type="text"]:focus {
border-color: var(--pink);
outline: 0;
}
form.add-video input[type="submit"] {
background: var(--pink);
border-color: var(--pink);
border-style: solid;
color: white;
font-weight: bold;
}
#successMsg {
opacity: 0;
transition: opacity 1s;
}

View File

@ -0,0 +1 @@
../../default/font-awesome/address-book.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/anchor.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/arrow-down.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/bars.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/book.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/bookmark.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/bullhorn.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/cloud.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/film.svg

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -0,0 +1 @@
../../default/font-awesome/film.white.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/hdd.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/laptop.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/play-circle.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/play.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/qrcode.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/save.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/share-alt-square.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/share-alt.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/share-square.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/share.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/sliders-h.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/tag.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/tags.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/tv.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/unlink.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/upload.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/user-alt.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/user-astronaut.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/user-friends.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/user-tag.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/user.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/wallet.svg

View File

@ -0,0 +1 @@
../../default/font-awesome/wrench.svg

View File

@ -1,2 +1,3 @@
@import "./layout.css";
@import "./decoration.css";
@import "./colors.css";

View File

@ -82,11 +82,13 @@ aside#menu > div {
}
#pinFilter ul li a {
border-width: 1px;
border-style: solid;
display: inline-block;
height: 3rem;
width: 3rem;
border: 1px solid red;
background-repeat: no-repeat;
}
@ -115,13 +117,57 @@ aside#menu > div {
}
ul#tagsList,
ul#narrowingTags {
display: flex;
flex-direction: row;
flex-wrap: wrap;
list-style: none;
margin-left: 0;
padding-left: 0;
}
#tagsList li,
#narrowingTags li {
display: inline-block;
padding: 0.125rem 0.5rem;
margin: 0.25rem 0.25rem;
}
#narrowingTags li.selected {
border-width: 0.125rem;
border-style: solid;
}
#tagsList li.station,
#narrowingTags li.station {
order: 1;
}
ul#tagsList a,
ul#tagsList a:visited {
text-decoration: none;
}
#narrowingTags a,
#narrowingTags a:visited {
text-decoration: none;
}
#narrowingTags li {
border-radius: 1rem;
}
#videosList {
display: grid;

View File

@ -6,7 +6,7 @@ $i = 0;
$div = 9;
$r = rand(0, ($div - 1));
$j = 0;
$maxElt = 16;
$maxElt = 3;
// require('php-ipfs-api/vendor/autoload.php');
// use Cloutier\PhpIpfsApi\IPFS;
@ -85,13 +85,13 @@ foreach ($videos as $v) {
continue;
}
++$j;
if ($j > $maxElt) {
break;
}
*/
$duration = NULL;
$thumbURL = '';
$videoTitle = NULL;
@ -293,6 +293,7 @@ foreach ($videosList as $video) {
$href = 'youtube_watch.php?uri='. $video['uri'] . '&name='. urlencode($displayTitle) .'&mime='. $video['mime'];
/*
echo '
<p class="thumbnail">
<a href="/ipns/'. $video['ipnsHash'] .'">
@ -300,6 +301,14 @@ foreach ($videosList as $video) {
</a>
</p>
';
*/
echo '
<p class="thumbnail">
<a href="'. $href .'">
<img src="'. $video['thumbURL'] . '" alt="'. $displayTitle . '" />
</a>
</p>
';
if (isset($video['duration'])) {