Skip to content

Commit

Permalink
Added Headshot
Browse files Browse the repository at this point in the history
  • Loading branch information
smruti-s committed Apr 13, 2024
1 parent 5417142 commit adf3fa5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
26 changes: 26 additions & 0 deletions assets/css/images.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.header-2 {
display: flex;
align-items: center; /* Vertically center the items */
}

.h1-2 {
font-size: 2.75em;
font-weight: 700;
line-height: 1.3;
margin: 2em; /* Adjust margin as needed */
letter-spacing: -0.035em;
}

.circular-headshot {
width: 353px; /* Adjust this according to your preference */
height: 326px; /* Adjust this according to your preference */
border-radius: 50%; /* This makes the element circular */
overflow: hidden; /* This ensures that the image is clipped to the circular shape */
margin-left: 500px; /* Adjust the margin as needed to separate the heading and the headshot */
}

.circular-headshot img {
width: 100%;
height: auto;
}

Binary file added images/Smruti_Suresh.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions main.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<link rel="stylesheet" href="assets/css/images.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
</head>
<body class="is-preload">
Expand Down Expand Up @@ -46,13 +47,18 @@ <h2>Menu</h2>
<!-- <li><a href="elements.html">Elements</a></li> -->
</ul>
</nav>

<div class="header-2">
<div class="h1-2">Hi! I'm Smruti Suresh.<br/>
A roboticist in the making </h1>
</div>
<div class="circular-headshot">
<img src="images/Smruti_Suresh.JPG" alt="Smruti Suresh">
</div>
</div>
<!-- Main -->
<div id="main">
<div class="inner">
<header>
<h1>Hi! I'm Smruti Suresh.<br/>
A roboticist in the making </h1>
<h2> Recent Updates</h2>
<p>
<b>December 2023:</b>
Expand Down

0 comments on commit adf3fa5

Please sign in to comment.