Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Xarlizard committed Oct 17, 2024
1 parent 5e2b36d commit d6f1ee3
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 63 deletions.
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=Inter:[email protected]&family=Outfit:[email protected]&family=Overpass:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<!--CSS THEMES & COMPONENTS FILES are critical-->
<link rel="stylesheet" href="./src/css/colors_themes.css">
<link rel="stylesheet" href="./src/css/component_themeswitch.css">
<link rel="stylesheet" href="./src/css/style.css">
<title>Portfolio</title>
</head>
<body>

<div class="sticky"></div>
<header>
<div class="topHeader">
<div class="avatar" onclick="openLink('https://www.charlie.icu/CV/')"><img src="./src/images/avatar_img.jpeg"></div>
Expand All @@ -21,6 +26,8 @@ <h1>Charlie R. P. @xarlizard</h1>
<div class="linklist" onclick='openLink("https://www.linkedin.com/in/charlie-rios/")'><img src="./src/images/icon-linkedin_red.png" ></div>
<div class="linklist" onclick='openLink("https://github.com/xarlizard")'><img src="./src/images/icon-github_red.png"></div>
<div class="linklist" onclick='openLink("https://github.com/xarlizard")'><img src="./src/images/icon-mail.png"></div>
<div class="linklist" onclick='openLink("https://www.charlie.icu/CV/")'><img src="./src/images/icon-es.png"></div>
<div class="linklist" onclick='openLink("https://www.charlie.icu/CV/")'><img src="./src/images/icon-en.png"></div>
</div>
</div>
</div>
Expand Down Expand Up @@ -127,6 +134,7 @@ <h1>Charlie R. P. @xarlizard</h1>
<div class="showLess" id="showLess" onclick="toggle_row()">
<div><h2>SHOW LESS</h2></div>
</div>
<!-- Component for containing a grid of badges-->
<div class="containerGrid">
<div class="grid-item"> <img src="./src/images/icon-html5.png"> </div>
<div class="grid-item"> <img src="./src/images/icon-css.png"> </div>
Expand Down
21 changes: 21 additions & 0 deletions src/css/colors_themes.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* Base file for component_themeswitch */
.theme-light {
--bg: hsl(0, 0%, 100%);
--top_bg_pattern: hsl(225, 100%, 98%);
--card_bg: hsl(227, 47%, 96%);
--card_bg_hover: hsl(223, 11%, 87%);
--text: hsl(228, 12%, 44%);
--text2: hsl(230, 17%, 14%);
--slider_color: linear-gradient(hsl(230, 22%, 74%), hsl(230, 22%, 74%));
--inverted_slider: linear-gradient(hsl(210, 78%, 56%), hsl(146, 68%, 55%));
}
.theme-dark {
--bg: hsl(230, 17%, 14%);
--top_bg_pattern: hsl(232, 19%, 15%);
--card_bg: hsl(228, 28%, 20%);
--card_bg_hover: hsl(230, 21%, 29%);
--text: hsl(228, 34%, 66%);
--text2: hsl(0, 0%, 100%);
--slider_color: linear-gradient(hsl(210, 78%, 56%), hsl(146, 68%, 55%));
--inverted_slider:linear-gradient(hsl(230, 22%, 74%), hsl(230, 22%, 74%));
}
44 changes: 44 additions & 0 deletions src/css/component_themeswitch.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* Component for Theme Switch */
.switch {
width: 60px;
height: 34px;
position: relative;
display: inline-block;
}
.switch input {
width: 0;
height: 0;
opacity: 0;
}
.slider {
top: 0;
left: 0;
right: 0;
bottom: 0;
cursor: pointer;
position: absolute;
border-radius: 34px;
background-image: var(--slider_color);
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
border-radius: 50%;
background-color: var(--bg);
-webkit-transition: .4s;
transition: .4s;
}
input:focus + .slider { box-shadow: 0 0 1px hsl(230, 22%, 74%);}
.slider:hover{background-image: var(--inverted_slider);}
input:focus + .slider:hover {background-image: var(--inverted_slider);}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
65 changes: 2 additions & 63 deletions src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,76 +7,15 @@
--Instagram: linear-gradient(to right, hsl(37, 97%, 70%), hsl(329, 70%, 58%));
--Red: hsl(348, 97%, 39%);
}
.theme-light {
--bg: hsl(0, 0%, 100%);
--top_bg_pattern: hsl(225, 100%, 98%);
--card_bg: hsl(227, 47%, 96%);
--card_bg_hover: hsl(223, 11%, 87%);
--text: hsl(228, 12%, 44%);
--text2: hsl(230, 17%, 14%);
--slider_color: linear-gradient(hsl(230, 22%, 74%), hsl(230, 22%, 74%));
--inverted_slider: linear-gradient(hsl(210, 78%, 56%), hsl(146, 68%, 55%));
}
.theme-dark {
--bg: hsl(230, 17%, 14%);
--top_bg_pattern: hsl(232, 19%, 15%);
--card_bg: hsl(228, 28%, 20%);
--card_bg_hover: hsl(230, 21%, 29%);
--text: hsl(228, 34%, 66%);
--text2: hsl(0, 0%, 100%);
--slider_color: linear-gradient(hsl(210, 78%, 56%), hsl(146, 68%, 55%));
--inverted_slider:linear-gradient(hsl(230, 22%, 74%), hsl(230, 22%, 74%));
}

*{
margin: 0;
padding: 0;
font-size: 14px;
font-weight: 400;
font-family: 'Inter';
}
.switch {
width: 60px;
height: 34px;
position: relative;
display: inline-block;
}
.switch input {
width: 0;
height: 0;
opacity: 0;
}
.slider {
top: 0;
left: 0;
right: 0;
bottom: 0;
cursor: pointer;
position: absolute;
border-radius: 34px;
background-image: var(--slider_color);
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
border-radius: 50%;
background-color: var(--bg);
-webkit-transition: .4s;
transition: .4s;
}
input:focus + .slider { box-shadow: 0 0 1px hsl(230, 22%, 74%);}
.slider:hover{background-image: var(--inverted_slider);}
input:focus + .slider:hover {background-image: var(--inverted_slider);}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}

body{
padding: 20px;
color: var(--text);
Expand Down
Binary file added src/images/icon-en.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 src/images/icon-es.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d6f1ee3

Please sign in to comment.