Skip to content

Commit bfb1a2f

Browse files
committed
remove unnecessary css module
1 parent 345983f commit bfb1a2f

File tree

5 files changed

+47
-58
lines changed

5 files changed

+47
-58
lines changed

jupyterlab_leetcode/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get_leetcode_cookie(browser: str, settings: dict[str, Any], ua: str):
5555
try:
5656
cj = BROWSER_COOKIE_METHOD_MAP[browser](domain_name="leetcode.com")
5757
except browser_cookie3.BrowserCookieError as e:
58-
raise Exception("Failed to retrieve cookies. Maybe not installed the browser?")
58+
raise Exception(f"Failed to retrieve cookies. Maybe {browser} not installed?")
5959
except Exception as e:
6060
raise Exception(f"An error occurred: {str(e)}")
6161

src/components/Footer.tsx

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
2-
import { Anchor, Container, Group } from '@mantine/core';
3-
import classes from '../styles/Footer.module.css';
2+
import { Anchor, Group } from '@mantine/core';
43
import { IconBrandLeetcode } from '@tabler/icons-react';
54

65
const Links = [
@@ -14,24 +13,29 @@ const Links = [
1413

1514
const Footer = () => {
1615
return (
17-
<div className={classes.footer}>
18-
<Container className={classes.inner}>
19-
<IconBrandLeetcode size={28} />
20-
<Group className={classes.links}>
21-
{Links.map(link => (
22-
<Anchor<'a'>
23-
c="dimmed"
24-
key={link.label}
25-
href={link.link}
26-
target="_blank"
27-
size="sm"
28-
>
29-
{link.label}
30-
</Anchor>
31-
))}
32-
</Group>
33-
</Container>
34-
</div>
16+
<Group
17+
justify="space-between"
18+
pt="md"
19+
style={{
20+
borderTop:
21+
'1px solid light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-5))'
22+
}}
23+
>
24+
<IconBrandLeetcode size={28} />
25+
<Group>
26+
{Links.map(link => (
27+
<Anchor<'a'>
28+
c="dimmed"
29+
key={link.label}
30+
href={link.link}
31+
target="_blank"
32+
size="sm"
33+
>
34+
{link.label}
35+
</Anchor>
36+
))}
37+
</Group>
38+
</Group>
3539
);
3640
};
3741

src/components/LandingPage.tsx

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
import React from 'react';
22

3-
import { Button, Container, Group, Text, Tooltip, Anchor } from '@mantine/core';
3+
import {
4+
Button,
5+
Container,
6+
Group,
7+
Text,
8+
Tooltip,
9+
Anchor,
10+
Paper
11+
} from '@mantine/core';
412
import { IconBrandGithub, IconBrandLinkedin } from '@tabler/icons-react';
513
import classes from '../styles/LandingPage.module.css';
614
import Footer from './Footer';
@@ -40,8 +48,8 @@ const LandingPage: React.FC<{
4048
];
4149

4250
return (
43-
<div className={classes.wrapper}>
44-
<Container size={700} className={classes.inner}>
51+
<Paper>
52+
<Container size={700} pt={200}>
4553
<h1 className={classes.title}>
4654
Welcome to{' '}
4755
<Text
@@ -67,14 +75,23 @@ const LandingPage: React.FC<{
6775
>
6876
log into LeetCode
6977
</Anchor>
70-
.
78+
<sup>*</sup>
7179
</Text>
7280

7381
<Group className={classes.controls}>{...options}</Group>
7482

83+
<Text
84+
size="sm"
85+
c="dimmed"
86+
mt="calc(var(--mantine-spacing-xl) * 2)"
87+
mb="sm"
88+
>
89+
* leetcode.cn not supported yet.
90+
</Text>
91+
7592
<Footer />
7693
</Container>
77-
</div>
94+
</Paper>
7895
);
7996
};
8097

src/styles/Footer.module.css

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/styles/LandingPage.module.css

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
.wrapper {
2-
position: relative;
3-
box-sizing: border-box;
4-
background-color: light-dark(
5-
var(--mantine-color-white),
6-
var(--mantine-color-dark-8)
7-
);
8-
}
9-
101
.inner {
112
position: relative;
123
padding-top: 200px;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy