5 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
Эмиль c596e4764a hz 2024-08-23 19:03:28 +03:00
emil 482029ed76 new commit 2024-08-23 02:03:46 +03:00
emil 3c4917138e initial commit 2024-08-23 01:09:55 +03:00
9 changed files with 194 additions and 46 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/emil28092005.github.io.iml" filepath="$PROJECT_DIR$/.idea/emil28092005.github.io.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/Pereslavl_dacha.iml" filepath="$PROJECT_DIR$/.idea/Pereslavl_dacha.iml" />
</modules>
</component>
</project>
Generated
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
-1
View File
@@ -1 +0,0 @@
+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;
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+82
View File
@@ -0,0 +1,82 @@
*{
box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
p{
margin: 0;
font-weight: normal;
background-color: red;
font-family: 'Sans', sans-serif;
}
div, header, main, footer {
margin: 0;
}
p {
}
.main-preview {
text-align: center;
background-color: blue;
width: 100%;
height: 80vh;
}
.main-preview-image {
height: 100%;
}
section{
background-color: darkred;
margin: auto;
text-align: center;
width: 100%;
}
.card {
display: block;
background-color: saddlebrown;
margin: 20px 0 20px 0;
padding: 20px;
height: 600px;
width: 80%;
border: 1px solid lightgray;
}
.snap-left{
margin-right: auto;
}
.snap-right{
margin-left: auto;
}
.card-description {
}
.card-head-block{
display: inline-block;
text-align: center;
background-color: orange;
width: 30%;
}
.card-description-box {
height: 80%;
width: 30%;
display: inline-block;
background-color: white;
margin: 0 auto 0 auto;
}
.card-image{
display: block;
width: 100%;
}
+18 -9
View File
@@ -31,17 +31,17 @@ p {
width: 100%;
}
.header-name {
.header__name {
color: #bdad60;
}
.header-description {
.header__description {
color: #bdad60;
line-height: 1;
margin-bottom: 1vh;
}
.header-image {
.header__image {
display: inline-block;
width: 95%;
@@ -65,19 +65,19 @@ p {
background-color: saddlebrown;
}
.card-name {
.card__name {
margin: 0;
text-align: center;
}
.card-image {
.card__image {
display: block;
margin: 0 auto;
margin: 0 auto ;
width: 90%;
border: solid 3px #2a1508;
}
.card-description {
.card__description {
margin: 0;
text-align: center;
}
@@ -85,11 +85,20 @@ p {
.footer {
background-color: saddlebrown;
text-align: center;
height: 22vh;
height: 25vh;
width: 100%;
}
.fancy-external-border{
.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;
}