-
Notifications
You must be signed in to change notification settings - Fork 0
Add files for homework-2 #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Matthew-Guba
wants to merge
1
commit into
main
Choose a base branch
from
Homework-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="ru"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Карточка пользователя - Flexbox</title> | ||
<link rel="stylesheet" href="./sylesheet.css"> | ||
</head> | ||
<body> | ||
<div class="card"> | ||
<div class="card-container"> | ||
<img src="./avatar.jpg" alt="Аватар пользователя" class="avatar"> | ||
<div class="user-info"> | ||
<h2 class="user-name">Matthew Gubanov</h2> | ||
<p class="user-position">Learner of html/css/js</p> | ||
<p class="user-description">Learning different programming languages and studying in college</p> | ||
</div> | ||
<button class="subscribe-btn" onclick="window.location.href='https://github.com/matthew-guba'">Subsribe)</button> <!-- Just another reminder of me)--> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | ||
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); | ||
min-height: 100vh; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 20px; | ||
} | ||
|
||
.card { | ||
background-color: white; | ||
border-radius: 16px; | ||
max-width: 800px; | ||
width: 100%; | ||
} | ||
|
||
.card-container { | ||
display: flex; | ||
align-items: center; | ||
padding: 30px; | ||
} | ||
|
||
.avatar { | ||
width: 120px; | ||
height: 120px; | ||
border: 4px solid #777373; | ||
} | ||
|
||
.user-info { | ||
margin-left: 25px; | ||
} | ||
|
||
.user-name { | ||
font-size: 24px; | ||
font-weight: 700; | ||
color: #2c3e50; | ||
margin-bottom: 5px; | ||
} | ||
|
||
.user-position { | ||
font-size: 18px; | ||
color: #7f8c8d; | ||
margin-bottom: 12px; | ||
} | ||
|
||
.user-description { | ||
color: #34495e; | ||
line-height: 1.5; | ||
margin-bottom: 15px; | ||
} | ||
|
||
.subscribe-btn { | ||
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); | ||
color: white; | ||
border: none; | ||
padding: 12px 25px; | ||
border-radius: 30px; | ||
font-weight: 600; | ||
font-size: 16px; | ||
transition: transform 0.2s, box-shadow 0.2s; /* <--- this thing wasn't made by myself, just wanted smth beautiful))*/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. респект! |
||
margin-left: auto; | ||
} | ||
/*the same for the hover)*/ | ||
.subscribe-btn:hover { | ||
transform: translateY(-2px); | ||
box-shadow: 0 5px 15px rgba(38, 117, 252, 0.4); | ||
} | ||
|
||
/* now it is adaptive for mobile devices :) */ | ||
@media (max-width: 768px) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. респект |
||
.card-container { | ||
flex-direction: column; | ||
text-align: center; | ||
padding: 25px; | ||
} | ||
|
||
.avatar { | ||
margin-bottom: 20px; | ||
width: 140px; | ||
height: 140px; | ||
} | ||
|
||
.user-info { | ||
margin-left: 0; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.subscribe-btn { | ||
margin-left: 0; | ||
width: 100%; | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!DOCTYPE html> | ||
<html lang="ru"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Photogallery in style of Pinterest</title> | ||
<link rel="stylesheet" href="./stylesheet.css"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>My photogallery</h1> | ||
<p>P.S.: Inspired by Pinterest</p> | ||
|
||
<div class="gallery"> | ||
<div class="gallery-item"> | ||
<img src="./beautifulEveningView.jpg" alt="Evening view"> | ||
<div class="caption">Gorgeus gradient of sunset</div> | ||
</div> | ||
|
||
<div class="gallery-item"> | ||
<img src="./bloodMoon.jpg" alt="Blood Moon"> | ||
<div class="caption">Cool detailed picture of bloody-red moon</div> | ||
</div> | ||
|
||
<div class="gallery-item"> | ||
<img src="./coolSunRays.jpg" alt="Sun rays through green tree leafes"> | ||
<div class="caption">Beautiful rays of sun falling through green leafes</div> | ||
</div> | ||
|
||
<div class="gallery-item"> | ||
<img src="./darkNightSky.jpg" alt="Night sky"> | ||
<div class="caption">Dark blue night sky with cool gradient</div> | ||
</div> | ||
|
||
<div class="gallery-item"> | ||
<img src="./beautifulField.jpg" alt="Weat ear"> | ||
<div class="caption">Wheat ear with good respective</div> | ||
</div> | ||
|
||
<div class="gallery-item"> | ||
<img src="./morningWithTheMoon.jpg" alt="Buildings with sunrays and the Moon"> | ||
<div class="caption">Amazing respective with sunrays falling on the buildings and shining Moon</div> | ||
</div> | ||
|
||
<div class="gallery-item"> | ||
<img src="./NightOutletoPic.jpg" alt="Picture of Shopping Mall "Outleto""> | ||
<div class="caption">Night picture of Outleto from 13th floor</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | ||
background-color: #f0c0e4; | ||
color: #1d1d1d; | ||
line-height: 1.6; | ||
padding: 20px; | ||
} | ||
|
||
.container { | ||
max-width: 1200px; | ||
margin: 0 auto; | ||
} | ||
|
||
h1 { | ||
text-align: center; | ||
margin: 30px 0 10px; | ||
color: #1a1a1a; | ||
font-size: 2.5rem; | ||
} | ||
|
||
.container > p { | ||
text-align: center; | ||
margin-bottom: 40px; | ||
color: #666; | ||
font-size: 1.1rem; | ||
} | ||
|
||
.gallery { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); | ||
gap: 16px; | ||
} | ||
|
||
.gallery-item { | ||
background: rgb(255, 255, 255); | ||
border-radius: 12px; | ||
overflow: hidden; | ||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | ||
transition: transform 0.3s ease, box-shadow 0.3s ease; | ||
} | ||
|
||
.gallery-item:hover { | ||
transform: translateY(-5px); | ||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); | ||
} | ||
|
||
.gallery-item img { | ||
width: 100%; | ||
height: auto; | ||
display: block; | ||
transition: transform 0.5s ease; | ||
} | ||
|
||
.gallery-item:hover img { | ||
transform: scale(1.03); | ||
} | ||
|
||
|
||
.caption { | ||
padding: 15px; | ||
font-size: 0.95rem; | ||
color: #333; | ||
background: white; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
.gallery { | ||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); | ||
} | ||
|
||
h1 { | ||
font-size: 2rem; | ||
} | ||
} | ||
|
||
@media (max-width: 480px) { | ||
.gallery { | ||
grid-template-columns: 1fr; | ||
} | ||
|
||
body { | ||
padding: 10px; | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ой не делай так больше))
<a href="https://github.com/matthew-guba">Subsribe</a>
переход по страницам только по тегу
a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
где ты нашёл такую реализацию?))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just googled. Yeah, i know its bad, but ive forgotten how to do it using , so i googled