2 Commits
Author SHA1 Message Date
emil28092005 1232ac13ac try to do card zoom 2024-09-19 23:31:44 +03:00
emil28092005 8090456baa add updated version with BEM framework 2024-09-19 22:11:02 +03:00
7 changed files with 187 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 24.1.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
y="0px" viewBox="0 0 32 32" xml:space="preserve">
<g id="Layer_2" style="display:none;">
</g>
<g id="Layer_1">
<circle style="fill:none;stroke:#000000;stroke-width:2;stroke-miterlimit:10;" cx="16" cy="16" r="12"/>
<path style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;" d="M21.786,11
c-4.989-0.508-11.286,2.682-13.244,5.627c1.169,1.409,3.046,1.476,5.819,1.014c0.762,2.633,3.469,4.307,5.072,4.27
C21.27,20.308,22.521,13.439,21.786,11z"/>
<line style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;" x1="16.755" y1="15.434" x2="14.361" y2="17.641"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 914 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 949 B

+7
View File
@@ -0,0 +1,7 @@
let cards = document.querySelectorAll('.card');
let phrase = "ABOBA";
cards.addEventListener("click", function() {foo()})
function foo(){
document.querySelectorAll(".card__name").textContent = phrase;
}
+61
View File
File diff suppressed because one or more lines are too long
View File
View File
+104
View File
@@ -0,0 +1,104 @@
*{
box-sizing: border-box;
}
body ,header, section, footer{
margin: 0;
}
h1,h2,h3,h4,h5,h6,p{
text-shadow: black 4px 4px 3px;
margin: 0;
color: #e4c373;
font-family: 'MesloLGS NF', sans-serif;
}
h1 {
text-align: center;
font-weight: 600;
margin: 0;
}
p {
font-weight: 550;
}
.header {
text-align: center;
background-color: saddlebrown;
width: 100%;
}
.header__name {
color: #bdad60;
}
.header__description {
color: #bdad60;
line-height: 1;
margin-bottom: 1vh;
}
.header__image {
display: inline-block;
width: 95%;
}
.section {
width: 100%;
display: inline-block;
text-align: center;
padding: 25px;
justify-content: space-evenly;
background: radial-gradient(circle, rgba(164,126,10,1) 0%, rgba(139,69,19,1) 100%);
margin: 0 auto;
}
.card {
display: inline-block;
width: 300px;
height: 300px;
margin: 10px;
background-color: saddlebrown;
}
.card__name {
margin: 0;
text-align: center;
}
.card__image {
display: block;
margin: 0 auto ;
width: 90%;
border: solid 3px #2a1508;
}
.card__description {
margin: 0;
text-align: center;
}
.footer {
background-color: saddlebrown;
text-align: center;
height: 25vh;
width: 100%;
}
.header__image--framed{
border: solid 5px #2a1508;
box-shadow: 10px 10px 20px #2a1508;
}
.card--framed{
border: solid 5px #2a1508;
box-shadow: 10px 10px 20px #2a1508;
}
.footer--framed{
border: solid 5px #2a1508;
box-shadow: 10px 10px 20px #2a1508;
}