Академический Документы
Профессиональный Документы
Культура Документы
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Магазин часов</title>
<div class="box2">
<ul class="menu">
<li><a href="">Домой</a></li>
<li><a href="onas.html">O нас</a></li>
<li><a href="gal.html">Галерея</a></li>
<li><a href="link">Свяжитесь c нами</a></li>
</ul>
</div>
<div class="box3">
<ul class="menu1">
<li><a
href="https://www.facebook.com/WatchShop/">FACEBOOK</a></li>
<li><a
href="https://www.youtube.com/@WatchShopOfficial">YOUTUBE</a></li>
<li><a
href="https://www.instagram.com/watchshopofficial/">INSTAGRAM</a></li>
<li><a href="https://twitter.com/WatchShop?ref_src=twsrc
%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor">TWITTER</a></li>
</ul>
</div>
<div class="black"></div>
<div class="white"></div>
<div class="box4">
<div class="txt">МАГАЗИН МУЖСКИХ - МАГАЗИН ЖЕНСКИХ - ПОДАРОЧНЫЕ
КОРОБКИ - ЕЩЕ</div>
</div>
<img src="img/logo.png" class="logo">
<div class="product">
<img src="img/wat1.png" class="prod">
<div class="tx">КЛАССИЧЕСКАЯ СЕРИЯ-45MM</div>
<div class="tx1">ЧЕРНО/БЕЛЫЙ</div>
<div class="group">
<div class="us">USD</div>
<div class="usd">$100.00</div>
<div class="description">Мужские часы MVMT, эти часы
являются частью
Классическая коллекция. Циферблат этих часов
измеряет 45 мм в диаметре. Движение этого
часы работают от кварцевой батарейки. Эти часы - вода
стойкость до 30 метров.
</div>
<div class="but"><a href="buy.html"
class="button">Купить</a></div>
</div>
</div>
</body>
</html>
main.css:
*,
::before,
::after {
box-sizing: border-box;
}
::-webkit-scrollbar {
width: 0;
}
body {
margin: 0;
overflow: hidden;
font-family: 'Inter', sans-serif;
}
.glavblock{
position: relative;
width: 1920px;
height: 1080px;
background: #2F2F2F;
}
.red{
position: absolute;
width: 1011px;
height: 2201.79px;
left: -500px;
top: -823px;
background: #F31E2E;
transform: rotate(32deg);
}
/* Box 1 start */
.box1{
display: flex;
flex-direction: row;
align-items: flex-start;
padding: 0px;
gap: 32px;
position: absolute;
width: 185px;
height: 35px;
left: 1280px;
top: 44px;
}
.person{
width: 35px;
height: 35px;
flex: none;
order: 0;
flex-grow: 0;
}
.search{
width: 35px;
height: 35px;
flex: none;
order: 1;
flex-grow: 0;
}
.korzina{
width: 35px;
height: 35px;
flex: none;
order: 2;
flex-grow: 0;
}
/* Box 1 end */
/* Box 2 start */
.box2{
position: absolute;
width: 639px;
height: 27px;
left: 680px;
top: 48px;
}
.menu{
margin: 0;
padding: 0;
list-style: none;
}
.menu li{
float: left;
}
.menu li a{
color: white;
display: block;
padding: 0 30px;
text-transform: uppercase;
text-decoration: none;
}
.menu li a:hover{
color: rgb(0, 242, 255);
}
/* Box 2 start end*/
Buy.html:
<link rel="stylesheet" href="https://bootstraptema.ru/plugins/2015/bootstrap3/bootstrap.min.css" />
<style>
.credit-card-div span {
padding-top:10px;
}
.credit-card-div img {
padding-top:30px;
}
.credit-card-div .small-font {
font-size:9px;
}
.credit-card-div .pad-adjust {
padding-top:10px;
}
</style>
<div class="container">
<div class="row ">
<div class="col-md-4 col-md-offset-4">
<div class="credit-card-div">
<div class="panel panel-default" >
<div class="panel-heading">
<div class="row">
<div class="col-md-12 pad-adjust">
<div class="checkbox">
<label>
<input type="checkbox" checked class="text-muted"> Save details for fast payments <a href="#">
learn how ?</a>
</label>
</div>
</div>
</div>
</div>
</div>
</div><!-- ./credit-card-div -->
</div>
</div>
</div><!-- /.container -->
Gal.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gallery</title>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-
popup.css">
<link rel="stylesheet" href="gal.css">
</head>
<body>
<section class="gallery">
<h2 class="title">Галерея</h2>
<div class="gallery-list">
<a href="gal/1.jpg" class="gallery-item">
<div class="gallery-item-hover">Посмотреть</div>
<img src="gal/1.jpg" alt="alt">
</a>
<a href="gal/2.png" class="gallery-item">
<div class="gallery-item-hover">Посмотреть</div>
<img src="gal/2.png" alt="alt">
</a>
<a href="gal/3.jpg" class="gallery-item">
<div class="gallery-item-hover">Посмотреть</div>
<img src="gal/3.jpg" alt="alt">
</a>
<a href="gal/5.jpg" class="gallery-item">
<div class="gallery-item-hover">Посмотреть</div>
<img src="gal/5.jpg" alt="alt">
</a>
<a href="gal/4.jpg" class="gallery-item">
<div class="gallery-item-hover">Посмотреть</div>
<img src="gal/4.jpg" alt="alt">
</a>
<a href="gal/7.jpg" class="gallery-item">
<div class="gallery-item-hover">Посмотреть</div>
<img src="gal/7.jpg" alt="alt">
</a>
<a href="gal/8.jpg" class="gallery-item">
<div class="gallery-item-hover">Посмотреть</div>
<img src="gal/8.jpg" alt="alt">
</a>
<a href="gal/2.png" class="gallery-item">
<div class="gallery-item-hover">Посмотреть</div>
<img src="gal/2.png" alt="alt">
</a>
</div>
</section>
<div class="box2">
<ul class="menu">
<li><a href="index.html">Домой</a></li>
<li><a href="onas.html">O нас</a></li>
<li><a href="">Галерея</a></li>
<li><a href="link">Свяжитесь c нами</a></li>
</ul>
</div>
</body>
</html>
Gal.css:
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
position: relative;
font-family: 'Montserrat', sans-serif;
}
section.gallery{
position: relative;
padding: 45px 0;
}
h2.title{
font-size: 44px;
font-weight: bold;
text-align: center;
padding-bottom: 45px;
position: relative;
}
h2.title:after{
content: "";
position: absolute;
width: 100px;
height: 3px;
background-color: #111111;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
}
.gallery-list{
position: relative;
display: flex;
flex-wrap: wrap;
overflow: hidden;
font-size: 0;
margin-top: 30px;
}
.gallery-item{
display: block;
flex: 25%;
overflow: hidden;
position: relative;
}
.gallery-item-hover{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,.7);
color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
font-size: 16px;
opacity: 0;
transition: opacity .5s ease;
z-index: 2;
}
.gallery-item:hover .gallery-item-hover{
opacity: 1;
}
.gallery-item:hover img{
transform: scale(1.3) rotate(5deg);
}
.gallery-item img{
max-width: 100%;
height: auto;
transition: all .5s ease;
}
@media (max-width: 991px){
.gallery-item{
flex: 33.3%;
}
}
@media (max-width: 768px){
.gallery-item{
flex: 50%;
}
}
@media (max-width: 530px){
.gallery-item{
flex: 100%;
}
}
.box2{
position: absolute;
width: 639px;
height: 27px;
left: 880px;
top: 48px;
}
.menu{
margin: 0;
padding: 0;
list-style: none;
}
.menu li{
float: left;
}
.menu li a{
color: rgb(0, 0, 0);
display: block;
padding: 0 30px;
text-transform: uppercase;
text-decoration: none;
}
.menu li a:hover{
color: rgb(0, 242, 255);
}
Login.html:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="login.css">
<title>Login/Registration</title>
<style>
</style>
</head>
<body>
<label for="email"><b>Email</b></label>
<input type="text" placeholder="Enter Email" name="EMAILL" required>
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="PASSWORRD" required>
Login.css:
body {
font-family: Arial, Helvetica, sans-serif;
background-color: black;
}
*{
box-sizing: border-box;
}
.container {
padding: 16px;
background-color: white;
}
input[type=text], input[type=password] {
width: 100%;
padding: 15px;
margin: 5px 0 22px 0;
display: inline-block;
border: none;
background: #f1f1f1;
}
input[type=text]:focus, input[type=password]:focus {
background-color: #ddd;
outline: none;
}
hr {
border: 1px solid #f1f1f1;
margin-bottom: 25px;
}
.registerbtn {
background-color: #ff0000;
color: white;
padding: 16px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
opacity: 0.9;
}
.registerbtn:hover {
opacity: 1;
}
a{
color: dodgerblue;
}
.signin {
background-color: #f1f1f1;
text-align: center;
}
.home{
position: absolute;
color: black;
Login.php:
<?php
if (isset($_POST['submit'])) {
$EMAILL = $_POST['EMAILL'];
$PASSWORRD = $_POST['PASSWORRD'];
print_r($user);
exit();
$stmt->close();
$conn->close();
?>
Onas.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Магазин часов</title>
<div class="box2">
<ul class="menu">
<li><a href="index.html">Домой</a></li>
<li><a href="">O нас</a></li>
<li><a href="gal.html">Галерея</a></li>
<li><a href="link">Свяжитесь c нами</a></li>
</ul>
</div>
<div class="box3">
<ul class="menu1">
<li><a href="link">FACEBOOK</a></li>
<li><a href="link">YOUTUBE</a></li>
<li><a href="link">INSTAGRAM</a></li>
<li><a href="link">TWITTER</a></li>
</ul>
</div>
<div class="on">Компания основана в 1905 году немцем Гансом Вильсдорфом и его зятем
Альфредом Дави (Alfred Davis) как компания Wilsdorf and Davis, которая затем станет
компанией MVMT SA, в Лондоне, Англия[1]. В 1908 году Вильсдорф зарегистрировал товарный
знак "MVMT" и открыл офис в Ла-Шо-де-Фоне, Швейцария[1]. Компания "MVMT" была
зарегистрирована 15 ноября 1915 года
Вся история MVMT неразрывно связана с дальновидностью ее основателя Ганса
Вильсдорфа. В 1905 году 24-летний Вильсдорф основывает в Лондоне компанию по сбыту
часов. Он мечтает о том, чтобы носить часы на руке. Наручные часы того времени не
отличались точностью, однако Ганс Вильсдорф предвидит, что их можно сделать не только
элегантными, но и надежными.
Основное внимание конструкторы MVMT уделили качеству часовых механизмов.
Беспрестанная погоня за хронометрической точностью вскоре увенчалась успехом: в 1910 году
часы MVMT стали первыми наручными часами, которые получили Сертификат
хронометрической точности, выданный швейцарским Комитетом оценки часов в Бьенне.
Спустя четыре года обсерватория в Кью (Великобритания) присвоила наручным часам
MVMT класс точности «A», который прежде оставался прерогативой морских хронометров. С
того самого времени наручные часы MVMT неизменно ассоциируются с точностью.
MVMT переезжает в Женеву, признанную часовую столицу мира. Компания Montres MVMT
S.A. регистрируется в Женеве в 1920 году.</div>
</div>
</body>
</html>
Onas.css:
*,
::before,
::after {
box-sizing: border-box;
}
::-webkit-scrollbar {
width: 0;
}
body {
margin: 0;
overflow: hidden;
font-family: 'Inter', sans-serif;
}
.glavblock{
position: relative;
width: 1920px;
height: 1080px;
background: #2F2F2F;
}
.red{
position: absolute;
width: 1011px;
height: 2201.79px;
left: -500px;
top: -823px;
background: #F31E2E;
transform: rotate(32deg);
}
/* Box 1 start */
.box1{
display: flex;
flex-direction: row;
align-items: flex-start;
padding: 0px;
gap: 32px;
position: absolute;
width: 185px;
height: 35px;
left: 1280px;
top: 44px;
}
.person{
width: 35px;
height: 35px;
flex: none;
order: 0;
flex-grow: 0;
}
.search{
width: 35px;
height: 35px;
flex: none;
order: 1;
flex-grow: 0;
}
.korzina{
width: 35px;
height: 35px;
flex: none;
order: 2;
flex-grow: 0;
}
/* Box 1 end */
/* Box 2 start */
.box2{
position: absolute;
width: 639px;
height: 27px;
left: 680px;
top: 48px;
}
.menu{
margin: 0;
padding: 0;
list-style: none;
}
.menu li{
float: left;
}
.menu li a{
color: white;
display: block;
padding: 0 30px;
text-transform: uppercase;
text-decoration: none;
}
.menu li a:hover{
color: rgb(0, 242, 255);
}
/* Box 2 start end*/
Regist.html:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="regist.css">
<title>Login/Registration</title>
<style>
</style>
</head>
<body>
<label for="email"><b>Email</b></label>
<input type="text" placeholder="Enter Email" name="EMAILL" required>
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="PASSWORRD" required>
Regist.css:
body {
font-family: Arial, Helvetica, sans-serif;
background-color: black;
}
*{
box-sizing: border-box;
}
.container {
padding: 16px;
background-color: white;
}
input[type=text], input[type=password] {
width: 100%;
padding: 15px;
margin: 5px 0 22px 0;
display: inline-block;
border: none;
background: #f1f1f1;
}
input[type=text]:focus, input[type=password]:focus {
background-color: #ddd;
outline: none;
}
hr {
border: 1px solid #f1f1f1;
margin-bottom: 25px;
}
.registerbtn {
background-color: #ff0000;
color: white;
padding: 16px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
opacity: 0.9;
}
.registerbtn:hover {
opacity: 1;
}
a{
color: dodgerblue;
}
.signin {
background-color: #f1f1f1;
text-align: center;
}
.home{
position: absolute;
color: black;
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "reg";
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);}
//Daca lungimea email/parola este mai mic decat 5 sau mai mare
decat 90 ne va da eroare
if(mb_strlen($EMAILL) < 5 || mb_strlen($EMAILL) > 90) {
echo "Длина адреса не допустима";
exit();
} else if(mb_strlen($PASSWORRD) < 2 || mb_strlen($PASSWORRD) > 12)
{
echo "Длина пароля не допустима";
exit();
}
}
$EMAILL = "EMAILL";
$PASSWORRD = "PASSWORRD";
$PASSWORDD = "PASSWORDD";
$stmt->execute();
echo "Успешно";
$stmt->close();
$conn->close();
?>