Skip to content

Commit

Permalink
Customizations using Github Copilot
Browse files Browse the repository at this point in the history
  • Loading branch information
riyaa14 committed Aug 4, 2023
1 parent d338219 commit efdc233
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"esbenp.prettier-vscode",
"GitHub.copilot",
"ms-vscode.azure-account",
"ms-azuretools.vscode-azurestaticwebapps"
"ms-azuretools.vscode-azurestaticwebapps",
"oderwat.indent-rainbow"
],
"settings": {
"emmet.includeLanguages": {
Expand Down
2 changes: 2 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Footer from "./Components/Footer";
import Header from "./Components/Header";
import Home from "./Components/Home";
import Portfolio from "./Components/Portfolio";
import Education from "./Components/Education";

import "./styles.css";

Expand Down Expand Up @@ -45,6 +46,7 @@ const App = () => {
<Home name={siteProps.name} title={siteProps.title} />
<About />
<Portfolio />
<Education />
<Footer {...siteProps} primaryColor={primaryColor} secondaryColor={secondaryColor} />
</div>
);
Expand Down
29 changes: 29 additions & 0 deletions src/Components/Education.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import React from "react";

const Education = () => {
return (
<section className="light" id="education">
<h2 style={{ textAlign: "center" }}>Education</h2>
{/* grid of 3 education cells */}
<div className="grid">
<div className="box" style={{ margin: "20px", padding: "20px" }}>
<h3>Indira Gandhi Delhi Technical University For Women</h3>
<p className="small">B.Tech in ECE</p>
<p className="small">2021 - 2025</p>
</div>
<div className="box" style={{ margin: "20px", padding: "20px" }}>
<h3>Ryan International School</h3>
<p className="small">Class 12th</p>
<p className="small">2020 - 2021</p>
</div>
<div className="box" style={{ margin: "20px", padding: "20px" }}>
<h3>Ryan International School</h3>
<p className="small">Class 10th</p>
<p className="small">2018 - 2019</p>
</div>
</div>
</section>
);
};

export default Education;
2 changes: 2 additions & 0 deletions src/Components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const Header = () => {
<a href="#about">About</a>
<a href="#portfolio">Portfolio</a>
<a href="#footer">Contact</a>
{/* add reference to Education section */}
<a href="#education">Education</a>
</div>
);
};
Expand Down
7 changes: 6 additions & 1 deletion src/Components/Portfolio.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ const Portfolio = () => {
<div style={{ maxWidth: "40%", alignSelf: "center" }}>
<img
src={image}
style={{ height: "90%", width: "100%", objectFit: "cover" }}
style={{
animation: "10s ease-out 0s 1 slideIn",
height: "90%",
width: "100%",
objectFit: "cover",
}}
alt={imageAltText}
/>
</div>
Expand Down
18 changes: 18 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ body {
overflow-x: hidden;
padding: 0;
width: 100%;
scroll-behavior: smooth;
}

/* add a smooth scroll
html {
} */

div#main {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -123,3 +129,15 @@ img.socialIcon {
height: 30px;
width: 30px;
}

/* add a slide in animation */
@keyframes slideIn {
0% {

transform: translateX(-100%);
}
100% {

transform: translateX(0);
}
}

0 comments on commit efdc233

Please sign in to comment.