final designer
This commit is contained in:
150
css/style.css
150
css/style.css
@@ -1,112 +1,56 @@
|
||||
body{
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background-color: #f6faf7 ;
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: #dcf3d0;
|
||||
}
|
||||
|
||||
.h1header{
|
||||
height: 100px;
|
||||
line-height: 100px;
|
||||
background-color: #034956 ;
|
||||
color: #f6faf7;
|
||||
text-align: center;
|
||||
|
||||
header{
|
||||
box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
|
||||
}
|
||||
|
||||
.cards{
|
||||
width: 1200px;
|
||||
display: grid;
|
||||
grid-template-columns: auto auto auto;
|
||||
margin: 0 auto;
|
||||
|
||||
.h1header {
|
||||
margin: 0;
|
||||
background-color: #b5e9e9;
|
||||
height: 100px;
|
||||
line-height: 100px;
|
||||
text-align: center;
|
||||
color: #034956;
|
||||
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
|
||||
.col-4{
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
.card {
|
||||
--card-gradient: rgba(0, 0, 0, 0.8);
|
||||
--card-gradient: #5e9ad9, #e271ad;
|
||||
// --card-gradient: tomato, orange;
|
||||
--card-blend-mode: overlay;
|
||||
// --card-blend-mode: multiply;
|
||||
|
||||
background-color: #fff;
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: 0.05rem 0.1rem 0.3rem -0.03rem rgba(0, 0, 0, 0.45);
|
||||
padding-bottom: 1rem;
|
||||
background-image: linear-gradient(
|
||||
var(--card-gradient),
|
||||
white max(9.5rem, 27vh)
|
||||
);
|
||||
overflow: hidden;
|
||||
|
||||
img {
|
||||
border-radius: 0.5rem 0.5rem 0 0;
|
||||
width: 100%;
|
||||
object-fit: cover;
|
||||
// height: max(10rem, 25vh);
|
||||
max-height: max(10rem, 30vh);
|
||||
aspect-ratio: 4/3;
|
||||
mix-blend-mode: var(--card-blend-mode);
|
||||
// filter: grayscale(100);
|
||||
|
||||
~ * {
|
||||
margin-left: 1rem;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
> :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus-within {
|
||||
--card-gradient: #24a9d5 max(8.5rem, 20vh);
|
||||
}
|
||||
}
|
||||
|
||||
/* Additional demo display styles */
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
display: grid;
|
||||
/*place-content: center;*/
|
||||
justify-items: center;
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
padding: 1rem;
|
||||
line-height: 1.5;
|
||||
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir,
|
||||
helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial, sans-serif;
|
||||
color: #444;
|
||||
background-color: #e1faf1;
|
||||
}
|
||||
|
||||
.card h3 {
|
||||
margin-top: 1rem;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.card a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.card-wrapper {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(30ch, 1fr));
|
||||
grid-gap: 1.5rem;
|
||||
max-width: 100vw;
|
||||
width: 120ch;
|
||||
padding-left: 1rem;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
background-color: #fef6dd;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
|
||||
}
|
||||
|
||||
|
||||
.btn {
|
||||
|
||||
background-color: #ffe1d0;
|
||||
color: #034956;
|
||||
border: 2px solid #f26722;
|
||||
width: 100%;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
background-color: #fff1b5;
|
||||
color: #034956;
|
||||
border: 2px solid #034956;
|
||||
|
||||
}
|
||||
|
||||
.card-img-top{
|
||||
padding: 10px;
|
||||
border-radius: 18px;
|
||||
}
|
||||
249
index.html
249
index.html
@@ -2,47 +2,234 @@
|
||||
<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">
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<title>3d Detals</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||
integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<title>3d Detals</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<header>
|
||||
<h1 class="h1header"> Каталог печатных 3д деталей </h1>
|
||||
</header>
|
||||
|
||||
<div class="h1header">
|
||||
|
||||
<h1> Каталог печатных 3д деталей </h1>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-4">
|
||||
<div class="card">
|
||||
<img class="card-img-top" src="img/1.jpg" alt="1 image">
|
||||
<div class="card-body">
|
||||
|
||||
<dv class="row">
|
||||
<div class="col">
|
||||
<button class="btn btn-block">Скачать исходник</button>
|
||||
</div>
|
||||
<div class="col">
|
||||
<button class="btn btn-block">Скачать stl </button>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col d-flex justify-content-center">
|
||||
<input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
|
||||
<label class="form-check-label" for="flexCheckDefault">
|
||||
Напечатано
|
||||
</label>
|
||||
</div>
|
||||
<div class="col d-flex justify-content-center">
|
||||
<h5> 10.12.2004 </h5>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
<div class="card">
|
||||
<img class="card-img-top" src="img/2.jpg" alt="1 image">
|
||||
<div class="card-body">
|
||||
|
||||
<dv class="row">
|
||||
<div class="col">
|
||||
<button class="btn btn-block">Скачать исходник</button>
|
||||
</div>
|
||||
<div class="col">
|
||||
<button class="btn btn-block">Скачать stl </button>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col d-flex justify-content-center">
|
||||
<input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
|
||||
<label class="form-check-label" for="flexCheckDefault">
|
||||
Напечатано
|
||||
</label>
|
||||
</div>
|
||||
<div class="col d-flex justify-content-center">
|
||||
<h5> 10.12.2004 </h5>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
<div class="card">
|
||||
<img class="card-img-top" src="img/3.jpg" alt="1 image">
|
||||
<div class="card-body">
|
||||
|
||||
<dv class="row">
|
||||
<div class="col">
|
||||
<button class="btn btn-block">Скачать исходник</button>
|
||||
</div>
|
||||
<div class="col">
|
||||
<button class="btn btn-block">Скачать stl </button>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col d-flex justify-content-center">
|
||||
<input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
|
||||
<label class="form-check-label" for="flexCheckDefault">
|
||||
Напечатано
|
||||
</label>
|
||||
</div>
|
||||
<div class="col d-flex justify-content-center">
|
||||
<h5> 10.12.2004 </h5>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</header>
|
||||
<div class="col-4">
|
||||
<div class="card">
|
||||
<img class="card-img-top" src="img/3.jpg" alt="1 image">
|
||||
<div class="card-body">
|
||||
|
||||
<dv class="row">
|
||||
<div class="col">
|
||||
<button class="btn btn-block">Скачать исходник</button>
|
||||
</div>
|
||||
<div class="col">
|
||||
<button class="btn btn-block">Скачать stl </button>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col d-flex justify-content-center">
|
||||
<input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
|
||||
<label class="form-check-label" for="flexCheckDefault">
|
||||
Напечатано
|
||||
</label>
|
||||
</div>
|
||||
<div class="col d-flex justify-content-center">
|
||||
<h5> 10.12.2004 </h5>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<ul class="card-wrapper">
|
||||
<li class="card">
|
||||
<img src='https://images.unsplash.com/photo-1611916656173-875e4277bea6?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MXwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHw&ixlib=rb-1.2.1&q=80&w=400' alt=''>
|
||||
<h3><a href="">A Super Wonderful Headline</a></h3>
|
||||
<p>Lorem ipsum sit dolor amit</p>
|
||||
</li>
|
||||
<li class="card">
|
||||
<img src='https://images.unsplash.com/photo-1611083360739-bdad6e0eb1fa?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MXwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHw&ixlib=rb-1.2.1&q=80&w=400' alt=''>
|
||||
<h3><a href="">What a Fantabulous Title!</a></h3>
|
||||
<p>Lorem ipsum sit dolor amit</p>
|
||||
</li>
|
||||
<li class="card">
|
||||
<img src='https://images.unsplash.com/photo-1613230485186-2e7e0fca1253?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MXwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHw&ixlib=rb-1.2.1&q=80&w=400' alt=''>
|
||||
<h3><a href="">Positively Terrific Title</a></h3>
|
||||
<p>Lorem ipsum sit dolor amit</p>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="col-4">
|
||||
<div class="card">
|
||||
<img class="card-img-top" src="img/3.jpg" alt="1 image">
|
||||
<div class="card-body">
|
||||
|
||||
<dv class="row">
|
||||
<div class="col">
|
||||
<button class="btn btn-block">Скачать исходник</button>
|
||||
</div>
|
||||
<div class="col">
|
||||
<button class="btn btn-block">Скачать stl </button>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col d-flex justify-content-center">
|
||||
<input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
|
||||
<label class="form-check-label" for="flexCheckDefault">
|
||||
Напечатано
|
||||
</label>
|
||||
</div>
|
||||
<div class="col d-flex justify-content-center">
|
||||
<h5> 10.12.2004 </h5>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-4">
|
||||
<div class="card">
|
||||
<img class="card-img-top" src="img/3.jpg" alt="1 image">
|
||||
<div class="card-body">
|
||||
|
||||
<dv class="row">
|
||||
<div class="col">
|
||||
<button class="btn btn-block">Скачать исходник</button>
|
||||
</div>
|
||||
<div class="col">
|
||||
<button class="btn btn-block">Скачать stl </button>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col d-flex justify-content-center">
|
||||
<input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
|
||||
<label class="form-check-label" for="flexCheckDefault">
|
||||
Напечатано
|
||||
</label>
|
||||
</div>
|
||||
<div class="col d-flex justify-content-center">
|
||||
<h5> 10.12.2004 </h5>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script src="js/script.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3"
|
||||
crossorigin="anonymous"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user