Skip to content

Commit

Permalink
First bootstrap mobile version
Browse files Browse the repository at this point in the history
  • Loading branch information
tin0312 committed Sep 24, 2023
1 parent 4ca8d4c commit 6db931c
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 60 deletions.
85 changes: 51 additions & 34 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,51 +14,51 @@ body {
padding-bottom: 6%;
}
/* Navigation Bar */
header {
.header {
display: flex;
letter-spacing: 2px;
font-family: "Space Grotesk", sans-serif;
overflow: hidden;
width: 80%;
margin: 2% auto 0;
width: 80vw;
margin: 4% auto 0;
padding-left: 0;
padding-right: 0;
}
.header-row{
margin-left: 0;
margin-right: 0;

.nav-bar{
width: 50%;
padding-right: 0;
}
#custom-toogle{
background-color: white;
margin-left: auto;
}
header .brand-name {
.header .brand-name a{
width: 50%;
text-shadow: 0 0 20px #00cc00, 0 0 40px #00cc00, 0 0 60px #00cc00;
animation: glow 2s infinite;
font-family: "Space Grotesk", sans-serif;
font-weight: 700;
font-size: 32px;
font-size: 2.5em;
color: white;
transition: color 3s ease;
text-decoration: none;
cursor: pointer;
}
header a {
color: #fff;
.nav-bar a {
color: green;
text-decoration: none;
font-size: 1.5rem;
font-size: 1.8em;
font-weight: 600;
padding: 1.5rem;
}
header .brand-name:hover {
color: green;
}
.nav-bar a {
text-shadow: 0 0 20px #00cc00;
animation: glow 2s infinite;
transition: color 1s ease;
padding-right: 0;
}
.header .brand-name a:hover {
cursor: pointer;
color: green;
}
.nav-bar a:hover {
color: white !important;
text-decoration: none;
Expand All @@ -68,7 +68,7 @@ header .brand-name:hover {
.home-container {
display: flex;
align-items: center;
width: auto;
width: 80vw;
margin: 10% auto 0;
padding-right: 0;
padding-left: 0;
Expand All @@ -85,7 +85,7 @@ header .brand-name:hover {
.greeting {
font-family: "Space Grotesk", sans-serif;
font-weight: 700;
font-size: 70px;
font-size: 4.5em;
margin-bottom: 43px;
line-height: 95px;
}
Expand Down Expand Up @@ -134,16 +134,36 @@ header .brand-name:hover {
font-family: "Space Grotesk", sans-serif;
width: 461px;
}
@media only screen and (min-width: 320px) {
@media screen and (max-width: 575.98px) {
.greeting{
font-size: 50px;
font-size: 3em;
}
.introduction-message{
width: 100%;
}
.contact-header{
font-size: 60px !important;
}
.home-container{
padding-bottom: 20%;
}
.project-container{
padding-bottom: 20%;
}
.contact-container{
background-color: #151515 !important;
padding-top: 10%;
padding-bottom: 15%;
}
.contact-header{
font-size: 3em !important;
}
.form-container form {
width: 100% !important;
}
.header a {
font-size: 1.3em ;
}
}
/* About section */
.about-container {
Expand Down Expand Up @@ -189,18 +209,13 @@ header .brand-name:hover {
align-items: center;
width: 100%;
}
/* .two{
justify-content: flex-end;
} */
.progress-bar{
width: 50% ;
background-color:#00cc00
}
/* Project section*/
.project-page {
width: 100vw;
margin: 5% auto 0;
height: auto;
}
.project-header {
width: 80%;
Expand Down Expand Up @@ -278,16 +293,12 @@ header .brand-name:hover {
justify-content: space-around;
align-items: center;
background-color: #242424;
height: auto;
margin: 10% auto 18%;
width: 80vw;
}
.contact-greeting {
align-self: center;
}
.form-container {
display: flex;
align-items: center;
}
.contact-header {
color: #fff;
font-family: "Space Grotesk", sans-serif;
Expand All @@ -305,10 +316,9 @@ header .brand-name:hover {
font-weight: 500;
line-height: 28px;
}

.form-container form {
display: flex;
width: 70%;
width: 75%;
flex-direction: column;
}
/* form section */
Expand Down Expand Up @@ -338,16 +348,23 @@ button[type="submit"] {
cursor: pointer;
align-self: flex-end;
padding-bottom: 2%;
border-radius: 0.5em;
padding: 0.5em;
box-shadow: 2px -5px 10px green;
}
button[type="submit"]::after {
content: '';
display: block;
height: 3px;
width: 100%;
width: 0;
background-color: green;
position: absolute;
bottom: 4px;
left: 0;
transition: width .3s ease;
}
button[type= "submit"]:hover::after{
width: 100%;
}


Expand Down
12 changes: 6 additions & 6 deletions src/Pages/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function About() {
<Row className="skill-set-container d-flex flex-lg-row flex-column">
{/* Column 1 */}
<Col className="skill-set-container-one w-lg-50 w-100 pl-0 pr-0">
<Row className="progress-container d-flex justify-content-center">
<Row className="progress-container d-flex justify-content-center justify-content-lg-start">
<img className="technology-icon" src={Images.js} alt="js-icon" />
<ProgressBar
className="progress-bar"
Expand All @@ -47,7 +47,7 @@ export default function About() {
visuallyHidden
/>
</Row>
<Row className="progress-container d-flex justify-content-center">
<Row className="progress-container d-flex justify-content-center justify-content-lg-start">
<img
className="technology-icon"
src={Images.html}
Expand All @@ -62,7 +62,7 @@ export default function About() {
visuallyHidden
/>
</Row>
<Row className="progress-container d-flex justify-content-center">
<Row className="progress-container d-flex justify-content-center justify-content-lg-start">
<img className="technology-icon" src={Images.css} alt="css-icon" />
<ProgressBar
className="progress-bar"
Expand All @@ -73,7 +73,7 @@ export default function About() {
visuallyHidden
/>
</Row>
<Row className="progress-container d-flex justify-content-center">
<Row className="progress-container d-flex justify-content-center justify-content-lg-start">
<img
className="technology-icon"
src={Images.bootstrap}
Expand All @@ -88,7 +88,7 @@ export default function About() {
visuallyHidden
/>
</Row>
<Row className="progress-container d-flex justify-content-center">
<Row className="progress-container d-flex justify-content-center justify-content-lg-start">
<img
className="technology-icon"
src={Images.react}
Expand All @@ -103,7 +103,7 @@ export default function About() {
visuallyHidden
/>
</Row>
<Row className="progress-container d-flex justify-content-center">
<Row className="progress-container d-flex justify-content-center justify-content-lg-start">
<img
className="technology-icon"
src={Images.mySQL}
Expand Down
4 changes: 2 additions & 2 deletions src/Pages/Brand.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { Container } from "react-bootstrap";

export default function Brand() {
return (
<Container fluid className="home-container mb-5 w-75">
<Container fluid className="home-container">
{/* Name && Introduction */}
<Row className="home-row w-100 flex-lg-row flex-column w-75">
<Row className="home-row w-100 flex-lg-row flex-column">
<Col xs={12} lg={6} className="introduction-container mb-5 mb-lg-0">
<h1 className="greeting">
Nice to meet you!
Expand Down
4 changes: 2 additions & 2 deletions src/Pages/Contacts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function Contacts() {

return (
<Container fluid className="contact-container pl-0 pr-0 mb-xs-5">
<Row className="greeting-row d-flex flex-column flex-lg-row w-100 p-4">
<Row className="greeting-row d-flex flex-column flex-lg-row w-100">
<Col xs={12} lg ={6} className="contact-greeting mb-xs-5">
<h1 className="contact-header">Contact</h1>
<p className="contact-message">
Expand All @@ -57,7 +57,7 @@ export default function Contacts() {
<br /> to you as soon as possible.
</p>
</Col>
<Col xs={12} lg={6} onSubmit={handleSubmit} className="form-container justify-content-xs-start justify-content-lg-center">
<Col xs={12} lg={6} onSubmit={handleSubmit} className="form-container d-flex justify-content-xs-center justify-content-lg-end pt-4 pb-4 ">
<form action="">
<label htmlFor="name">NAME</label>
<input
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/Projects.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function Projects() {
<Container fluid className="project-page">
<Row className="project-header">Project</Row>
<Row className="project-container flex flex-lg-row flex-column align-items-center align-items-lg-start">
<Col lg = {3} sm = {12} className="project-section w-lg-18 w-75 mr-lg-1 mb-5 pr-0 pl-0 ">
<Col lg = {3} sm = {12} className="project-section w-lg-50 w-75 mr-lg-1 mb-5 pr-0 pl-0 ">
<div className="image-container">
<img
src={Images.weatherThumbNail}
Expand Down
33 changes: 18 additions & 15 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
@@ -1,46 +1,49 @@
import React from "react";
import { NavLink, Link } from "react-router-dom";
import Container from "react-bootstrap/Container";
import Nav from "react-bootstrap/Nav";
import Navbar from "react-bootstrap/Navbar";
import NavDropdown from "react-bootstrap/NavDropdown";
import {Container, Row, Col} from "react-bootstrap"

export default function Header() {
const isActiveLink = {
fontWeight: "bold",
color: "green",
color: "white",
};

return (
<header>
<Link className="brand-name" to="/">
Justin
</Link>
<Navbar expand="lg" className="nav-bar">
<Navbar.Toggle aria-controls="basic-navbar-nav" id = "custom-toogle" />
<Navbar.Collapse id="basic-navbar-nav" >
<Container fluid className = "header">
<Row className = "header-row w-100">
<Col xs={6} lg={6} className="brand-name d-flex align-items-lg-center justify-content-center justify-content-lg-start" to="/">
<div><Link to= "/">Justin</Link></div>
</Col>
<Col xs={6} lg={6} className = "pl-0 pr-0 d-flex justify-content-end">
<Navbar expand="lg" className="nav-bar d-flex justify-content-end pr-0">
<Navbar.Toggle aria-controls="basic-navbar-nav" id = "custom-toogle"/>
<Navbar.Collapse id="basic-navbar-nav">
<Nav className="ml-auto">
<NavLink
<NavLink
to="/about"
style={isActiveLink}
style={({isActive}) => isActive ? isActiveLink : null}
>
About
</NavLink>
<NavLink
to="/projects"
style={isActiveLink}
style={({isActive}) => isActive ? isActiveLink : null}
>
Projects
</NavLink>
<NavLink
to="/contacts"
style={isActiveLink}
style={({isActive}) => isActive ? isActiveLink : null}
>
Contacts
</NavLink>
</Nav>
</Navbar.Collapse>
</Navbar>
</header>
</Col>
</Row>
</Container>
);
}

0 comments on commit 6db931c

Please sign in to comment.