Skip to content
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

Part1and2 #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions frontEnd.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
Binary file added images/face.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/git-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tg-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/vk-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Curriculum vitae</title>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<div class="main-card">
<div class="left-part">
<img class="photo" src="images/face.jpg" alt="photo"/>
<div class="employee_FIO">
Alex Smith
</div>
<div class="employee_speciality">
Web Designer
</div>
<div class="social-networks">
<a href="https://www.vk.com/coradead">
<img src="images/vk-logo.png" height="24" alt="vk-logo">
</a>
<a href="https://www.telegram.me/coradead">
<img src="images/tg-logo.png" height="24" alt="telegram-logo">
</a>
<a href="https://www.github.com/coradead">
<img src="images/git-logo.png" height="24" alt="github-logo">
</a>
</div>
<button class="button">
Download CV
</button>
<footer class="copyright">
&#169 2021 All rights reserved.
</footer>
</div>
<div class="right-part">
<b class="employee_name">Alex Smith</b>
<section class="employee_position">Web Designer</section>
</div>
</div>
</body>
</html>
117 changes: 117 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
body {
background-color: #000000;
}
.main-card {
position: absolute;
width: 1127px;
height: 595px;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);

display: flex;
align-items: stretch;

background: #444444;
border-radius: 30px;

font-family: Helvetica, sans-serif;
font-style: normal;
font-weight: normal;

}

.left-part {
display: flex;
height: 595px;
width: 380px;
flex-direction: column;
justify-content: flex-start;
align-items: center;
}

.photo{
display: flex;
width: 180px;
height: 180px;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

из-за задания жесткого размера фотографии искажаются пропорции
image

МОжно поменять img на div и поставить фото на background, в таком случае пропорции искажаться не будут
image

margin-top: 70px;
border-radius: 50%;
box-shadow: 12px 12px 0 0 rgb(196 196 196);
}

.employee_FIO {
display: flex;
margin-top: 29px;

font-weight: bold;
font-size: 38px;

color: #FFFFFF;
}

.employee_speciality {
display: flex;
margin-top: 8px;
font-size: 20px;

color: #FFFFFF;
}
.social-networks {
width: 110px;
display: flex;
align-self: center;
flex-direction: row;
justify-content: space-around;
margin-top: 16px;
height: 24px;
}

.social-networks img {
border-radius: 50%;
}
.button {
margin-top: 57px;
width: 168px;
height: 46px;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лучше не ограничивать размеры кнопки, чтобы она растягивалась по содержимому. Достаточно добавить паддингов.
Например, если ваша карточка будет локализована на немецкий, то в этом случае весь текст может уже не влезть и будет примерно так
image


background: transparent;
border: 3px solid #FFFFFF;
box-sizing: border-box;
border-radius: 40px;

font-size: 17px;
line-height: 20px;
color: #FFFFFF;
}

.copyright {
margin-bottom: 16px;
display: flex;
flex-grow: 1;
flex-direction: row;
align-items: flex-end;
height: 16px;
font-size: 14px;
color: #FFFFFF;
}

.right-part {
color: #FFFFFF;
background-color: #222222;
width: 747px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border-radius: 30px;
}

.right-part .employee_name {
font-size: 62px;
}

.right-part .employee_position {
margin-top: 8px;
font-size: 22px;
}