mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-21 21:45:42 -05:00
home page
This commit is contained in:
parent
53fe8361a4
commit
bf5d18547f
@ -123,7 +123,6 @@ const HomeProfile: QuartzComponent = () => {
|
|||||||
<span class="home-org-logo-badge">
|
<span class="home-org-logo-badge">
|
||||||
<img class="home-org-logo" src={item.logo} alt={item.company} />
|
<img class="home-org-logo" src={item.logo} alt={item.company} />
|
||||||
</span>
|
</span>
|
||||||
<div class="home-exp-header">
|
|
||||||
<div class="home-exp-text">
|
<div class="home-exp-text">
|
||||||
<span class="home-exp-role">{item.role}</span>
|
<span class="home-exp-role">{item.role}</span>
|
||||||
<span class="home-exp-company">{item.company}</span>
|
<span class="home-exp-company">{item.company}</span>
|
||||||
@ -133,7 +132,6 @@ const HomeProfile: QuartzComponent = () => {
|
|||||||
<span class="home-exp-location">{item.location}</span>
|
<span class="home-exp-location">{item.location}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{item.description && (
|
{item.description && (
|
||||||
<div class="home-exp-body">
|
<div class="home-exp-body">
|
||||||
<p class="home-exp-desc">{item.description}</p>
|
<p class="home-exp-desc">{item.description}</p>
|
||||||
|
|||||||
@ -97,36 +97,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.home-exp-header {
|
|
||||||
flex: 1;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: flex-start;
|
|
||||||
gap: 1rem;
|
|
||||||
min-width: 0;
|
|
||||||
|
|
||||||
@media all and ($mobile) {
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 0.15rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.home-exp-text {
|
.home-exp-text {
|
||||||
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.1rem;
|
gap: 0.1rem;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.home-exp-right {
|
.home-exp-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
margin-left: auto;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
|
text-align: right;
|
||||||
gap: 0.1rem;
|
gap: 0.1rem;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
@media all and ($mobile) {
|
|
||||||
align-items: flex-start;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.home-exp-role {
|
.home-exp-role {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.4 KiB |
@ -393,7 +393,7 @@ h1 {
|
|||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 800px) {
|
@media all and ($mobile) {
|
||||||
h1 {
|
h1 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
@use "./base.scss";
|
@use "./base.scss";
|
||||||
|
@use "./variables.scss" as *;
|
||||||
|
|
||||||
// Center the right sidebar content ONLY on mobile devices
|
// Center the right sidebar content ONLY on mobile devices
|
||||||
@media (max-width: 800px) {
|
@media all and ($mobile) {
|
||||||
.right.sidebar {
|
.right.sidebar {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
@ -22,7 +23,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Keep everything left-aligned on desktop
|
// Keep everything left-aligned on desktop
|
||||||
@media (min-width: 801px) {
|
@media all and ($desktop) {
|
||||||
.right.sidebar {
|
.right.sidebar {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
|||||||
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Layout breakpoints
|
* Layout breakpoints
|
||||||
* $mobile: screen width below this value will use mobile styles
|
* $mobile: screen width below the desktop breakpoint will use mobile styles
|
||||||
* $desktop: screen width above this value will use desktop styles
|
* $desktop: screen width at or above the desktop breakpoint will use desktop styles
|
||||||
*/
|
*/
|
||||||
$breakpoints: (
|
$breakpoints: (
|
||||||
mobile: 800px,
|
mobile: 800px,
|
||||||
desktop: 1200px,
|
desktop: 1200px,
|
||||||
);
|
);
|
||||||
|
|
||||||
$mobile: "(max-width: #{map.get($breakpoints, mobile)})";
|
$mobile: "(max-width: #{map.get($breakpoints, desktop) - 1px})";
|
||||||
$desktop: "(min-width: #{map.get($breakpoints, mobile) + 1px})";
|
$desktop: "(min-width: #{map.get($breakpoints, desktop)})";
|
||||||
|
|
||||||
$pageWidth: #{map.get($breakpoints, mobile)};
|
$pageWidth: #{map.get($breakpoints, mobile)};
|
||||||
$sidePanelWidth: 320px; //380px;
|
$sidePanelWidth: 320px; //380px;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user