good progress on new website

This commit is contained in:
Jonas_Jones 2022-06-20 20:43:32 +02:00
parent 1a30ebf7dd
commit e43a9c9167
33 changed files with 521 additions and 99 deletions

View file

@ -0,0 +1,36 @@
<link rel="stylesheet" href="main.css">
<body>
<div class="outer-wrapper">
<div class="s-wrap s-type-1" role="slider">
<input type="radio" id="s-1" name="slider-control" checked="checked">
<input type="radio" id="s-2" name="slider-control">
<input type="radio" id="s-3" name="slider-control">
<input type="radio" id="s-4" name="slider-control">
<input type="radio" id="s-5" name="slider-control">
<ul class="s-content">
<li class="s-item s-item-1"></li>
<li class="s-item s-item-2"></li>
<li class="s-item s-item-3"></li>
<li class="s-item s-item-4"></li>
<li class="s-item s-item-5"></li>
</ul>
<div class="s-control">
<label class="s-c-1" for="s-1"></label>
<label class="s-c-2" for="s-2"></label>
<label class="s-c-3" for="s-3"></label>
<label class="s-c-4" for="s-4"></label>
<label class="s-c-5" for="s-5"></label>
</div>
<div class="s-nav">
<label class="s-nav-1 right" for="s-2"></label>
<label class="s-nav-2 left" for="s-1"></label>
<label class="s-nav-2 right" for="s-3"></label>
<label class="s-nav-3 left" for="s-2"></label>
<label class="s-nav-3 right" for="s-4"></label>
<label class="s-nav-4 left" for="s-3"></label>
<label class="s-nav-4 right" for="s-5"></label>
<label class="s-nav-5 left" for="s-4"></label>
</div>
</div>
</div>
</body>

View file

@ -0,0 +1,10 @@
<!--
Copyright (c) 2017 by geekwen (http://codepen.io/geekwen/pen/QNxymm)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->

165
new/news/ticker/main.css Normal file
View file

@ -0,0 +1,165 @@
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
background-color: #1C2325;
color: #eee;
}
.outer-wrapper {
width: 100%;
height: 100%;
}
.s-wrap {
width: 100%;
margin-bottom: 0px;
padding-bottom: 55%;
position: relative;
border: 10px solid #fff;
background-color: #efefe8;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
overflow: hidden;
}
.s-wrap > input {
display: none;
}
.s-wrap .s-content {
margin: 0;
padding: 0;
position: absolute;
top: 0;
left: 0;
width: 500%;
height: 100%;
font-size: 0;
list-style: none;
transition: transform 1s;
}
.s-wrap .s-item {
display: inline-block;
width: 20%;
height: 100%;
background-repeat: no-repeat;
background-size: cover;
}
.s-wrap .s-item-1 {
background-image: url("https://images.unsplash.com/photo-1457369804613-52c61a468e7d?crop=entropy&fit=crop&fm=jpg&h=600&ixjsv=2.1.0&ixlib=rb-0.3.5&q=80&w=800");
}
.s-wrap .s-item-2 {
background-image: url("https://images.unsplash.com/photo-1456318019777-ccdc4d5b2396?crop=entropy&fit=crop&fm=jpg&h=600&ixjsv=2.1.0&ixlib=rb-0.3.5&q=80&w=800");
}
.s-wrap .s-item-3 {
background-image: url("https://images.unsplash.com/photo-1428189923803-e9801d464d76?crop=entropy&fit=crop&fm=jpg&h=600&ixjsv=2.1.0&ixlib=rb-0.3.5&q=80&w=800");
}
.s-wrap .s-item-4 {
background-image: url("https://images.unsplash.com/photo-1422393462206-207b0fbd8d6b?crop=entropy&fit=crop&fm=jpg&h=600&ixjsv=2.1.0&ixlib=rb-0.3.5&q=80&w=800");
}
.s-wrap .s-item-5 {
background-image: url("https://images.unsplash.com/photo-1439736637365-748f240b24fb?crop=entropy&fit=crop&fm=jpg&ixjsv=2.1.0&ixlib=rb-0.3.5&q=80&w=800");
}
.s-type-1 .s-control {
position: absolute;
bottom: 18px;
left: 50%;
text-align: center;
transform: translateX(-50%);
transition-timing-function: ease-out;
}
.s-type-1 .s-control > label[class^="s-c-"] {
display: inline-block;
width: 12px;
height: 12px;
margin-right: 10px;
border-radius: 50%;
border: 1px solid #999;
background-color: #efefe8;
cursor: pointer;
}
.s-type-1 .s-nav label {
display: none;
position: absolute;
top: 50%;
padding: 5px 10px;
transform: translateY(-50%);
cursor: pointer;
}
.s-type-1 .s-nav label::before, .s-type-1 .s-nav label::after {
content: "";
display: block;
width: 8px;
height: 24px;
background-color: #fff;
}
.s-type-1 .s-nav label::before {
margin-bottom: -12px;
}
.s-type-1 .s-nav label.left {
left: 20px;
}
.s-type-1 .s-nav label.left::before {
transform: rotate(45deg);
}
.s-type-1 .s-nav label.left::after {
transform: rotate(-45deg);
}
.s-type-1 .s-nav label.right {
right: 20px;
}
.s-type-1 .s-nav label.right::before {
transform: rotate(-45deg);
}
.s-type-1 .s-nav label.right::after {
transform: rotate(45deg);
}
.s-type-1 #s-1:checked ~ .s-content {
transform: translateX(0%);
}
.s-type-1 #s-1:checked ~ .s-control .s-c-1 {
background-color: #333;
}
.s-type-1 #s-1:checked ~ .s-nav .s-nav-1 {
display: block;
}
.s-type-1 #s-2:checked ~ .s-content {
transform: translateX(-20%);
}
.s-type-1 #s-2:checked ~ .s-control .s-c-2 {
background-color: #333;
}
.s-type-1 #s-2:checked ~ .s-nav .s-nav-2 {
display: block;
}
.s-type-1 #s-3:checked ~ .s-content {
transform: translateX(-40%);
}
.s-type-1 #s-3:checked ~ .s-control .s-c-3 {
background-color: #333;
}
.s-type-1 #s-3:checked ~ .s-nav .s-nav-3 {
display: block;
}
.s-type-1 #s-4:checked ~ .s-content {
transform: translateX(-60%);
}
.s-type-1 #s-4:checked ~ .s-control .s-c-4 {
background-color: #333;
}
.s-type-1 #s-4:checked ~ .s-nav .s-nav-4 {
display: block;
}
.s-type-1 #s-5:checked ~ .s-content {
transform: translateX(-80%);
}
.s-type-1 #s-5:checked ~ .s-control .s-c-5 {
background-color: #333;
}
.s-type-1 #s-5:checked ~ .s-nav .s-nav-5 {
display: block;
}