<!DOCTYPE HTML>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link href="https://fonts.googleapis.com/css?family=Noto+Sans:400,700&subset=latin-ext&display=swap" rel="stylesheet">
function random()
{
var tekst = [
"Za konstruktora pierwszego samochodu uznaje się Carla Benza, który w 1885 roku zbudował samochód trójkołowy z jednocylindrowym czterosuwowym silnikiem benzynowym Gottlieba Daimlera.",
"Rolls-Royce Motor Cars to brytyjski producent samochodów luksusowych, sportowych i SUV-ów z siedzibą w Goodwood działający od 1906 roku.",
];
var losowy = tekst[Math.floor(Math.random()*tekst.length)]
document.getElementById("randomtext").innerHTML = losowy;
setTimeout("random()",5000);
};
body {
margin: 0;
padding: 0;
font-family: 'Noto Sans';
}
.navbar {
position: fixed;
display: flex;
justify-content: center;
align-items: center;
flex-direction: row;
flex-wrap: wrap;
background-color: #fff;
width: 100%;
height: 80px;
z-index: 1;
}
.nav {
display: flex;
justify-content: right;
list-style: none;
margin-right: 10%;
}
.logo {
flex: 1 1 auto;
margin-left: 10%;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: bold;
font-size: 30px;
}
a {
margin: 15px;
color: rgba(0,0,0,0.6);
text-decoration: none;
text-transform: uppercase;
transition: color 0.2s;
}
ul a:hover {
color: rgba(0,0,0,1);
}
#slider {
position: relative;
background-image: url(black.jpg);
width: 100%;
height: 70vh;
background-repeat: no-repeat;
-webkit-background-size: cover;
background-size: cover;
}
#slider2 {
position: relative;
background-image: url(black.jpg);
width: 100%;
height: 30vh;
background-repeat: no-repeat;
-webkit-background-size: cover;
background-size: cover;
}
.container {
position: relative;
text-align: center;
color: white;
font-size: 24px;
}
.text-over-image {
width: 100%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-transform: uppercase;
}
.text-over-image2 {
width: 100%;
position: absolute;
top: 60%;
left: 50%;
transform: translate(-50%, -50%);
text-transform: uppercase;
}
.container h1 {
margin-bottom: 10px;
color: white;
}
.container a {
color: white;
background-color: #E50000;
padding: 20px 40px;
transition: color 0.4s, background-color 0.4s;
font-size: 18px;
}
.container a:hover {
color: black;
background-color: white;
}
.ciekawostka {
margin-left: auto;
margin-right: auto;
text-align: center;
background-color: white;
font-size: 24px;
padding: 60px 0;
color: black;
width: 95%;
}
.ciekawostka h1 {
font-size: 28px;
margin: 0 0 20px 0;
padding: 0;
}
#randomtext {
}
.about-area, .portfolio-area{
position: relative;
display: flex;
justify-content: space-around;
align-items: center;
flex-wrap: wrap;
flex-direction: row;
width: 100%;
}
.text-part {
width: 65%;
padding: 50px 0;
}
h1 {
font-size: 50px;
text-align: center;
color: #000;
text-transform: uppercase;
}
p {
font-size: 24px;
line-height: 40px;
}
.about-area, .footer{
background-color: black;
color: white;
}
.about-area h1 {
color: white;
}
.services-area h1 {
color: white;
}
html {
scroll-behavior: smooth;
}
.group {
width: 1000px;
margin-bottom: 50px;
}
.leftside {
width: 300px;
float: left;
margin-right: 50px;
opacity: 0.8;
transition: opacity 0.2s;
}
.leftside:hover {
opacity: 1;
}
.middleside {
width: 300px;
float: left;
margin-right: 50px;
opacity: 0.8;
transition: opacity 0.2s;
}
.middleside:hover {
opacity: 1;
}
.rightside {
width: 300px;
float: left;
opacity: 0.8;
transition: opacity 0.2s;
}
.rightside:hover {
opacity: 1;
}
.group img {
width: 100%;
}
.ciekawostka2 {
width: 100%;
padding: 40px 0;
background-color: white;
margin-bottom: 40px;
}
.ciekawostka-last {
width: 100%;
padding: 40px 0;
background-color: white;
margin: 0;
}
.area {
margin: 0 auto;
width: 1000px;
}
.image {
width: 400px;
float: left;
}
.image img {
width: 100%;
}
.text {
width: 560px;
height: 400px;
float: left;
margin-left: 40px;
}
.title {
}
.title h1 {
margin: 0;
padding: 0;
text-transform: uppercase;
font-size: 40px;
text-align: left;
}
.content {
font-size: 20px;
}
.ciekawostka2 p {
font-size: 24px;
line-height: 36px;
}
.ciekawostka-last p {
font-size: 24px;
line-height: 36px;
}
.footer {
text-align: center;
padding: 30px 0;
}
<body onload="random();">
<a href="index.html" class="logo">Motoryzacja
</a>
<li><a href="index.html">Strona Główna
</a></li>
<li><a href="ciekawostki.html">Ciekawostki
</a></li>
<div class="text-over-image">
<h1>Motoryzacja moją pasją
</h1>
Ciekawostki i nie tylko
<br><br><br><br>
<a href="#">Czytaj więcej
</a>
<div class="ciekawostka">
<h1>Czy wiesz, że...
</h1>
<h1>Wyróżnione kolekcje
</h1>
<a href="#"><img src="car1.png"></a>
<a href="#"><img src="car1.png"></a>
<a href="#"><img src="car1.png"></a>
<div style="clear:both;"></div>
<a href="#"><img src="car1.png"></a>
<a href="#"><img src="car1.png"></a>
<a href="#"><img src="car1.png"></a>
<div style="clear:both;"></div>
<div class="portfolio-area">
<h1>Krótko i zwięźle...
</h1>
Jeśli interesujesz się samochodami, motocyklami, ciągnikami itp. to ta strona jest właśnie dla Ciebie. Na tej stronie znajdziesz
<span style="font-weight: bold;">wiele ciekawych informacji
</span> o motoryzacji, zobaczysz odpowiedzi na najczęściej zadawane pytania i odkryjesz
<span style="font-weight: bold;">nowe ciekawostki
</span>. Zastanawiałeś się kiedyś czym jeździ prezydent Polski? A może chciałbyś się dowiedzieć skąd wzięły się nazwy najpopularniejszych marek samochodów. To i wiele więcej znajdziesz na tej stronie.
Wszelkie prawa zastrzeżone © 2020
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}